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

Commit

Permalink
Properly configure Node.js ruleset for 8.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Jul 4, 2017
1 parent 32c011a commit 0f220a5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions environments/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ These configuration files are suitable to lint code which will run on Node.js.

Suitable for projects running on Node.js v6.

### @strv/javascript/environments/nodejs/v7

Suitable for projects running on Node.js v7.

### @strv/javascript/environments/nodejs/v8

Suitable for projects running on Node.js v8.

### @strv/javascript/environments/nodejs/optional

Use this ruleset in conjunction with any of the above version-specific rulesets. Provides additional insights into potential inconsistencies in the project.
Expand Down
21 changes: 21 additions & 0 deletions environments/nodejs/v8.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Js-coding-standards
*
* @author Robert Rossmann <[email protected]>
* @copyright 2017 STRV
* @license http://choosealicense.com/licenses/bsd-3-clause BSD-3-Clause License
*/

'use strict'

/**
* This file configures ESLint to work with the Node.js 7.0 release
*/
module.exports = {

extends: './v7.js',

parserOptions: {
ecmaVersion: 2017,
},
}

0 comments on commit 0f220a5

Please sign in to comment.