Skip to content

Commit

Permalink
Use eslint-plugin-node to prevent usage of unsupported language features
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed Mar 2, 2018
1 parent f6d1a1b commit 1a1c355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.json
@@ -1,5 +1,6 @@
{
"extends": "holidaycheck/es2015",
"plugins": [ "node" ],

"env": {
"node": true
Expand All @@ -10,6 +11,10 @@
"ecmaVersion": 2017
},

"rules": {
"node/no-unsupported-features": "error"
},

"overrides": [
{
"files": [ "test/**/*.js" ],
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -22,6 +22,7 @@
"coveralls": "^3.0.0",
"eslint": "^4.0.0",
"eslint-config-holidaycheck": "^0.12.1",
"eslint-plugin-node": "^6.0.1",
"istanbul": "^0.4.2",
"mocha": "^5.0.1",
"pr-log": "^2.0.0"
Expand Down

0 comments on commit 1a1c355

Please sign in to comment.