|
20 | 20 | "extras/themify/", |
21 | 21 |
|
22 | 22 | "ui/icon-set/svg-*.js", |
23 | | - "ui/lang/index.json" |
| 23 | + "ui/lang/index.json", |
| 24 | + |
| 25 | + "utils/render-ssr-error/compiled-assets/" |
24 | 26 | ], |
25 | 27 |
|
26 | | - "plugins": ["vue", "import", "eslint"], |
| 28 | + "plugins": ["vue", "import", "eslint", "promise", "vue", "unicorn"], |
27 | 29 |
|
28 | 30 | "categories": { |
29 | 31 | "style": "error", |
|
82 | 84 | "eslint/arrow-body-style": ["error", "as-needed"], |
83 | 85 | "vue/define-props-destructuring": "off", |
84 | 86 | "vue/define-props-declaration": "off", |
| 87 | + "promise/avoid-new": "off", |
| 88 | + "promise/param-names": "off", |
| 89 | + "promise/prefer-await-to-callbacks": "off", |
| 90 | + "promise/prefer-await-to-then": "off", |
| 91 | + "unicorn/no-nested-ternary": "off", |
| 92 | + "unicorn/no-null": "off", |
| 93 | + "unicorn/filename-case": "off", |
| 94 | + "unicorn/prefer-global-this": "off", |
85 | 95 |
|
86 | 96 | /** Performance rule overrides */ |
87 | 97 | "no-await-in-loop": "off", |
|
95 | 105 | "no-useless-concat": "off", |
96 | 106 | "require-post-message-target-origin": "off", |
97 | 107 | "no-this-in-exported-function": "off", |
| 108 | + "promise/always-return": "off", |
| 109 | + "promise/no-promise-in-callback": "off", |
98 | 110 |
|
99 | 111 | /** Correctness rule overrides */ |
100 | 112 | "no-unused-vars": [ |
|
103 | 115 | "ignoreRestSiblings": true |
104 | 116 | } |
105 | 117 | ], |
| 118 | + "promise/no-callback-in-promise": "off", |
106 | 119 |
|
107 | 120 | /** Restriction rule overrides */ |
108 | 121 | "no-void": "off", |
|
122 | 135 | "import/no-default-export": "off", |
123 | 136 | "import/no-dynamic-require": "off", |
124 | 137 | "import/unambiguous": "off", |
| 138 | + "promise/catch-or-return": "off", |
| 139 | + "unicorn/no-process-exit": "off", |
| 140 | + "unicorn/no-array-for-each": "off", |
| 141 | + "unicorn/no-array-reduce": "off", |
| 142 | + "unicorn/no-abusive-eslint-disable": "off", |
125 | 143 |
|
126 | 144 | /** Pedantic rule overrides */ |
127 | 145 | "unicorn/explicit-length-check": [ |
|
138 | 156 | "max-lines-per-function": "off", |
139 | 157 | "max-classes-per-file": "off", |
140 | 158 | "sort-vars": "off", |
141 | | - "import/max-dependencies": "off" |
| 159 | + "import/max-dependencies": "off", |
| 160 | + "unicorn/no-array-callback-reference": "off", |
| 161 | + "unicorn/prefer-query-selector": "off" |
142 | 162 | }, |
143 | 163 |
|
144 | 164 | "overrides": [ |
|
151 | 171 | }, |
152 | 172 |
|
153 | 173 | { |
154 | | - "files": ["{app-vite,cli,create-quasar,extras,icongenie,app-webpack}/**"], |
| 174 | + "files": ["{app-vite,cli,create-quasar,icongenie}/**"], |
| 175 | + "env": { |
| 176 | + "node": true |
| 177 | + }, |
| 178 | + "plugins": ["node"], |
| 179 | + "rules": { |
| 180 | + "import/first": "off", |
| 181 | + "node/no-process-env": "off" |
| 182 | + } |
| 183 | + }, |
| 184 | + |
| 185 | + { |
| 186 | + "files": ["{extras,app-webpack}/**"], |
155 | 187 | "env": { |
156 | 188 | "node": true |
157 | 189 | }, |
| 190 | + "plugins": ["node"], |
158 | 191 | "rules": { |
159 | | - "import/first": "off" |
| 192 | + "import/first": "off", |
| 193 | + "node/global-require": "off", |
| 194 | + "node/no-process-env": "off", |
| 195 | + "unicorn/prefer-module": "off", |
| 196 | + "unicorn/prefer-top-level-await": "off" |
160 | 197 | } |
161 | 198 | }, |
162 | 199 |
|
163 | 200 | { |
164 | | - "files": ["ui/src/**/*.js"], |
| 201 | + "files": ["ui/src/**"], |
165 | 202 | "globals": { |
166 | 203 | "__QUASAR_VERSION__": "readonly", |
167 | 204 | "__QUASAR_SSR__": "readonly", |
|
184 | 221 | "**/*.cjs" |
185 | 222 | ], |
186 | 223 | "rules": { |
187 | | - "no-commonjs": "off" |
| 224 | + "no-commonjs": "off", |
| 225 | + "unicorn/prefer-module": "off" |
188 | 226 | } |
189 | 227 | }, |
190 | 228 |
|
|
0 commit comments