Skip to content

Commit e6ce025

Browse files
jakobsandbergJakob Sandbergsulkaharo
authored andcommitted
Add eslint security plugin (nightscout#5450)
Co-authored-by: Jakob Sandberg <[email protected]> Co-authored-by: Sulka Haro <[email protected]>
1 parent 1668afd commit e6ce025

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
module.exports = {
2-
"plugins": [ ],
2+
"plugins": [
3+
"security"
4+
],
35
"extends": [
4-
"eslint:recommended"
6+
"eslint:recommended",
7+
"plugin:security/recommended"
58
],
69
"parser": "babel-eslint",
710
"env": {

npm-shrinkwrap.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
"env-cmd": "^10.1.0",
141141
"eslint": "^6.8.0",
142142
"eslint-loader": "^2.2.1",
143+
"eslint-plugin-security": "^1.4.0",
143144
"mocha": "^8.1.1",
144145
"nodemon": "^1.19.4",
145146
"nyc": "^14.1.1",

0 commit comments

Comments
 (0)