|
14 | 14 | "error",
|
15 | 15 | "never"
|
16 | 16 | ],
|
| 17 | + "import/extensions": [ |
| 18 | + "error", |
| 19 | + "ignorePackages", |
| 20 | + { |
| 21 | + "js": "always" |
| 22 | + } |
| 23 | + ], |
| 24 | + "import/first": "error", |
| 25 | + "import/newline-after-import": "error", |
| 26 | + "import/no-absolute-path": "error", |
| 27 | + "import/no-amd": "error", |
| 28 | + "import/no-cycle": [ |
| 29 | + "error", |
| 30 | + { |
| 31 | + "ignoreExternal": true |
| 32 | + } |
| 33 | + ], |
| 34 | + "import/no-duplicates": "error", |
| 35 | + "import/no-extraneous-dependencies": "error", |
| 36 | + "import/no-mutable-exports": "error", |
| 37 | + "import/no-named-as-default": "error", |
| 38 | + "import/no-named-as-default-member": "error", |
| 39 | + "import/no-named-default": "error", |
| 40 | + "import/no-self-import": "error", |
| 41 | + "import/no-unassigned-import": [ |
| 42 | + "error" |
| 43 | + ], |
| 44 | + "import/no-useless-path-segments": "error", |
| 45 | + "import/order": "error", |
17 | 46 | "indent": [
|
18 | 47 | "error",
|
19 | 48 | 2,
|
|
51 | 80 | "error",
|
52 | 81 | "never"
|
53 | 82 | ],
|
| 83 | + "strict": "error", |
54 | 84 | "unicorn/explicit-length-check": "off",
|
| 85 | + "unicorn/filename-case": "off", |
55 | 86 | "unicorn/no-array-callback-reference": "off",
|
56 | 87 | "unicorn/no-array-method-this-argument": "off",
|
57 | 88 | "unicorn/no-null": "off",
|
| 89 | + "unicorn/no-typeof-undefined": "off", |
58 | 90 | "unicorn/no-unused-properties": "error",
|
59 | 91 | "unicorn/prefer-array-flat": "off",
|
60 | 92 | "unicorn/prefer-dom-node-dataset": "off",
|
61 | 93 | "unicorn/prefer-module": "off",
|
62 | 94 | "unicorn/prefer-query-selector": "off",
|
63 | 95 | "unicorn/prefer-spread": "off",
|
64 | 96 | "unicorn/prevent-abbreviations": "off"
|
65 |
| - } |
| 97 | + }, |
| 98 | + "overrides": [ |
| 99 | + { |
| 100 | + "files": [ |
| 101 | + "build/**" |
| 102 | + ], |
| 103 | + "env": { |
| 104 | + "browser": false, |
| 105 | + "node": true |
| 106 | + }, |
| 107 | + "parserOptions": { |
| 108 | + "sourceType": "script" |
| 109 | + }, |
| 110 | + "rules": { |
| 111 | + "no-console": "off", |
| 112 | + "unicorn/prefer-top-level-await": "off" |
| 113 | + } |
| 114 | + }, |
| 115 | + { |
| 116 | + "files": [ |
| 117 | + "src/js/**" |
| 118 | + ], |
| 119 | + "parserOptions": { |
| 120 | + "sourceType": "module" |
| 121 | + } |
| 122 | + } |
| 123 | + ] |
66 | 124 | }
|
0 commit comments