File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends": "nodesecurity"
3
+ }
Original file line number Diff line number Diff line change @@ -32,8 +32,18 @@ Add the following to your `.eslintrc` file:
32
32
- ` detect-possible-timing-attacks ` - Detects insecure comparisons (== != !== ===)
33
33
- ` detect-pseudoRandomBytes ` - Detects if pseudoRandomBytes() is in use
34
34
35
- ### Tests
36
35
36
+ ## Developer guide
37
+
38
+ - Use [ GitHub pull requests] ( https://help.github.com/articles/using-pull-requests ) .
39
+ - Conventions:
40
+ - We use our [ custom ESLint setup] ( https://github.com/nodesecurity/eslint-config-nodesecurity ) .
41
+ - Please implement a test for each new rule and use this command to be sure the new code respects the style guide and the tests keep passing:
42
+ ``` sh
43
+ npm run-script cont-int
44
+ ```
45
+
46
+ ### Tests
37
47
``` sh
38
48
npm test
39
49
```
Original file line number Diff line number Diff line change 4
4
"description" : " Security rules for eslint" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " ./node_modules/.bin/mocha test/**/*"
7
+ "test" : " ./node_modules/.bin/mocha test/**/*" ,
8
+ "lint" : " ./node_modules/.bin/eslint ." ,
9
+ "cont-int" : " npm test && npm run-script lint"
8
10
},
9
11
"repository" : {
10
12
"type" : " git" ,
25
27
"safe-regex" : " ^1.1.0"
26
28
},
27
29
"devDependencies" : {
28
- "eslint" : " ^1.8.0" ,
30
+ "eslint" : " ^2.10.1" ,
31
+ "eslint-config-nodesecurity" : " ^1.3.1" ,
29
32
"mocha" : " ^2.4.5"
30
33
}
31
34
}
You can’t perform that action at this time.
0 commit comments