Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 0f220a5

Browse files
Properly configure Node.js ruleset for 8.0 release
1 parent 32c011a commit 0f220a5

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

environments/nodejs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ These configuration files are suitable to lint code which will run on Node.js.
88

99
Suitable for projects running on Node.js v6.
1010

11+
### @strv/javascript/environments/nodejs/v7
12+
13+
Suitable for projects running on Node.js v7.
14+
15+
### @strv/javascript/environments/nodejs/v8
16+
17+
Suitable for projects running on Node.js v8.
18+
1119
### @strv/javascript/environments/nodejs/optional
1220

1321
Use this ruleset in conjunction with any of the above version-specific rulesets. Provides additional insights into potential inconsistencies in the project.

environments/nodejs/v8.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Js-coding-standards
3+
*
4+
* @author Robert Rossmann <[email protected]>
5+
* @copyright 2017 STRV
6+
* @license http://choosealicense.com/licenses/bsd-3-clause BSD-3-Clause License
7+
*/
8+
9+
'use strict'
10+
11+
/**
12+
* This file configures ESLint to work with the Node.js 7.0 release
13+
*/
14+
module.exports = {
15+
16+
extends: './v7.js',
17+
18+
parserOptions: {
19+
ecmaVersion: 2017,
20+
},
21+
}

0 commit comments

Comments
 (0)