eslint-plugin-oxlint
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"automerge": true, | ||
"extends": ["github>Boshen/renovate"], | ||
"packageRules": [ | ||
{ | ||
"groupName": "github-actions", | ||
"matchManagers": ["github-actions"] | ||
}, | ||
{ | ||
"groupName": "node", | ||
@@ -21,5 +17,6 @@ "matchManagers": ["nodenv"] | ||
"matchManagers": ["npm"], | ||
"matchDepNames": ["oxlint"] | ||
"matchDepNames": ["oxlint"], | ||
"schedule": ["at any time"] | ||
} | ||
] | ||
} |
{ | ||
"name": "eslint-plugin-oxlint", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Turn off all rules already supported by oxlint", | ||
@@ -42,6 +42,6 @@ "type": "module", | ||
"@types/eslint": "^8.56.10", | ||
"@types/node": "^20.12.12", | ||
"@types/node": "^20.14.2", | ||
"@types/shelljs": "^0.8.15", | ||
"@typescript-eslint/eslint-plugin": "^7.9.0", | ||
"@typescript-eslint/parser": "^7.9.0", | ||
"@typescript-eslint/eslint-plugin": "^7.12.0", | ||
"@typescript-eslint/parser": "^7.12.0", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
@@ -52,12 +52,12 @@ "bumpp": "^9.4.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-unicorn": "^53.0.0", | ||
"eslint-plugin-unicorn": "^54.0.0", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"lint-staged": "^15.2.5", | ||
"memfs": "^4.9.2", | ||
"oxlint": "^0.4.0", | ||
"prettier": "^3.2.5", | ||
"oxlint": "^0.5.0", | ||
"prettier": "^3.3.1", | ||
"shelljs": "^0.8.5", | ||
"tsx": "^4.10.5", | ||
"tsx": "^4.15.1", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.11", | ||
"vite": "^5.2.13", | ||
"vite-plugin-dts": "^3.9.1", | ||
@@ -64,0 +64,0 @@ "vitest": "^1.6.0" |
@@ -10,2 +10,4 @@ // These rules are automatically generated by scripts/generate-rules.ts | ||
'no-case-declarations': 'off', | ||
'no-constructor-return': 'off', | ||
'no-fallthrough': 'off', | ||
'no-inner-declarations': 'off', | ||
@@ -17,2 +19,12 @@ 'no-new-wrappers': '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', | ||
@@ -64,8 +76,9 @@ 'react/jsx-no-useless-fragment': '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', | ||
@@ -75,2 +88,46 @@ '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 = { | ||
@@ -85,3 +142,6 @@ 'default-case-last': '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', | ||
@@ -91,2 +151,3 @@ 'jest/no-confusing-set-timeout': 'off', | ||
'jest/no-done-callback': 'off', | ||
'jest/no-duplicate-hooks': 'off', | ||
'jest/no-hooks': 'off', | ||
@@ -96,2 +157,3 @@ 'jest/no-identical-title': 'off', | ||
'jest/no-jasmine-globals': 'off', | ||
'jest/no-large-snapshots': 'off', | ||
'jest/no-mocks-import': 'off', | ||
@@ -107,2 +169,4 @@ 'jest/no-restricted-jest-methods': 'off', | ||
'jest/prefer-expect-resolves': 'off', | ||
'jest/prefer-hooks-on-top': 'off', | ||
'jest/prefer-jest-mocked': 'off', | ||
'jest/prefer-lowercase-title': 'off', | ||
@@ -117,5 +181,8 @@ 'jest/prefer-mock-promise-shorthand': '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', | ||
@@ -175,2 +242,3 @@ '@typescript-eslint/no-empty-interface': 'off', | ||
'no-global-assign': 'off', | ||
'no-import-assign': 'off', | ||
'no-irregular-whitespace': 'off', | ||
@@ -275,3 +343,2 @@ 'no-loss-of-precision': 'off', | ||
'react/no-string-refs': 'off', | ||
'react/require-render-return': 'off', | ||
'react/void-dom-elements-no-children': 'off', | ||
@@ -284,2 +351,3 @@ '@typescript-eslint/no-extra-non-null-assertion': 'off', | ||
'@typescript-eslint/no-unsafe-declaration-merging': 'off', | ||
'@typescript-eslint/no-useless-empty-export': 'off', | ||
'@typescript-eslint/prefer-as-const': 'off', | ||
@@ -310,39 +378,5 @@ '@typescript-eslint/triple-slash-reference': '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', | ||
@@ -362,7 +396,7 @@ 'import/no-named-as-default': 'off', | ||
nurseryRules, | ||
restrictionRules, | ||
styleRules, | ||
correctnessRules, | ||
perfRules, | ||
restrictionRules, | ||
suspiciousRules, | ||
}; |
@@ -6,2 +6,3 @@ // These rules are automatically generated by scripts/generate-rules.ts | ||
'constructor-super': 'off', | ||
'default-case': 'off', | ||
'default-case-last': 'off', | ||
@@ -29,2 +30,3 @@ 'default-param-last': 'off', | ||
'no-constant-condition': 'off', | ||
'no-constructor-return': 'off', | ||
'no-continue': 'off', | ||
@@ -34,2 +36,3 @@ 'no-control-regex': 'off', | ||
'no-delete-var': 'off', | ||
'no-div-regex': 'off', | ||
'no-dupe-class-members': 'off', | ||
@@ -56,2 +59,3 @@ 'no-dupe-else-if': 'off', | ||
'no-loss-of-precision': 'off', | ||
'no-new': 'off', | ||
'no-new-native-nonconstructor': 'off', | ||
@@ -65,2 +69,3 @@ 'no-new-wrappers': 'off', | ||
'no-regex-spaces': 'off', | ||
'no-restricted-globals': 'off', | ||
'no-script-url': 'off', | ||
@@ -76,2 +81,3 @@ 'no-self-assign': 'off', | ||
'no-undef': 'off', | ||
'no-unreachable': 'off', | ||
'no-unsafe-finally': 'off', | ||
@@ -83,2 +89,4 @@ 'no-unsafe-negation': 'off', | ||
'no-useless-catch': 'off', | ||
'no-useless-concat': 'off', | ||
'no-useless-constructor': 'off', | ||
'no-useless-escape': 'off', | ||
@@ -89,4 +97,8 @@ 'no-useless-rename': 'off', | ||
'no-with': 'off', | ||
'prefer-exponentiation-operator': 'off', | ||
radix: 'off', | ||
'require-await': 'off', | ||
'require-yield': 'off', | ||
'sort-imports': 'off', | ||
'symbol-description': 'off', | ||
'unicode-bom': 'off', | ||
@@ -100,2 +112,3 @@ 'use-isnan': 'off', | ||
'import/export': 'off', | ||
'import/max-dependencies': 'off', | ||
'import/named': 'off', | ||
@@ -117,2 +130,3 @@ 'import/namespace': 'off', | ||
'jest/max-expects': 'off', | ||
'jest/max-nested-describe': 'off', | ||
'jest/no-alias-methods': 'off', | ||
@@ -125,2 +139,3 @@ 'jest/no-commented-out-tests': 'off', | ||
'jest/no-done-callback': 'off', | ||
'jest/no-duplicate-hooks': 'off', | ||
'jest/no-export': 'off', | ||
@@ -132,2 +147,3 @@ 'jest/no-focused-tests': 'off', | ||
'jest/no-jasmine-globals': 'off', | ||
'jest/no-large-snapshots': 'off', | ||
'jest/no-mocks-import': 'off', | ||
@@ -144,2 +160,4 @@ 'jest/no-restricted-jest-methods': 'off', | ||
'jest/prefer-expect-resolves': 'off', | ||
'jest/prefer-hooks-on-top': 'off', | ||
'jest/prefer-jest-mocked': 'off', | ||
'jest/prefer-lowercase-title': 'off', | ||
@@ -155,2 +173,3 @@ 'jest/prefer-mock-promise-shorthand': 'off', | ||
'jest/require-to-throw-message': 'off', | ||
'jest/require-top-level-describe': 'off', | ||
'jest/valid-describe-callback': 'off', | ||
@@ -168,2 +187,6 @@ 'jest/valid-expect': 'off', | ||
'jsdoc/no-defaults': 'off', | ||
'jsdoc/require-param': 'off', | ||
'jsdoc/require-param-description': 'off', | ||
'jsdoc/require-param-name': 'off', | ||
'jsdoc/require-param-type': 'off', | ||
'jsdoc/require-property': 'off', | ||
@@ -173,2 +196,5 @@ 'jsdoc/require-property-description': 'off', | ||
'jsdoc/require-property-type': 'off', | ||
'jsdoc/require-returns': 'off', | ||
'jsdoc/require-returns-description': 'off', | ||
'jsdoc/require-returns-type': 'off', | ||
'jsdoc/require-yields': 'off', | ||
@@ -247,2 +273,3 @@ }; | ||
'react/no-unknown-property': 'off', | ||
'react/prefer-es6-class': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
@@ -271,3 +298,5 @@ 'react/require-render-return': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/consistent-indexed-object-style': 'off', | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-duplicate-enum-values': 'off', | ||
@@ -277,8 +306,12 @@ '@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/no-extra-non-null-assertion': 'off', | ||
'@typescript-eslint/no-import-type-side-effects': 'off', | ||
'@typescript-eslint/no-misused-new': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off', | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-this-alias': 'off', | ||
'@typescript-eslint/no-unnecessary-type-constraint': 'off', | ||
'@typescript-eslint/no-unsafe-declaration-merging': 'off', | ||
'@typescript-eslint/no-useless-empty-export': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
@@ -315,2 +348,3 @@ '@typescript-eslint/prefer-as-const': 'off', | ||
'unicorn/no-lonely-if': 'off', | ||
'unicorn/no-magic-array-flat-depth': 'off', | ||
'unicorn/no-negated-condition': 'off', | ||
@@ -317,0 +351,0 @@ 'unicorn/no-nested-ternary': 'off', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
180717
4034