Skip to content

Commit

Permalink
release: v0.10.1 (#193)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
oxc-bot and Boshen authored Oct 21, 2024
1 parent adecd06 commit c61716f
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 70 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.2",
Expand Down Expand Up @@ -66,7 +66,7 @@
"jiti": "^2.3.3",
"lint-staged": "^15.2.10",
"memfs": "^4.14.0",
"oxlint": "^0.10.0",
"oxlint": "^0.10.1",
"prettier": "^3.3.3",
"scule": "^1.3.0",
"shelljs": "^0.8.5",
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.

6 changes: 6 additions & 0 deletions src/__snapshots__/rules-by-scope.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,9 @@ exports[`contains all the oxlint rules 1`] = `
"promise/catch-or-return": [
0,
],
"promise/no-callback-in-promise": [
0,
],
"promise/no-new-statics": [
0,
],
Expand Down Expand Up @@ -1199,6 +1202,9 @@ exports[`contains all the oxlint rules 1`] = `
"react/checked-requires-onchange-or-readonly": [
0,
],
"react/iframe-missing-sandbox": [
0,
],
"react/jsx-boolean-value": [
0,
],
Expand Down
20 changes: 4 additions & 16 deletions src/configs-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ const conditionalFixConfig = {
rules: rules.conditionalFixRules,
};

const dangerousFixConfig = {
name: 'oxlint/dangerous-fix',
rules: rules.dangerousFixRules,
const fixDangerousConfig = {
name: 'oxlint/fix-dangerous',
rules: rules.fixDangerousRules,
};

const conditionalFixSuggestionConfig = {
Expand All @@ -52,11 +52,6 @@ const perfConfig = {
rules: rules.perfRules,
};

const conditionalSuggestionFixConfig = {
name: 'oxlint/conditional-suggestion-fix',
rules: rules.conditionalSuggestionFixRules,
};

const fixConfig = {
name: 'oxlint/fix',
rules: rules.fixRules,
Expand All @@ -67,11 +62,6 @@ const suggestionConfig = {
rules: rules.suggestionRules,
};

const fixDangerousConfig = {
name: 'oxlint/fix-dangerous',
rules: rules.fixDangerousRules,
};

const suspiciousConfig = {
name: 'oxlint/suspicious',
rules: rules.suspiciousRules,
Expand All @@ -93,15 +83,13 @@ const configByCategory = {
'flat/restriction': restrictionConfig,
'flat/style': styleConfig,
'flat/conditional-fix': conditionalFixConfig,
'flat/dangerous-fix': dangerousFixConfig,
'flat/fix-dangerous': fixDangerousConfig,
'flat/conditional-fix-suggestion': conditionalFixSuggestionConfig,
'flat/pending': pendingConfig,
'flat/correctness': correctnessConfig,
'flat/perf': perfConfig,
'flat/conditional-suggestion-fix': conditionalSuggestionFixConfig,
'flat/fix': fixConfig,
'flat/suggestion': suggestionConfig,
'flat/fix-dangerous': fixDangerousConfig,
'flat/suspicious': suspiciousConfig,
'flat/conditional-suggestion': conditionalSuggestionConfig,
'flat/dangerous-suggestion': dangerousSuggestionConfig,
Expand Down
24 changes: 9 additions & 15 deletions src/rules-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const restrictionRules = {
'no-eval': 'off',
'no-restricted-globals': 'off',
'no-undefined': 'off',
'no-unsafe-optional-chaining': 'off',
'import/no-amd': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
Expand Down Expand Up @@ -166,12 +165,15 @@ const conditionalFixRules = {
'unicorn/require-array-join-separator': 'off',
} as const;

const dangerousFixRules = {
const fixDangerousRules = {
'for-direction': 'off',
'no-eq-null': 'off',
'no-unexpected-multiline': 'off',
} as const;

const conditionalFixSuggestionRules = {
'func-names': 'off',
'no-compare-neg-zero': 'off',
} as const;

const pendingRules = {
Expand All @@ -185,7 +187,6 @@ const pendingRules = {
'@typescript-eslint/no-magic-numbers': 'off',
'no-new-wrappers': 'off',
'no-nonoctal-decimal-escape': 'off',
'no-plusplus': 'off',
'no-proto': 'off',
'no-regex-spaces': 'off',
'no-return-assign': 'off',
Expand All @@ -195,6 +196,7 @@ const pendingRules = {
'sort-vars': 'off',
'jsx-a11y/tabindex-no-positive': 'off',
'nextjs/no-typos': 'off',
'react/iframe-missing-sandbox': 'off',
'react/no-unknown-property': 'off',
'react/self-closing-comp': 'off',
'@typescript-eslint/ban-types': 'off',
Expand Down Expand Up @@ -261,6 +263,7 @@ const correctnessRules = {
'no-sparse-arrays': 'off',
'no-this-before-super': 'off',
'no-unsafe-finally': 'off',
'no-unsafe-optional-chaining': 'off',
'no-unused-private-class-members': 'off',
'no-useless-catch': 'off',
'no-useless-rename': 'off',
Expand Down Expand Up @@ -325,6 +328,7 @@ const correctnessRules = {
'nextjs/no-sync-scripts': 'off',
'nextjs/no-title-in-document-head': 'off',
'nextjs/no-unwanted-polyfillio': 'off',
'promise/no-callback-in-promise': 'off',
'promise/valid-params': 'off',
'react/jsx-key': 'off',
'react/jsx-no-duplicate-props': 'off',
Expand Down Expand Up @@ -361,10 +365,6 @@ const perfRules = {
'react-perf/jsx-no-new-object-as-prop': 'off',
} as const;

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

const fixRules = {
'no-debugger': 'off',
'no-div-regex': 'off',
Expand Down Expand Up @@ -445,11 +445,6 @@ const suggestionRules = {
'no-empty': 'off',
} as const;

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

const suspiciousRules = {
'no-extend-native': 'off',
'no-new': 'off',
Expand All @@ -466,6 +461,7 @@ const suspiciousRules = {
} as const;

const conditionalSuggestionRules = {
'no-plusplus': 'off',
'no-throw-literal': 'off',
'jsx-a11y/anchor-has-content': 'off',
} as const;
Expand All @@ -481,15 +477,13 @@ export {
restrictionRules,
styleRules,
conditionalFixRules,
dangerousFixRules,
fixDangerousRules,
conditionalFixSuggestionRules,
pendingRules,
correctnessRules,
perfRules,
conditionalSuggestionFixRules,
fixRules,
suggestionRules,
fixDangerousRules,
suspiciousRules,
conditionalSuggestionRules,
dangerousSuggestionRules,
Expand Down
2 changes: 2 additions & 0 deletions src/rules-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ const nodeRules = {
const promiseRules = {
'promise/avoid-new': 'off',
'promise/catch-or-return': 'off',
'promise/no-callback-in-promise': 'off',
'promise/no-new-statics': 'off',
'promise/no-return-in-finally': 'off',
'promise/param-names': 'off',
Expand All @@ -328,6 +329,7 @@ const promiseRules = {
const reactRules = {
'react/button-has-type': 'off',
'react/checked-requires-onchange-or-readonly': 'off',
'react/iframe-missing-sandbox': 'off',
'react/jsx-boolean-value': 'off',
'react/jsx-curly-brace-presence': 'off',
'react/jsx-key': 'off',
Expand Down

0 comments on commit c61716f

Please sign in to comment.