Skip to content

Commit

Permalink
Add eslint security plugin (#5450)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Sandberg <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>
  • Loading branch information
3 people authored Jan 17, 2021
1 parent 3ee90d6 commit ccd591d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module.exports = {
"plugins": [ ],
"plugins": [
"security"
],
"extends": [
"eslint:recommended"
"eslint:recommended",
"plugin:security/recommended"
],
"parser": "babel-eslint",
"env": {
Expand Down
9 changes: 9 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
"env-cmd": "^10.1.0",
"eslint": "^6.8.0",
"eslint-loader": "^2.2.1",
"eslint-plugin-security": "^1.4.0",
"mocha": "^8.1.1",
"nodemon": "^1.19.4",
"nyc": "^14.1.1",
Expand Down

0 comments on commit ccd591d

Please sign in to comment.