eslint-plugin-oxlint
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -67,3 +67,2 @@ declare const configByCategory: { | ||
readonly 'no-undefined': "off"; | ||
readonly 'no-unsafe-optional-chaining': "off"; | ||
readonly 'import/no-amd': "off"; | ||
@@ -179,6 +178,8 @@ readonly 'import/no-cycle': "off"; | ||
}; | ||
'flat/dangerous-fix': { | ||
'flat/fix-dangerous': { | ||
name: string; | ||
rules: { | ||
readonly 'for-direction': "off"; | ||
readonly 'no-eq-null': "off"; | ||
readonly 'no-unexpected-multiline': "off"; | ||
}; | ||
@@ -190,2 +191,3 @@ }; | ||
readonly 'func-names': "off"; | ||
readonly 'no-compare-neg-zero': "off"; | ||
}; | ||
@@ -206,3 +208,2 @@ }; | ||
readonly 'no-nonoctal-decimal-escape': "off"; | ||
readonly 'no-plusplus': "off"; | ||
readonly 'no-proto': "off"; | ||
@@ -217,2 +218,3 @@ readonly 'no-regex-spaces': "off"; | ||
readonly 'nextjs/no-typos': "off"; | ||
readonly 'react/iframe-missing-sandbox': "off"; | ||
readonly 'react/no-unknown-property': "off"; | ||
@@ -286,2 +288,3 @@ readonly 'react/self-closing-comp': "off"; | ||
readonly 'no-unsafe-finally': "off"; | ||
readonly 'no-unsafe-optional-chaining': "off"; | ||
readonly 'no-unused-private-class-members': "off"; | ||
@@ -351,2 +354,3 @@ readonly 'no-useless-catch': "off"; | ||
readonly 'nextjs/no-unwanted-polyfillio': "off"; | ||
readonly 'promise/no-callback-in-promise': "off"; | ||
readonly 'promise/valid-params': "off"; | ||
@@ -390,8 +394,2 @@ readonly 'react/jsx-key': "off"; | ||
}; | ||
'flat/conditional-suggestion-fix': { | ||
name: string; | ||
rules: { | ||
readonly 'no-compare-neg-zero': "off"; | ||
}; | ||
}; | ||
'flat/fix': { | ||
@@ -481,9 +479,2 @@ name: string; | ||
}; | ||
'flat/fix-dangerous': { | ||
name: string; | ||
rules: { | ||
readonly 'no-eq-null': "off"; | ||
readonly 'no-unexpected-multiline': "off"; | ||
}; | ||
}; | ||
'flat/suspicious': { | ||
@@ -509,2 +500,3 @@ name: string; | ||
rules: { | ||
readonly 'no-plusplus': "off"; | ||
readonly 'no-throw-literal': "off"; | ||
@@ -511,0 +503,0 @@ readonly 'jsx-a11y/anchor-has-content': "off"; |
@@ -336,2 +336,3 @@ declare const configByScope: { | ||
readonly 'promise/catch-or-return': "off"; | ||
readonly 'promise/no-callback-in-promise': "off"; | ||
readonly 'promise/no-new-statics': "off"; | ||
@@ -351,2 +352,3 @@ readonly 'promise/no-return-in-finally': "off"; | ||
readonly 'react/checked-requires-onchange-or-readonly': "off"; | ||
readonly 'react/iframe-missing-sandbox': "off"; | ||
readonly 'react/jsx-boolean-value': "off"; | ||
@@ -353,0 +355,0 @@ readonly 'react/jsx-curly-brace-presence': "off"; |
@@ -58,3 +58,2 @@ declare const pedanticRules: { | ||
readonly 'no-undefined': "off"; | ||
readonly 'no-unsafe-optional-chaining': "off"; | ||
readonly 'import/no-amd': "off"; | ||
@@ -163,7 +162,10 @@ readonly 'import/no-cycle': "off"; | ||
}; | ||
declare const dangerousFixRules: { | ||
declare const fixDangerousRules: { | ||
readonly 'for-direction': "off"; | ||
readonly 'no-eq-null': "off"; | ||
readonly 'no-unexpected-multiline': "off"; | ||
}; | ||
declare const conditionalFixSuggestionRules: { | ||
readonly 'func-names': "off"; | ||
readonly 'no-compare-neg-zero': "off"; | ||
}; | ||
@@ -181,3 +183,2 @@ declare const pendingRules: { | ||
readonly 'no-nonoctal-decimal-escape': "off"; | ||
readonly 'no-plusplus': "off"; | ||
readonly 'no-proto': "off"; | ||
@@ -192,2 +193,3 @@ readonly 'no-regex-spaces': "off"; | ||
readonly 'nextjs/no-typos': "off"; | ||
readonly 'react/iframe-missing-sandbox': "off"; | ||
readonly 'react/no-unknown-property': "off"; | ||
@@ -258,2 +260,3 @@ readonly 'react/self-closing-comp': "off"; | ||
readonly 'no-unsafe-finally': "off"; | ||
readonly 'no-unsafe-optional-chaining': "off"; | ||
readonly 'no-unused-private-class-members': "off"; | ||
@@ -323,2 +326,3 @@ readonly 'no-useless-catch': "off"; | ||
readonly 'nextjs/no-unwanted-polyfillio': "off"; | ||
readonly 'promise/no-callback-in-promise': "off"; | ||
readonly 'promise/valid-params': "off"; | ||
@@ -358,5 +362,2 @@ readonly 'react/jsx-key': "off"; | ||
}; | ||
declare const conditionalSuggestionFixRules: { | ||
readonly 'no-compare-neg-zero': "off"; | ||
}; | ||
declare const fixRules: { | ||
@@ -440,6 +441,2 @@ readonly 'no-debugger': "off"; | ||
}; | ||
declare const fixDangerousRules: { | ||
readonly 'no-eq-null': "off"; | ||
readonly 'no-unexpected-multiline': "off"; | ||
}; | ||
declare const suspiciousRules: { | ||
@@ -460,2 +457,3 @@ readonly 'no-extend-native': "off"; | ||
declare const conditionalSuggestionRules: { | ||
readonly 'no-plusplus': "off"; | ||
readonly 'no-throw-literal': "off"; | ||
@@ -468,2 +466,2 @@ readonly 'jsx-a11y/anchor-has-content': "off"; | ||
}; | ||
export { pedanticRules, nurseryRules, restrictionRules, styleRules, conditionalFixRules, dangerousFixRules, conditionalFixSuggestionRules, pendingRules, correctnessRules, perfRules, conditionalSuggestionFixRules, fixRules, suggestionRules, fixDangerousRules, suspiciousRules, conditionalSuggestionRules, dangerousSuggestionRules, }; | ||
export { pedanticRules, nurseryRules, restrictionRules, styleRules, conditionalFixRules, fixDangerousRules, conditionalFixSuggestionRules, pendingRules, correctnessRules, perfRules, fixRules, suggestionRules, suspiciousRules, conditionalSuggestionRules, dangerousSuggestionRules, }; |
@@ -309,2 +309,3 @@ declare const eslintRules: { | ||
readonly 'promise/catch-or-return': "off"; | ||
readonly 'promise/no-callback-in-promise': "off"; | ||
readonly 'promise/no-new-statics': "off"; | ||
@@ -321,2 +322,3 @@ readonly 'promise/no-return-in-finally': "off"; | ||
readonly 'react/checked-requires-onchange-or-readonly': "off"; | ||
readonly 'react/iframe-missing-sandbox': "off"; | ||
readonly 'react/jsx-boolean-value': "off"; | ||
@@ -323,0 +325,0 @@ readonly 'react/jsx-curly-brace-presence': "off"; |
{ | ||
"name": "eslint-plugin-oxlint", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Turn off all rules already supported by oxlint", | ||
"type": "module", | ||
"packageManager": "pnpm@9.12.1", | ||
"packageManager": "pnpm@9.12.2", | ||
"exports": { | ||
@@ -55,24 +55,25 @@ ".": { | ||
"devDependencies": { | ||
"@eslint/js": "^9.12.0", | ||
"@eslint/js": "^9.13.0", | ||
"@oxc-node/core": "^0.0.15", | ||
"@types/node": "^22.0.0", | ||
"@types/node": "^22.7.7", | ||
"@types/shelljs": "^0.8.15", | ||
"@vitest/coverage-v8": "^2.0.0", | ||
"bumpp": "^9.4.1", | ||
"@vitest/coverage-v8": "^2.1.3", | ||
"bumpp": "^9.7.1", | ||
"dedent": "^1.5.3", | ||
"eslint": "^9.12.0", | ||
"eslint": "^9.13.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-unicorn": "^56.0.0", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.5", | ||
"memfs": "^4.9.2", | ||
"oxlint": "^0.10.0", | ||
"prettier": "^3.3.1", | ||
"husky": "^9.1.6", | ||
"jiti": "^2.3.3", | ||
"lint-staged": "^15.2.10", | ||
"memfs": "^4.14.0", | ||
"oxlint": "^0.10.1", | ||
"prettier": "^3.3.3", | ||
"scule": "^1.3.0", | ||
"shelljs": "^0.8.5", | ||
"typescript": "^5.4.5", | ||
"typescript-eslint": "^8.8.1", | ||
"vite": "^5.2.13", | ||
"vite-plugin-dts": "^4.0.0", | ||
"vitest": "^2.0.0" | ||
"typescript": "^5.6.3", | ||
"typescript-eslint": "^8.10.0", | ||
"vite": "^5.4.9", | ||
"vite-plugin-dts": "^4.2.4", | ||
"vitest": "^2.1.3" | ||
}, | ||
@@ -79,0 +80,0 @@ "lint-staged": { |
@@ -30,5 +30,5 @@ // These rules are automatically generated by scripts/generate-rules.ts | ||
const dangerousFixConfig = { | ||
name: 'oxlint/dangerous-fix', | ||
rules: rules.dangerousFixRules, | ||
const fixDangerousConfig = { | ||
name: 'oxlint/fix-dangerous', | ||
rules: rules.fixDangerousRules, | ||
}; | ||
@@ -56,7 +56,2 @@ | ||
const conditionalSuggestionFixConfig = { | ||
name: 'oxlint/conditional-suggestion-fix', | ||
rules: rules.conditionalSuggestionFixRules, | ||
}; | ||
const fixConfig = { | ||
@@ -72,7 +67,2 @@ name: 'oxlint/fix', | ||
const fixDangerousConfig = { | ||
name: 'oxlint/fix-dangerous', | ||
rules: rules.fixDangerousRules, | ||
}; | ||
const suspiciousConfig = { | ||
@@ -99,3 +89,3 @@ name: 'oxlint/suspicious', | ||
'flat/conditional-fix': conditionalFixConfig, | ||
'flat/dangerous-fix': dangerousFixConfig, | ||
'flat/fix-dangerous': fixDangerousConfig, | ||
'flat/conditional-fix-suggestion': conditionalFixSuggestionConfig, | ||
@@ -105,6 +95,4 @@ 'flat/pending': pendingConfig, | ||
'flat/perf': perfConfig, | ||
'flat/conditional-suggestion-fix': conditionalSuggestionFixConfig, | ||
'flat/fix': fixConfig, | ||
'flat/suggestion': suggestionConfig, | ||
'flat/fix-dangerous': fixDangerousConfig, | ||
'flat/suspicious': suspiciousConfig, | ||
@@ -111,0 +99,0 @@ 'flat/conditional-suggestion': conditionalSuggestionConfig, |
@@ -23,3 +23,2 @@ import * as ruleMapsByScope from './rules-by-scope.js'; | ||
recommended: { | ||
name: 'oxlint ignore rules recommended', | ||
plugins: ['oxlint'], | ||
@@ -29,3 +28,2 @@ rules: ruleMapsByCategory.correctnessRules, | ||
all: { | ||
name: 'oxlint ignore rules all', | ||
plugins: ['oxlint'], | ||
@@ -35,7 +33,7 @@ rules: allRules, | ||
'flat/all': { | ||
name: 'oxlint ignore rules all', | ||
name: 'oxlint/all', | ||
rules: allRules, | ||
}, | ||
'flat/recommended': { | ||
name: 'oxlint ignore rules recommended', | ||
name: 'oxlint/recommended', | ||
rules: ruleMapsByCategory.correctnessRules, | ||
@@ -42,0 +40,0 @@ }, |
@@ -62,3 +62,2 @@ // These rules are automatically generated by scripts/generate-rules.ts | ||
'no-undefined': 'off', | ||
'no-unsafe-optional-chaining': 'off', | ||
'import/no-amd': 'off', | ||
@@ -170,4 +169,6 @@ 'import/no-cycle': 'off', | ||
const dangerousFixRules = { | ||
const fixDangerousRules = { | ||
'for-direction': 'off', | ||
'no-eq-null': 'off', | ||
'no-unexpected-multiline': 'off', | ||
} as const; | ||
@@ -177,2 +178,3 @@ | ||
'func-names': 'off', | ||
'no-compare-neg-zero': 'off', | ||
} as const; | ||
@@ -191,3 +193,2 @@ | ||
'no-nonoctal-decimal-escape': 'off', | ||
'no-plusplus': 'off', | ||
'no-proto': 'off', | ||
@@ -202,2 +203,3 @@ 'no-regex-spaces': 'off', | ||
'nextjs/no-typos': 'off', | ||
'react/iframe-missing-sandbox': 'off', | ||
'react/no-unknown-property': 'off', | ||
@@ -269,2 +271,3 @@ 'react/self-closing-comp': 'off', | ||
'no-unsafe-finally': 'off', | ||
'no-unsafe-optional-chaining': 'off', | ||
'no-unused-private-class-members': 'off', | ||
@@ -334,2 +337,3 @@ 'no-useless-catch': 'off', | ||
'nextjs/no-unwanted-polyfillio': 'off', | ||
'promise/no-callback-in-promise': 'off', | ||
'promise/valid-params': 'off', | ||
@@ -371,6 +375,2 @@ 'react/jsx-key': 'off', | ||
const conditionalSuggestionFixRules = { | ||
'no-compare-neg-zero': 'off', | ||
} as const; | ||
const fixRules = { | ||
@@ -456,7 +456,2 @@ 'no-debugger': 'off', | ||
const fixDangerousRules = { | ||
'no-eq-null': 'off', | ||
'no-unexpected-multiline': 'off', | ||
} as const; | ||
const suspiciousRules = { | ||
@@ -478,2 +473,3 @@ 'no-extend-native': 'off', | ||
const conditionalSuggestionRules = { | ||
'no-plusplus': 'off', | ||
'no-throw-literal': 'off', | ||
@@ -494,3 +490,3 @@ 'jsx-a11y/anchor-has-content': 'off', | ||
conditionalFixRules, | ||
dangerousFixRules, | ||
fixDangerousRules, | ||
conditionalFixSuggestionRules, | ||
@@ -500,6 +496,4 @@ pendingRules, | ||
perfRules, | ||
conditionalSuggestionFixRules, | ||
fixRules, | ||
suggestionRules, | ||
fixDangerousRules, | ||
suspiciousRules, | ||
@@ -506,0 +500,0 @@ conditionalSuggestionRules, |
@@ -319,2 +319,3 @@ // These rules are automatically generated by scripts/generate-rules.ts | ||
'promise/catch-or-return': 'off', | ||
'promise/no-callback-in-promise': 'off', | ||
'promise/no-new-statics': 'off', | ||
@@ -332,2 +333,3 @@ 'promise/no-return-in-finally': 'off', | ||
'react/checked-requires-onchange-or-readonly': 'off', | ||
'react/iframe-missing-sandbox': 'off', | ||
'react/jsx-boolean-value': 'off', | ||
@@ -334,0 +336,0 @@ 'react/jsx-curly-brace-presence': 'off', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
370196
23
7473