|
1 | 1 | { |
2 | 2 | "root": true, |
3 | | - "parser": "babel-eslint", |
4 | 3 | "extends": [ |
5 | 4 | "plugin:import/errors", |
6 | 5 | "plugin:import/warnings", |
7 | 6 | "plugin:unicorn/recommended", |
8 | | - "xo/esnext", |
| 7 | + "xo", |
9 | 8 | "xo/browser" |
10 | 9 | ], |
11 | 10 | "rules": { |
|
26 | 25 | "error", |
27 | 26 | "always-multiline" |
28 | 27 | ], |
29 | | - "new-cap": "off", |
30 | | - "no-mixed-operators": "off", |
31 | | - "object-curly-spacing": [ |
32 | | - "error", |
33 | | - "always" |
34 | | - ], |
35 | | - "prefer-destructuring": [ |
| 28 | + "new-cap": [ |
36 | 29 | "error", |
37 | 30 | { |
38 | | - "object": true, |
39 | | - "array": false |
| 31 | + "properties": false |
40 | 32 | } |
41 | 33 | ], |
| 34 | + "no-console": "error", |
| 35 | + "object-curly-spacing": [ |
| 36 | + "error", |
| 37 | + "always" |
| 38 | + ], |
42 | 39 | "semi": [ |
43 | 40 | "error", |
44 | 41 | "never" |
45 | 42 | ], |
| 43 | + "unicorn/consistent-function-scoping": "off", |
46 | 44 | "unicorn/explicit-length-check": "off", |
47 | | - "unicorn/filename-case": "off", |
48 | | - "unicorn/import-index": "off", |
| 45 | + "unicorn/no-array-callback-reference": "off", |
| 46 | + "unicorn/no-array-for-each": "off", |
| 47 | + "unicorn/no-for-loop": "off", |
| 48 | + "unicorn/no-null": "off", |
49 | 49 | "unicorn/no-unused-properties": "error", |
50 | | - "unicorn/prefer-includes": "off", |
51 | | - "unicorn/prefer-node-append": "off", |
52 | | - "unicorn/prefer-node-remove": "off", |
| 50 | + "unicorn/no-useless-undefined": "off", |
| 51 | + "unicorn/prefer-dom-node-append": "off", |
| 52 | + "unicorn/prefer-dom-node-dataset": "off", |
| 53 | + "unicorn/prefer-dom-node-remove": "off", |
| 54 | + "unicorn/prefer-module": "off", |
53 | 55 | "unicorn/prefer-query-selector": "off", |
54 | | - "unicorn/prefer-text-content": "off", |
| 56 | + "unicorn/prefer-spread": "off", |
55 | 57 | "unicorn/prevent-abbreviations": "off" |
56 | 58 | } |
57 | 59 | } |
0 commit comments