-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.58 KB
/
.eslintrc.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
},
"rules": {
"comma-spacing": [2, { "before": false, "after": true }],
"eqeqeq": 2,
"handle-callback-err": 2,
"indent": ["error", 2, {
"SwitchCase": 1,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
"FunctionDeclaration": { "parameters": "first" },
"FunctionExpression": { "parameters": "first" },
"CallExpression": { "arguments": 1 }
}],
"keyword-spacing": 2,
"max-len": [2, { "code": 99 }],
"no-eq-null": 2,
"no-eval": 2,
"no-tabs": 2,
"no-var": 2,
"semi": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}]
},
"plugins": [
"security-node"
],
"extends": [
"eslint:recommended",
"plugin:security-node/recommended"
],
"ignorePatterns": ["*.d.ts", "*.test.ts"],
"overrides": [
{
"files": [
"**/*.ts"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json"
]
},
"extends": [
"plugin:@typescript-eslint/recommended"
]
}
]
}