-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint-common-node.json
40 lines (39 loc) · 1.64 KB
/
eslint-common-node.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"plugins": ["security-node"],
"extends": [
"airbnb-base",
"./eslint-common.json",
"plugin:node/recommended"
],
"rules": {
"node/no-unsupported-features/es-syntax": "off",
// NOTE: handled by import/no-extraneous-dependencies
"node/no-extraneous-require": "off",
"security-node/detect-absence-of-name-option-in-exrpress-session": "error",
"security-node/detect-buffer-unsafe-allocation": "error",
"security-node/detect-child-process": "error",
"security-node/detect-crlf": "error",
"security-node/detect-dangerous-redirects": "error",
"security-node/detect-eval-with-expr": "error",
"security-node/detect-html-injection": "error",
"security-node/detect-insecure-randomness": "error",
"security-node/detect-nosql-injection": "error",
"security-node/detect-option-multiplestatements-in-mysql": "error",
"security-node/detect-option-rejectunauthorized-in-nodejs-httpsrequest": "error",
"security-node/detect-option-unsafe-in-serialize-javascript-npm-package": "error",
"security-node/detect-possible-timing-attacks": "error",
"security-node/detect-runinthiscontext-method-in-nodes-vm": "error",
"security-node/detect-security-missconfiguration-cookie": "error",
"security-node/detect-sql-injection": "error",
"security-node/detect-unhandled-async-errors": "error",
"security-node/disable-ssl-across-node-server": "error"
},
"settings": {
"node": {
"tryExtensions": [".js", ".json", ".ts"]
}
},
"env": {
"node": true
}
}