|
1 | 1 | { |
2 | 2 | "extends": "eslint:recommended", |
3 | 3 | "parserOptions": { |
4 | | - "ecmaVersion": 8 |
| 4 | + "ecmaVersion": 8 |
5 | 5 | }, |
6 | 6 | "rules": { |
7 | 7 | "accessor-pairs": "error", |
|
10 | 10 | "array-callback-return": "error", |
11 | 11 | "array-element-newline": "off", |
12 | 12 | "arrow-body-style": "error", |
13 | | - "arrow-parens": "error", |
| 13 | + "arrow-parens": [ |
| 14 | + "error", |
| 15 | + "as-needed" |
| 16 | + ], |
14 | 17 | "arrow-spacing": "error", |
15 | 18 | "block-scoped-var": "off", |
16 | 19 | "block-spacing": "off", |
|
42 | 45 | "func-style": "off", |
43 | 46 | "generator-star-spacing": "error", |
44 | 47 | "getter-return": "error", |
45 | | - "global-require": "error", |
| 48 | + "global-require": "off", |
46 | 49 | "guard-for-in": "off", |
47 | 50 | "handle-callback-err": "error", |
48 | 51 | "id-blacklist": "error", |
|
78 | 81 | "no-caller": "error", |
79 | 82 | "no-catch-shadow": "error", |
80 | 83 | "no-confusing-arrow": "error", |
| 84 | + "no-console": [ |
| 85 | + "off" |
| 86 | + ], |
81 | 87 | "no-constant-condition": [ |
82 | 88 | "error", |
83 | 89 | { |
84 | 90 | "checkLoops": false |
85 | 91 | } |
86 | 92 | ], |
87 | 93 | "no-continue": "off", |
88 | | - "no-div-regex": "error", |
| 94 | + "no-div-regex": "off", |
89 | 95 | "no-duplicate-imports": "error", |
90 | 96 | "no-else-return": "off", |
91 | 97 | "no-empty-function": "off", |
|
138 | 144 | "no-param-reassign": "off", |
139 | 145 | "no-path-concat": "error", |
140 | 146 | "no-plusplus": "off", |
141 | | - "no-process-env": "error", |
| 147 | + "no-process-env": "off", |
142 | 148 | "no-process-exit": "error", |
143 | 149 | "no-proto": "error", |
144 | 150 | "no-prototype-builtins": "off", |
|
155 | 161 | "no-shadow": "off", |
156 | 162 | "no-shadow-restricted-names": "error", |
157 | 163 | "no-spaced-func": "off", |
158 | | - "no-sync": "error", |
| 164 | + "no-sync": "off", |
159 | 165 | "no-tabs": "off", |
160 | 166 | "no-template-curly-in-string": "error", |
161 | 167 | "no-ternary": "off", |
|
240 | 246 | "no-unexpected-multiline": "off" |
241 | 247 | }, |
242 | 248 | "env": { |
243 | | - "browser": true |
| 249 | + "node": true |
244 | 250 | }, |
245 | 251 | "globals": { |
246 | | - "angular": true, |
247 | | - "CryptoJS": true |
| 252 | + "angular": true |
248 | 253 | }, |
249 | 254 | "overrides": [ |
250 | 255 | { |
251 | | - "files": ["**/*.spec.js"], |
| 256 | + "files": [ |
| 257 | + "docs/app/js/**/*", |
| 258 | + "src/**/*" |
| 259 | + ], |
| 260 | + "parserOptions": { |
| 261 | + "ecmaVersion": 5 |
| 262 | + }, |
| 263 | + "env": { |
| 264 | + "browser": true |
| 265 | + }, |
| 266 | + "rules": { |
| 267 | + "arrow-parens": "error", |
| 268 | + "global-require": "error", |
| 269 | + "no-console": [ |
| 270 | + "error" |
| 271 | + ], |
| 272 | + "no-process-env": "error", |
| 273 | + "no-sync": "error" |
| 274 | + }, |
| 275 | + "globals": { |
| 276 | + "angular": true, |
| 277 | + "CryptoJS": true, |
| 278 | + "hljs": true |
| 279 | + } |
| 280 | + }, |
| 281 | + { |
| 282 | + "files": [ |
| 283 | + "scripts/**/*" |
| 284 | + ], |
| 285 | + "rules": { |
| 286 | + "no-process-env": "off" |
| 287 | + } |
| 288 | + }, |
| 289 | + { |
| 290 | + "files": [ |
| 291 | + "**/*.spec.js" |
| 292 | + ], |
252 | 293 | "env": { |
253 | 294 | "jasmine": true |
254 | 295 | }, |
|
0 commit comments