|
1 | 1 | { |
2 | | - /** Enable ES6 features */ |
3 | | - "parserOptions": { |
4 | | - "ecmaVersion": 2017, |
5 | | - "sourceType": "module" |
6 | | - }, |
7 | | - "rules": { |
8 | | - |
9 | | - "arrow-spacing": [2, { |
10 | | - "before": true, |
11 | | - "after": true |
12 | | - }], |
13 | | - |
14 | | - /** Variables */ |
15 | | - "no-catch-shadow": 2, |
16 | | - "no-delete-var": 2, |
17 | | - "no-label-var": 2, |
18 | | - "no-shadow-restricted-names": 2, |
19 | | - "no-shadow": 2, |
20 | | - "no-undef-init": 2, |
21 | | - "no-undef": 2, |
22 | | - "no-unused-vars": 0, |
23 | | - |
24 | | - /** Style */ |
25 | | - "array-bracket-spacing": [2, "never", { |
26 | | - "singleValue": true, |
27 | | - "objectsInArrays": true, |
28 | | - "arraysInArrays": true |
29 | | - }], |
30 | | - "quotes": [2, "single", { |
31 | | - "avoidEscape": true, |
32 | | - "allowTemplateLiterals": true |
33 | | - }], |
34 | | - "eqeqeq": 0, |
35 | | - "brace-style": [2, "1tbs"], |
36 | | - "comma-spacing": [2, { |
37 | | - "before": false, |
38 | | - "after": true |
39 | | - }], |
40 | | - "comma-style": [2, "last"], |
41 | | - "eol-last": 0, |
42 | | - "no-nested-ternary": 1, |
43 | | - "no-trailing-spaces": 2, |
44 | | - "no-mixed-spaces-and-tabs": 2, |
45 | | - "padded-blocks": [2, "never"], |
46 | | - "space-before-blocks": 1, |
47 | | - "space-before-function-paren": [1, { |
48 | | - "anonymous": "always", |
49 | | - "named": "never" |
50 | | - }], |
51 | | - "spaced-comment": [2, "always", { |
52 | | - "exceptions": ["-", "+"], |
53 | | - "markers": ["=", "!"] |
54 | | - }], |
55 | | - "semi": [2, "always"], |
56 | | - "indent": [2, 2, { |
57 | | - "SwitchCase": 1 |
58 | | - }], |
59 | | - "camelcase": [2, { |
60 | | - "properties": "always" |
61 | | - }], |
62 | | - "newline-after-var": [1, "always"] |
63 | | - |
64 | | - }, |
65 | | - "globals":{ |
66 | | - "document": true, |
67 | | - "module": true, |
68 | | - "require": true, |
69 | | - "window": true, |
70 | | - "console" : true, |
71 | | - "codex": true, |
72 | | - "VERSION" : true, |
73 | | - "Promise" : true, |
74 | | - "MutationObserver": true, |
75 | | - "FormData": true, |
76 | | - "XMLHttpRequest": true, |
77 | | - "ActiveXObject": true, |
78 | | - "RegExp": true, |
79 | | - "Module": true, |
80 | | - "Node": true, |
81 | | - "Element": true, |
82 | | - "DocumentFragment": true, |
83 | | - "Proxy": true, |
84 | | - "Symbol": true, |
85 | | - "$": true, |
86 | | - "_": true, |
87 | | - "setTimeout": true, |
88 | | - "process": true, |
89 | | - "__dirname": true, |
90 | | - "Map": true |
91 | | - } |
| 2 | + "extends": [ |
| 3 | + "codex" |
| 4 | + ], |
| 5 | + "rules": { |
| 6 | + /** |
| 7 | + * Temporary suppress some errors. We need to fix them partially in next patches |
| 8 | + */ |
| 9 | + "@typescript-eslint/explicit-function-return-type": ["warn"], |
| 10 | + "@typescript-eslint/explicit-member-accessibility": ["warn"], |
| 11 | + "@typescript-eslint/member-ordering": ["warn"], |
| 12 | + "@typescript-eslint/no-empty-function": ["warn"], |
| 13 | + "no-prototype-builtins": ["warn"], |
| 14 | + "no-mixed-operators": ["warn"], |
| 15 | + "import/no-duplicates": ["warn"], |
| 16 | + "no-case-declarations": ["warn"] |
| 17 | + } |
92 | 18 | } |
0 commit comments