Skip to content

Commit

Permalink
Add eslint-plugin-node
Browse files Browse the repository at this point in the history
  • Loading branch information
jstayton committed Jun 12, 2020
1 parent 70799c6 commit 5086076
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Expand Up @@ -8,11 +8,20 @@
"plugins": ["jest"],
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"node/no-unpublished-require": [
"error",
{
"allowModules": ["knex"]
}
]
}
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -39,6 +39,7 @@
"eslint": "^7.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-node": "^11.1.0",
"jest": "^26.0.1",
"jest-junit": "^10.0.0",
"knex": "^0.21.1",
Expand Down

0 comments on commit 5086076

Please sign in to comment.