Skip to content

Commit

Permalink
release: v0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Aug 12, 2024
1 parent 738a8d2 commit 02d9af7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/rules-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const nurseryRules = {
'import/export': 'off',
'import/no-deprecated': 'off',
'import/no-unused-modules': 'off',
'promise/no-return-in-finally': 'off',
'react/require-render-return': 'off',
'react/rules-of-hooks': 'off',
'tree-shaking/no-side-effects-in-initialization': 'off',
Expand All @@ -67,7 +68,6 @@ const restrictionRules = {
'no-bitwise': 'off',
'no-console': 'off',
'no-empty-function': 'off',
'no-eq-null': 'off',
'no-eval': 'off',
'no-iterator': 'off',
'no-proto': 'off',
Expand Down Expand Up @@ -97,7 +97,6 @@ const restrictionRules = {
'unicorn/no-anonymous-default-export': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-length-as-slice-end': 'off',
'unicorn/no-magic-array-flat-depth': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/prefer-number-properties': 'off',
Expand Down Expand Up @@ -136,6 +135,7 @@ const styleRules = {
'jest/require-hook': 'off',
'jest/require-top-level-describe': 'off',
'promise/param-names': 'off',
'promise/prefer-await-to-then': 'off',
'react/jsx-curly-brace-presence': 'off',
'react/no-set-state': 'off',
'react/prefer-es6-class': 'off',
Expand Down Expand Up @@ -193,7 +193,6 @@ const correctnessRules = {
'no-async-promise-executor': 'off',
'no-caller': 'off',
'no-class-assign': 'off',
'no-compare-neg-zero': 'off',
'no-cond-assign': 'off',
'no-const-assign': 'off',
'no-constant-binary-expression': 'off',
Expand Down Expand Up @@ -264,7 +263,6 @@ const correctnessRules = {
'jsx-a11y/media-has-caption': 'off',
'jsx-a11y/mouse-events-have-key-events': 'off',
'jsx-a11y/no-access-key': 'off',
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
'jsx-a11y/no-distracting-elements': 'off',
'jsx-a11y/no-redundant-roles': 'off',
'jsx-a11y/prefer-tag-over-role': 'off',
Expand Down Expand Up @@ -292,6 +290,7 @@ const correctnessRules = {
'nextjs/no-title-in-document-head': 'off',
'nextjs/no-typos': 'off',
'nextjs/no-unwanted-polyfillio': 'off',
'promise/valid-params': 'off',
'react/jsx-key': 'off',
'react/jsx-no-duplicate-props': 'off',
'react/jsx-no-target-blank': 'off',
Expand Down Expand Up @@ -326,6 +325,10 @@ const perfRules = {
'react-perf/jsx-no-new-object-as-prop': 'off',
};

const conditionalSuggestionFixRules = {
'no-compare-neg-zero': 'off',
};

const fixRules = {
'no-debugger': 'off',
'no-div-regex': 'off',
Expand All @@ -348,6 +351,7 @@ const fixRules = {
'jest/prefer-to-be': 'off',
'jest/prefer-to-have-length': 'off',
'jest/prefer-todo': 'off',
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
'jsx-a11y/no-autofocus': 'off',
'promise/no-new-statics': 'off',
'react/jsx-boolean-value': 'off',
Expand All @@ -363,6 +367,7 @@ const fixRules = {
'unicorn/no-console-spaces': 'off',
'unicorn/no-hex-escape': 'off',
'unicorn/no-instanceof-array': 'off',
'unicorn/no-length-as-slice-end': 'off',
'unicorn/no-null': 'off',
'unicorn/no-useless-promise-resolve-reject': 'off',
'unicorn/no-useless-undefined': 'off',
Expand All @@ -378,6 +383,8 @@ const fixRules = {
'unicorn/require-number-to-fixed-digits-argument': 'off',
'unicorn/switch-case-braces': 'off',
'vitest/no-import-node-test': 'off',
'vitest/prefer-to-be-falsy': 'off',
'vitest/prefer-to-be-truthy': 'off',
};

const pendingRules = {
Expand All @@ -400,6 +407,10 @@ const pendingRules = {
'unicorn/throw-new-error': 'off',
};

const fixDangerousRules = {
'no-eq-null': 'off',
};

const suspiciousRules = {
'no-new': 'off',
'no-useless-concat': 'off',
Expand All @@ -426,7 +437,9 @@ export {
conditionalFixSuggestionRules,
correctnessRules,
perfRules,
conditionalSuggestionFixRules,
fixRules,
pendingRules,
fixDangerousRules,
suspiciousRules,
};
5 changes: 5 additions & 0 deletions src/rules-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ const nextjsRules = {
const promiseRules = {
'promise/avoid-new': 'off',
'promise/no-new-statics': 'off',
'promise/no-return-in-finally': 'off',
'promise/param-names': 'off',
'promise/prefer-await-to-then': 'off',
'promise/valid-params': 'off',
};

const reactRules = {
Expand Down Expand Up @@ -417,6 +420,8 @@ const unicornRules = {

const vitestRules = {
'vitest/no-import-node-test': 'off',
'vitest/prefer-to-be-falsy': 'off',
'vitest/prefer-to-be-truthy': 'off',
};

export {
Expand Down

0 comments on commit 02d9af7

Please sign in to comment.