diff --git a/environments/nodejs/README.md b/environments/nodejs/README.md index b18b7b7..b68cc90 100644 --- a/environments/nodejs/README.md +++ b/environments/nodejs/README.md @@ -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. diff --git a/environments/nodejs/v8.js b/environments/nodejs/v8.js new file mode 100644 index 0000000..df7a638 --- /dev/null +++ b/environments/nodejs/v8.js @@ -0,0 +1,21 @@ +/** + * Js-coding-standards + * + * @author Robert Rossmann + * @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, + }, +}