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 bd5c7de commit c3afd4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"coveralls": "^3.0.0",
"eslint": "^4.0.0",
"eslint-config-holidaycheck": "^0.12.1",
"eslint-plugin-node": "^6.0.1",
"mocha": "^5.0.1",
"nyc": "^11.4.1",
"pr-log": "^2.0.0"
Expand Down

0 comments on commit c3afd4d

Please sign in to comment.