|
1 | 1 | {
|
2 | 2 | "parserOptions": {
|
3 |
| - "ecmaVersion": 8, |
| 3 | + "ecmaVersion": 2022, |
4 | 4 | "ecmaFeatures": {
|
5 |
| - "experimentalObjectRestSpread": true, |
6 | 5 | "jsx": true
|
7 | 6 | },
|
8 |
| - "sourceType": "module" |
| 7 | + "sourceType": "script" |
9 | 8 | },
|
10 | 9 |
|
11 | 10 | "env": {
|
|
17 | 16 | "plugins": [],
|
18 | 17 |
|
19 | 18 | "globals": {
|
20 |
| - "cy": true, |
21 |
| - "Cypress": true, |
22 | 19 | "document": false,
|
23 | 20 | "navigator": false,
|
24 | 21 | "window": false,
|
25 | 22 | "expect": true,
|
26 | 23 | "test": true,
|
27 | 24 | "sinon": true,
|
28 |
| - "angular": true, |
29 |
| - "inject": true |
| 25 | + "angular": true |
30 | 26 | },
|
31 | 27 |
|
32 | 28 | "rules": {
|
|
40 | 36 | "comma-style": [2, "last"],
|
41 | 37 | "computed-property-spacing": [2, "never"],
|
42 | 38 | "constructor-super": 2,
|
43 |
| - "curly": [2, "multi-line"], |
| 39 | + "curly": [2, "multi-line", "consistent"], |
44 | 40 | "dot-location": [2, "property"],
|
45 | 41 | "eol-last": [2, "always"],
|
46 | 42 | "eqeqeq": [2, "allow-null"],
|
|
66 | 62 | "max-len": ["error", {
|
67 | 63 | "code": 100,
|
68 | 64 | "ignoreRegExpLiterals": true,
|
69 |
| - "ignorePattern": "\\s+require\\(|https?://" |
| 65 | + "ignorePattern": "\\s+require\\(|\\s+require\\.resolve\\(|https?://|\\s+it\\(|\\s+describe\\(" |
70 | 66 | }],
|
| 67 | + "max-nested-callbacks": 2, |
71 | 68 | "new-cap": [2, {"newIsCap": true, "capIsNew": false}],
|
72 | 69 | "new-parens": 2,
|
73 | 70 | "newline-per-chained-call": [2, {"ignoreChainWithDepth": 4}],
|
74 | 71 | "no-array-constructor": 2,
|
| 72 | + "no-async-promise-executor": 2, |
| 73 | + "no-await-in-loop": 0, |
75 | 74 | "no-caller": 2,
|
76 | 75 | "no-class-assign": 2,
|
77 | 76 | "no-cond-assign": 2,
|
|
135 | 134 | "no-octal-escape": 2,
|
136 | 135 | "no-path-concat": 2,
|
137 | 136 | "no-proto": 2,
|
| 137 | + "no-promise-executor-return": 0, |
138 | 138 | "no-redeclare": 2,
|
139 | 139 | "no-regex-spaces": 2,
|
140 | 140 | "no-return-assign": [2, "except-parens"],
|
| 141 | + "no-return-await": 2, |
141 | 142 | "no-self-assign": 2,
|
142 | 143 | "no-self-compare": 2,
|
143 | 144 | "no-sequences": 2,
|
|
178 | 179 | "one-var": [2, {"initialized": "never"}],
|
179 | 180 | "operator-linebreak": [2, "after", {"overrides": {"?": "before", ":": "before"}}],
|
180 | 181 | "padded-blocks": [0, "never"],
|
181 |
| - "prefer-template": 2, |
182 | 182 | "prefer-const": [2, {"destructuring": "any", "ignoreReadBeforeAssign": true}],
|
| 183 | + "prefer-promise-reject-errors": 2, |
| 184 | + "prefer-template": 2, |
183 | 185 | "quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
|
| 186 | + "require-atomic-updates": 0, |
184 | 187 | "rest-spread-spacing": [2, "never"],
|
185 | 188 | "semi": [2, "never"],
|
186 | 189 | "semi-spacing": [2, {"before": false, "after": true}],
|
|
192 | 195 | "spaced-comment": [2, "always",
|
193 | 196 | {"line": {"markers": ["*package", "!", ","]}, "block": {"balanced": true, "markers": ["*package", "!", ","], "exceptions": ["*"]}}
|
194 | 197 | ],
|
| 198 | + "strict": [2, "global"], |
195 | 199 | "template-curly-spacing": [2, "never"],
|
196 | 200 | "unicode-bom": [2, "never"],
|
197 | 201 | "use-isnan": 2,
|
|
0 commit comments