Skip to content

Commit

Permalink
chore: bump oxlint to 0.5.0 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing authored Jun 27, 2024
1 parent 7f68bb7 commit 921dc91
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 78 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"memfs": "^4.9.2",
"oxlint": "^0.4.0",
"oxlint": "^0.5.0",
"prettier": "^3.3.1",
"shelljs": "^0.8.5",
"tsx": "^4.15.1",
Expand Down
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 74 additions & 40 deletions src/rules-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,24 @@ const pedanticRules = {
'max-lines': 'off',
'no-array-constructor': 'off',
'no-case-declarations': 'off',
'no-constructor-return': 'off',
'no-fallthrough': 'off',
'no-inner-declarations': 'off',
'no-new-wrappers': 'off',
'no-prototype-builtins': 'off',
'no-redeclare': 'off',
'no-self-compare': 'off',
radix: 'off',
'require-await': 'off',
'symbol-description': 'off',
'import/max-dependencies': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-param-name': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-returns-type': 'off',
'react/checked-requires-onchange-or-readonly': 'off',
'react/jsx-no-useless-fragment': 'off',
'react/no-unescaped-entities': 'off',
Expand Down Expand Up @@ -59,16 +71,61 @@ const pedanticRules = {
const nurseryRules = {
'constructor-super': 'off',
'getter-return': 'off',
'no-fallthrough': 'off',
'no-import-assign': 'off',
'no-undef': 'off',
'no-unreachable': 'off',
'no-useless-constructor': 'off',
'import/export': 'off',
'import/no-deprecated': 'off',
'import/no-unused-modules': 'off',
'react/require-render-return': 'off',
'react/rules-of-hooks': 'off',
'tree-shaking/no-side-effects-in-initialization': 'off',
};

const restrictionRules = {
'default-case': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'no-div-regex': 'off',
'no-empty': 'off',
'no-empty-function': 'off',
'no-eq-null': 'off',
'no-eval': 'off',
'no-iterator': 'off',
'no-proto': 'off',
'no-regex-spaces': 'off',
'no-restricted-globals': 'off',
'no-unsafe-optional-chaining': 'off',
'no-var': 'off',
'no-void': 'off',
'unicode-bom': 'off',
'import/no-amd': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
'jsdoc/check-access': 'off',
'jsdoc/empty-tags': 'off',
'react/button-has-type': 'off',
'react/no-danger': 'off',
'react/no-unknown-property': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-import-type-side-effects': 'off',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-literal-enum-member': 'off',
'unicorn/no-abusive-eslint-disable': 'off',
'unicorn/no-anonymous-default-export': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-magic-array-flat-depth': 'off',
'unicorn/no-nested-ternary': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/prefer-modern-math-apis': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/prefer-number-properties': 'off',
};

const styleRules = {
'default-case-last': 'off',
'default-param-last': 'off',
Expand All @@ -78,15 +135,20 @@ const styleRules = {
'no-script-url': 'off',
'no-template-curly-in-string': 'off',
'no-ternary': 'off',
'prefer-exponentiation-operator': 'off',
'sort-imports': 'off',
'jest/max-expects': 'off',
'jest/max-nested-describe': 'off',
'jest/no-alias-methods': 'off',
'jest/no-confusing-set-timeout': 'off',
'jest/no-deprecated-functions': 'off',
'jest/no-done-callback': 'off',
'jest/no-duplicate-hooks': 'off',
'jest/no-hooks': 'off',
'jest/no-identical-title': 'off',
'jest/no-interpolation-in-snapshots': 'off',
'jest/no-jasmine-globals': 'off',
'jest/no-large-snapshots': 'off',
'jest/no-mocks-import': 'off',
'jest/no-restricted-jest-methods': 'off',
'jest/no-restricted-matchers': 'off',
Expand All @@ -97,6 +159,8 @@ const styleRules = {
'jest/prefer-comparison-matcher': 'off',
'jest/prefer-equality-matcher': 'off',
'jest/prefer-expect-resolves': 'off',
'jest/prefer-hooks-on-top': 'off',
'jest/prefer-jest-mocked': 'off',
'jest/prefer-lowercase-title': 'off',
'jest/prefer-mock-promise-shorthand': 'off',
'jest/prefer-spy-on': 'off',
Expand All @@ -106,9 +170,12 @@ const styleRules = {
'jest/prefer-to-have-length': 'off',
'jest/prefer-todo': 'off',
'jest/require-hook': 'off',
'jest/require-top-level-describe': 'off',
'react/prefer-es6-class': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/ban-tslint-comment': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/prefer-for-of': 'off',
Expand Down Expand Up @@ -163,6 +230,7 @@ const correctnessRules = {
'no-extra-boolean-cast': 'off',
'no-func-assign': 'off',
'no-global-assign': 'off',
'no-import-assign': 'off',
'no-irregular-whitespace': 'off',
'no-loss-of-precision': 'off',
'no-new-native-nonconstructor': 'off',
Expand Down Expand Up @@ -262,14 +330,14 @@ const correctnessRules = {
'react/no-is-mounted': 'off',
'react/no-render-return-value': 'off',
'react/no-string-refs': 'off',
'react/require-render-return': 'off',
'react/void-dom-elements-no-children': 'off',
'@typescript-eslint/no-extra-non-null-assertion': 'off',
'@typescript-eslint/no-misused-new': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'@typescript-eslint/no-useless-empty-export': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'unicorn/no-await-in-promise-methods': 'off',
Expand All @@ -295,43 +363,9 @@ const perfRules = {
'react-perf/jsx-no-new-object-as-prop': 'off',
};

const restrictionRules = {
'no-bitwise': 'off',
'no-console': 'off',
'no-empty': 'off',
'no-empty-function': 'off',
'no-eq-null': 'off',
'no-eval': 'off',
'no-iterator': 'off',
'no-proto': 'off',
'no-regex-spaces': 'off',
'no-unsafe-optional-chaining': 'off',
'no-var': 'off',
'no-void': 'off',
'unicode-bom': 'off',
'import/no-amd': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
'jsdoc/check-access': 'off',
'jsdoc/empty-tags': 'off',
'react/button-has-type': 'off',
'react/no-danger': 'off',
'react/no-unknown-property': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-literal-enum-member': 'off',
'unicorn/no-abusive-eslint-disable': 'off',
'unicorn/no-anonymous-default-export': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-nested-ternary': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/prefer-modern-math-apis': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/prefer-number-properties': 'off',
};

const suspiciousRules = {
'no-new': 'off',
'no-useless-concat': 'off',
'import/no-duplicates': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
Expand All @@ -346,9 +380,9 @@ const suspiciousRules = {
export {
pedanticRules,
nurseryRules,
restrictionRules,
styleRules,
correctnessRules,
perfRules,
restrictionRules,
suspiciousRules,
};
Loading

0 comments on commit 921dc91

Please sign in to comment.