-
Notifications
You must be signed in to change notification settings - Fork 747
Expand file tree
/
Copy path.eslintrc.json
More file actions
84 lines (84 loc) · 2.13 KB
/
Copy path.eslintrc.json
File metadata and controls
84 lines (84 loc) · 2.13 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"env": {
"browser": true,
"node": true,
"es2020": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"google"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "script"
},
"globals": {
"angular": "readonly",
"Chart": "readonly",
"G_vmlCanvasManager": "readonly",
"define": "readonly",
"module": "writable",
"require": "readonly"
},
"plugins": [
"angular"
],
"rules": {
"strict": ["error", "function"],
"no-redeclare": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off",
"no-undef": "error",
"no-unused-vars": ["error", { "args": "none" }],
"no-empty": "error",
"no-trailing-spaces": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"complexity": ["error", 10],
"max-depth": ["error", 2],
"new-cap": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"camelcase": ["error", { "properties": "never" }],
"max-len": ["error", { "code": 80, "ignoreComments": true, "ignoreRegExpLiterals": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"space-infix-ops": "error",
"space-before-blocks": "error",
"array-bracket-spacing": ["error", "never"],
"space-in-parens": ["error", "never"],
"dot-notation": "error",
"no-multi-str": "error",
"eol-last": "error",
"no-mixed-spaces-and-tabs": "error",
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"angular/di": "off",
"angular/component-limit": "off",
"angular/controller-as-vm": "off",
"angular/no-service-method": "off"
},
"overrides": [
{
"files": ["src/**/*.js", "rollup.config.js"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"strict": "off"
}
},
{
"files": ["test/**/*.js"],
"globals": {
"sinon": "readonly",
"expect": "readonly",
"module": "readonly",
"inject": "readonly"
},
"rules": {
"strict": ["error", "global"]
}
}
]
}