-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint-common.json
43 lines (40 loc) · 1.47 KB
/
eslint-common.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
41
42
43
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:prettier/recommended",
"plugin:security/recommended",
"plugin:no-unsanitized/DOM",
"./eslint-ts-overrides.json"
],
"plugins": ["@typescript-eslint", "xss"],
"rules": {
"no-param-reassign": ["error", { "props": false }],
"func-names": ["error", "always", { "generators": "never" }],
"no-void": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-imports": ["error", {
"disallowTypeAnnotations": false
}],
"security/detect-buffer-noassert": "error",
"security/detect-child-process": "error",
"security/detect-disable-mustache-escape": "error",
"security/detect-eval-with-expression": "error",
"security/detect-new-buffer": "error",
"security/detect-no-csrf-before-method-override": "error",
"security/detect-non-literal-fs-filename": "off",
"security/detect-non-literal-require": "off",
"security/detect-object-injection": "off",
"security/detect-possible-timing-attacks": "error",
"security/detect-pseudoRandomBytes": "error",
"security/detect-unsafe-regex": "error",
"xss/no-location-href-assign": "error"
},
"overrides": [
{
"files": ["*.ts"],
"rules": {
"import/prefer-default-export": "off"
}
}
]
}