Skip to content

Commit

Permalink
release: v0.13.0 (#253)
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 <[email protected]>
  • Loading branch information
oxc-bot and Boshen authored Nov 21, 2024
1 parent cc7c989 commit 80fc64c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 54 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.12.0",
"version": "0.13.0",
"description": "Turn off all rules already supported by oxlint",
"type": "module",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -64,7 +64,7 @@
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"memfs": "^4.14.0",
"oxlint": "^0.12.0",
"oxlint": "^0.13.0",
"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.

9 changes: 6 additions & 3 deletions src/__snapshots__/configs.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ exports[`contains all the oxlint rules 1`] = `
"@typescript-eslint/no-redeclare": [
0,
],
"@typescript-eslint/no-require-imports": [
0,
],
"@typescript-eslint/no-this-alias": [
0,
],
Expand Down Expand Up @@ -1012,6 +1015,9 @@ exports[`contains all the oxlint rules 1`] = `
"react/jsx-props-no-spread-multi": [
0,
],
"react/no-array-index-key": [
0,
],
"react/no-children-prop": [
0,
],
Expand Down Expand Up @@ -1101,9 +1107,6 @@ exports[`contains all the oxlint rules 1`] = `
"symbol-description": [
0,
],
"tree-shaking/no-side-effects-in-initialization": [
0,
],
"unicode-bom": [
0,
"never",
Expand Down
6 changes: 0 additions & 6 deletions src/generated/configs-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ const reactPerfConfig = {
rules: rules.reactPerfRules,
};

const treeShakingConfig = {
name: 'oxlint/tree-shaking',
rules: rules.treeShakingRules,
};

const unicornConfig = {
name: 'oxlint/unicorn',
rules: rules.unicornRules,
Expand All @@ -90,7 +85,6 @@ const configByScope = {
'flat/react': reactConfig,
'flat/react-hooks': reactHooksConfig,
'flat/react-perf': reactPerfConfig,
'flat/tree-shaking': treeShakingConfig,
'flat/unicorn': unicornConfig,
'flat/vitest': vitestConfig,
};
Expand Down
3 changes: 2 additions & 1 deletion src/generated/rules-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const nurseryRules = {
'react-hooks/exhaustive-deps': 'off',
'react/require-render-return': 'off',
'react-hooks/rules-of-hooks': 'off',
'tree-shaking/no-side-effects-in-initialization': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
} as const;

Expand Down Expand Up @@ -137,6 +136,7 @@ const restrictionRules = {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-literal-enum-member': 'off',
'unicorn/no-abusive-eslint-disable': 'off',
Expand Down Expand Up @@ -432,6 +432,7 @@ const correctnessRules = {

const perfRules = {
'no-await-in-loop': 'off',
'react/no-array-index-key': 'off',
'react-perf/jsx-no-jsx-as-prop': 'off',
'react-perf/jsx-no-new-array-as-prop': 'off',
'react-perf/jsx-no-new-function-as-prop': 'off',
Expand Down
7 changes: 2 additions & 5 deletions src/generated/rules-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const typescriptRules = {
'@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-require-imports': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
Expand Down Expand Up @@ -347,6 +348,7 @@ const reactRules = {
'react/jsx-no-undef': 'off',
'react/jsx-no-useless-fragment': 'off',
'react/jsx-props-no-spread-multi': 'off',
'react/no-array-index-key': 'off',
'react/no-children-prop': 'off',
'react/no-danger': 'off',
'react/no-danger-with-children': 'off',
Expand Down Expand Up @@ -378,10 +380,6 @@ const reactPerfRules = {
'react-perf/jsx-no-new-object-as-prop': 'off',
} as const;

const treeShakingRules = {
'tree-shaking/no-side-effects-in-initialization': 'off',
} as const;

const unicornRules = {
'unicorn/catch-error-name': 'off',
'unicorn/consistent-empty-array-spread': 'off',
Expand Down Expand Up @@ -498,7 +496,6 @@ export {
reactRules,
reactHooksRules,
reactPerfRules,
treeShakingRules,
unicornRules,
vitestRules,
};

0 comments on commit 80fc64c

Please sign in to comment.