@naturalcycles/dev-lib 20.15.0 → 20.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cfg/eslint.config.js +2 -0
- package/cfg/lint-staged.config.js +1 -0
- package/cfg/oxlint.config.json +4 -1
- package/dist/lint.util.js +1 -1
- package/package.json +1 -1
package/cfg/eslint.config.js
CHANGED
|
@@ -136,6 +136,8 @@ function getConfig(_tsconfigPath) {
|
|
|
136
136
|
...eslintPrettierRules.rules, // disable eslint rules already covered by prettier
|
|
137
137
|
...eslintBiomeRules.rules, // disable eslint rules already covered by biome
|
|
138
138
|
...eslintPluginOxlint.configs['flat/all'][0].rules, // disable eslint rules already covered by oxlint
|
|
139
|
+
// rules that are disabled, but shouldn't yet be disabled
|
|
140
|
+
'@typescript-eslint/return-await': [2, 'always'],
|
|
139
141
|
},
|
|
140
142
|
}
|
|
141
143
|
}
|
package/cfg/oxlint.config.json
CHANGED
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
}
|
|
160
160
|
],
|
|
161
161
|
"unicorn/no-anonymous-default-export": 2,
|
|
162
|
+
"unicorn/no-immediate-mutation": 2,
|
|
162
163
|
"unicorn/no-array-reduce": 2,
|
|
163
164
|
"unicorn/no-document-cookie": 2,
|
|
164
165
|
"unicorn/no-length-as-slice-end": 2,
|
|
@@ -166,6 +167,7 @@
|
|
|
166
167
|
"unicorn/prefer-modern-math-apis": 2,
|
|
167
168
|
"unicorn/prefer-node-protocol": 2,
|
|
168
169
|
"unicorn/require-module-specifiers": 2,
|
|
170
|
+
"unicorn/require-module-attributes": 2,
|
|
169
171
|
"unicorn/prefer-classlist-toggle": 2,
|
|
170
172
|
"unicorn/no-unnecessary-array-splice-count": 2,
|
|
171
173
|
"unicorn/no-useless-error-capture-stack-trace": 2,
|
|
@@ -285,8 +287,9 @@
|
|
|
285
287
|
"jest/max-nested-describe": [0, { "max": 4 }], // not good
|
|
286
288
|
"jest/no-alias-methods": 2,
|
|
287
289
|
"vue/no-multiple-slot-args": 2,
|
|
290
|
+
"vue/no-deprecated-destroyed-lifecycle": 2,
|
|
288
291
|
"vue/define-emits-declaration": [2, "type-based"],
|
|
289
|
-
"vue/define-props-declaration":
|
|
292
|
+
"vue/define-props-declaration": 2
|
|
290
293
|
},
|
|
291
294
|
"settings": {
|
|
292
295
|
"jsdoc": {
|
package/dist/lint.util.js
CHANGED
|
@@ -140,7 +140,7 @@ export function runOxlint(fix = true) {
|
|
|
140
140
|
exec2.spawn(oxlintPath, {
|
|
141
141
|
name: ['oxlint', !fix && '--no-fix'].filter(Boolean).join(' '),
|
|
142
142
|
args: [
|
|
143
|
-
// '--report-unused-disable-directives',
|
|
143
|
+
// '--report-unused-disable-directives', // wrongly reports disabled eslint (not oxlint) rules
|
|
144
144
|
'--max-warnings=0',
|
|
145
145
|
'--type-aware',
|
|
146
146
|
'--type-check',
|