Skip to content

Commit

Permalink
release: v0.14.1 (#275)
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 Dec 6, 2024
1 parent e8c5e50 commit 0bfaaff
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 39 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.14.0",
"version": "0.14.1",
"description": "Turn off all rules already supported by oxlint",
"type": "module",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -66,7 +66,7 @@
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"memfs": "^4.14.0",
"oxlint": "^0.14.0",
"oxlint": "^0.14.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.

20 changes: 20 additions & 0 deletions src/__snapshots__/configs.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,15 @@ exports[`contains all the oxlint rules 1`] = `
"disallowArithmeticOperators": false,
},
],
"no-unused-expressions": [
0,
{
"allowShortCircuit": false,
"allowTaggedTemplates": false,
"allowTernary": false,
"enforceForJSX": false,
},
],
"no-unused-labels": [
0,
],
Expand Down Expand Up @@ -979,6 +988,9 @@ exports[`contains all the oxlint rules 1`] = `
0,
"always",
],
"react-hooks/rules-of-hooks": [
0,
],
"react-perf/jsx-no-jsx-as-prop": [
0,
],
Expand Down Expand Up @@ -1433,5 +1445,13 @@ exports[`contains all the oxlint rules 1`] = `
"vitest/require-local-test-context-for-concurrent-snapshots": [
0,
],
"yoda": [
0,
"never",
{
"exceptRange": false,
"onlyEquality": false,
},
],
}
`;
6 changes: 6 additions & 0 deletions src/generated/configs-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ const reactConfig = {
rules: rules.reactRules,
};

const reactHooksConfig = {
name: 'oxlint/react-hooks',
rules: rules.reactHooksRules,
};

const reactPerfConfig = {
name: 'oxlint/react-perf',
rules: rules.reactPerfRules,
Expand Down Expand Up @@ -77,6 +82,7 @@ const configByScope = {
'flat/node': nodeConfig,
'flat/promise': promiseConfig,
'flat/react': reactConfig,
'flat/react-hooks': reactHooksConfig,
'flat/react-perf': reactPerfConfig,
'flat/typescript': typescriptConfig,
'flat/unicorn': unicornConfig,
Expand Down
3 changes: 3 additions & 0 deletions src/generated/rules-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const pedanticRules = {
'react/checked-requires-onchange-or-readonly': 'off',
'react/jsx-no-useless-fragment': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-array-constructor': 'off',
Expand Down Expand Up @@ -95,6 +96,7 @@ const restrictionRules = {
'no-regex-spaces': 'off',
'no-restricted-globals': 'off',
'no-undefined': 'off',
'no-unused-expressions': 'off',
'no-var': 'off',
'no-void': 'off',
'unicode-bom': 'off',
Expand Down Expand Up @@ -162,6 +164,7 @@ const styleRules = {
'prefer-spread': 'off',
'sort-imports': 'off',
'sort-keys': 'off',
yoda: 'off',
'import/first': 'off',
'import/no-namespace': 'off',
'jest/consistent-test-it': 'off',
Expand Down
7 changes: 7 additions & 0 deletions src/generated/rules-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const eslintRules = {
'no-unsafe-finally': 'off',
'no-unsafe-negation': 'off',
'no-unsafe-optional-chaining': 'off',
'no-unused-expressions': 'off',
'no-unused-labels': 'off',
'no-unused-private-class-members': 'off',
'no-unused-vars': 'off',
Expand All @@ -114,6 +115,7 @@ const eslintRules = {
'unicode-bom': 'off',
'use-isnan': 'off',
'valid-typeof': 'off',
yoda: 'off',
} as const;

const importRules = {
Expand Down Expand Up @@ -313,6 +315,10 @@ const reactRules = {
'react/void-dom-elements-no-children': 'off',
} as const;

const reactHooksRules = {
'react-hooks/rules-of-hooks': 'off',
} as const;

const reactPerfRules = {
'react-perf/jsx-no-jsx-as-prop': 'off',
'react-perf/jsx-no-new-array-as-prop': 'off',
Expand Down Expand Up @@ -488,6 +494,7 @@ export {
nodeRules,
promiseRules,
reactRules,
reactHooksRules,
reactPerfRules,
typescriptRules,
unicornRules,
Expand Down

0 comments on commit 0bfaaff

Please sign in to comment.