Skip to content

Commit 725e330

Browse files
release: v0.7.1 (#138)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <Boshen@users.noreply.github.com>
1 parent e2db2f4 commit 725e330

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

src/rules-by-category.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const nurseryRules = {
5757
'import/export': 'off',
5858
'import/no-deprecated': 'off',
5959
'import/no-unused-modules': 'off',
60+
'promise/no-return-in-finally': 'off',
6061
'react/require-render-return': 'off',
6162
'react/rules-of-hooks': 'off',
6263
'tree-shaking/no-side-effects-in-initialization': 'off',
@@ -67,7 +68,6 @@ const restrictionRules = {
6768
'no-bitwise': 'off',
6869
'no-console': 'off',
6970
'no-empty-function': 'off',
70-
'no-eq-null': 'off',
7171
'no-eval': 'off',
7272
'no-iterator': 'off',
7373
'no-proto': 'off',
@@ -97,7 +97,6 @@ const restrictionRules = {
9797
'unicorn/no-anonymous-default-export': 'off',
9898
'unicorn/no-array-for-each': 'off',
9999
'unicorn/no-array-reduce': 'off',
100-
'unicorn/no-length-as-slice-end': 'off',
101100
'unicorn/no-magic-array-flat-depth': 'off',
102101
'unicorn/no-process-exit': 'off',
103102
'unicorn/prefer-number-properties': 'off',
@@ -136,6 +135,7 @@ const styleRules = {
136135
'jest/require-hook': 'off',
137136
'jest/require-top-level-describe': 'off',
138137
'promise/param-names': 'off',
138+
'promise/prefer-await-to-then': 'off',
139139
'react/jsx-curly-brace-presence': 'off',
140140
'react/no-set-state': 'off',
141141
'react/prefer-es6-class': 'off',
@@ -193,7 +193,6 @@ const correctnessRules = {
193193
'no-async-promise-executor': 'off',
194194
'no-caller': 'off',
195195
'no-class-assign': 'off',
196-
'no-compare-neg-zero': 'off',
197196
'no-cond-assign': 'off',
198197
'no-const-assign': 'off',
199198
'no-constant-binary-expression': 'off',
@@ -264,7 +263,6 @@ const correctnessRules = {
264263
'jsx-a11y/media-has-caption': 'off',
265264
'jsx-a11y/mouse-events-have-key-events': 'off',
266265
'jsx-a11y/no-access-key': 'off',
267-
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
268266
'jsx-a11y/no-distracting-elements': 'off',
269267
'jsx-a11y/no-redundant-roles': 'off',
270268
'jsx-a11y/prefer-tag-over-role': 'off',
@@ -292,6 +290,7 @@ const correctnessRules = {
292290
'nextjs/no-title-in-document-head': 'off',
293291
'nextjs/no-typos': 'off',
294292
'nextjs/no-unwanted-polyfillio': 'off',
293+
'promise/valid-params': 'off',
295294
'react/jsx-key': 'off',
296295
'react/jsx-no-duplicate-props': 'off',
297296
'react/jsx-no-target-blank': 'off',
@@ -326,6 +325,10 @@ const perfRules = {
326325
'react-perf/jsx-no-new-object-as-prop': 'off',
327326
};
328327

328+
const conditionalSuggestionFixRules = {
329+
'no-compare-neg-zero': 'off',
330+
};
331+
329332
const fixRules = {
330333
'no-debugger': 'off',
331334
'no-div-regex': 'off',
@@ -348,6 +351,7 @@ const fixRules = {
348351
'jest/prefer-to-be': 'off',
349352
'jest/prefer-to-have-length': 'off',
350353
'jest/prefer-todo': 'off',
354+
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
351355
'jsx-a11y/no-autofocus': 'off',
352356
'promise/no-new-statics': 'off',
353357
'react/jsx-boolean-value': 'off',
@@ -363,6 +367,7 @@ const fixRules = {
363367
'unicorn/no-console-spaces': 'off',
364368
'unicorn/no-hex-escape': 'off',
365369
'unicorn/no-instanceof-array': 'off',
370+
'unicorn/no-length-as-slice-end': 'off',
366371
'unicorn/no-null': 'off',
367372
'unicorn/no-useless-promise-resolve-reject': 'off',
368373
'unicorn/no-useless-undefined': 'off',
@@ -378,6 +383,8 @@ const fixRules = {
378383
'unicorn/require-number-to-fixed-digits-argument': 'off',
379384
'unicorn/switch-case-braces': 'off',
380385
'vitest/no-import-node-test': 'off',
386+
'vitest/prefer-to-be-falsy': 'off',
387+
'vitest/prefer-to-be-truthy': 'off',
381388
};
382389

383390
const pendingRules = {
@@ -400,6 +407,10 @@ const pendingRules = {
400407
'unicorn/throw-new-error': 'off',
401408
};
402409

410+
const fixDangerousRules = {
411+
'no-eq-null': 'off',
412+
};
413+
403414
const suspiciousRules = {
404415
'no-new': 'off',
405416
'no-useless-concat': 'off',
@@ -426,7 +437,9 @@ export {
426437
conditionalFixSuggestionRules,
427438
correctnessRules,
428439
perfRules,
440+
conditionalSuggestionFixRules,
429441
fixRules,
430442
pendingRules,
443+
fixDangerousRules,
431444
suspiciousRules,
432445
};

src/rules-by-scope.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ const nextjsRules = {
248248
const promiseRules = {
249249
'promise/avoid-new': 'off',
250250
'promise/no-new-statics': 'off',
251+
'promise/no-return-in-finally': 'off',
251252
'promise/param-names': 'off',
253+
'promise/prefer-await-to-then': 'off',
254+
'promise/valid-params': 'off',
252255
};
253256

254257
const reactRules = {
@@ -417,6 +420,8 @@ const unicornRules = {
417420

418421
const vitestRules = {
419422
'vitest/no-import-node-test': 'off',
423+
'vitest/prefer-to-be-falsy': 'off',
424+
'vitest/prefer-to-be-truthy': 'off',
420425
};
421426

422427
export {

0 commit comments

Comments
 (0)