|
4 | 4 | "node": true
|
5 | 5 | },
|
6 | 6 | "parserOptions": {
|
7 |
| - "sourceType": "module", |
8 |
| - "ecmaVersion": 8 |
| 7 | + "sourceType": "module" |
9 | 8 | },
|
10 |
| - "globals": { |
11 |
| - "Promise": true, |
12 |
| - "ArrayBuffer": true, |
13 |
| - "File": true, |
14 |
| - "Blob": true, |
15 |
| - "OSJS_VERSION": true, |
16 |
| - "OSjs" |
17 |
| - }, |
18 |
| - "extends": "eslint:recommended", |
19 |
| - "rules": { |
20 |
| - "eqeqeq": ["error", "always"], |
21 |
| - "quotes": ["error", "single"], |
22 |
| - "linebreak-style": ["error", "unix"], |
23 |
| - "semi": ["error", "always"], |
24 |
| - "indent": ["error", 2], |
25 |
| - "radix": 1, |
26 |
| - "eol-last": ["error", "always"], |
27 |
| - "consistent-return": 1, |
28 |
| - "space-in-parens": ["error", "never"], |
29 |
| - "space-before-function-paren": ["error", { |
30 |
| - "anonymous": "never", |
31 |
| - "named": "never", |
32 |
| - "asyncArrow": "always" |
33 |
| - }], |
34 |
| - "space-before-blocks": ["error", "always"], |
35 |
| - "space-infix-ops": ["error", {"int32Hint": false}], |
36 |
| - "space-unary-ops": ["error", {"words": true, "nonwords": false}], |
37 |
| - "spaced-comment": ["warn", "always"], |
38 |
| - "prefer-arrow-callback": 1, |
39 |
| - "prefer-spread": 1, |
40 |
| - "prefer-rest-params": 1, |
41 |
| - "template-curly-spacing": ["warn", "never"], |
42 |
| - "no-multiple-empty-lines": ["error"], |
43 |
| - "no-unused-vars": ["error", {"vars": "all", "args": "none"}], |
44 |
| - "no-useless-constructor": 1, |
45 |
| - "no-var": 2, |
46 |
| - "no-duplicate-imports": 2, |
47 |
| - "no-console": "off", |
48 |
| - "no-extra-semi": 2, |
49 |
| - "no-eval": 2, |
50 |
| - "no-invalid-this": 1, |
51 |
| - "no-new-func": 2, |
52 |
| - "no-return-await": 1, |
53 |
| - "no-self-compare": 2, |
54 |
| - "no-with": 2, |
55 |
| - "no-multi-assign": 1, |
56 |
| - "no-new-object": 2, |
57 |
| - "no-tabs": 1, |
58 |
| - } |
| 9 | + "extends": "@osjs/eslint-config" |
59 | 10 | }
|
0 commit comments