Skip to content

Commit

Permalink
release: v0.11.0 (#222)
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 3, 2024
1 parent 3a23865 commit 8349e73
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 41 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.1",
"version": "0.11.0",
"description": "Turn off all rules already supported by oxlint",
"type": "module",
"packageManager": "[email protected]",
Expand Down Expand Up @@ -63,7 +63,7 @@
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"memfs": "^4.14.0",
"oxlint": "^0.10.1",
"oxlint": "^0.11.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.

1 change: 0 additions & 1 deletion src/__snapshots__/build-from-oxlint-config.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ exports[`buildFromOxlintConfig > default plugins (react, unicorn, typescript), d
"no-useless-escape": "off",
"no-useless-rename": "off",
"no-with": "off",
"react/iframe-missing-sandbox": "off",
"react/jsx-key": "off",
"react/jsx-no-duplicate-props": "off",
"react/jsx-no-target-blank": "off",
Expand Down
12 changes: 12 additions & 0 deletions src/__snapshots__/rules-by-scope.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ exports[`contains all the oxlint rules 1`] = `
"import/no-amd": [
0,
],
"import/no-commonjs": [
0,
],
"import/no-cycle": [
0,
],
Expand Down Expand Up @@ -833,12 +836,18 @@ exports[`contains all the oxlint rules 1`] = `
"node/no-exports-assign": [
0,
],
"node/no-new-require": [
0,
],
"prefer-exponentiation-operator": [
0,
],
"prefer-numeric-literals": [
0,
],
"prefer-object-has-own": [
0,
],
"promise/avoid-new": [
0,
],
Expand Down Expand Up @@ -968,6 +977,9 @@ exports[`contains all the oxlint rules 1`] = `
"react/self-closing-comp": [
0,
],
"react/style-prop-object": [
0,
],
"react/void-dom-elements-no-children": [
0,
],
Expand Down
6 changes: 5 additions & 1 deletion src/rules-by-category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ const restrictionRules = {
'no-void': 'off',
'unicode-bom': 'off',
'import/no-amd': 'off',
'import/no-commonjs': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
'import/no-dynamic-require': 'off',
'import/no-webpack-loader-syntax': 'off',
'jsdoc/check-access': 'off',
'jsdoc/empty-tags': 'off',
'node/no-new-require': 'off',
'promise/catch-or-return': 'off',
'promise/spec-only': 'off',
'react/button-has-type': 'off',
Expand Down Expand Up @@ -166,6 +168,7 @@ const styleRules = {
'no-ternary': 'off',
'prefer-exponentiation-operator': 'off',
'prefer-numeric-literals': 'off',
'prefer-object-has-own': 'off',
'sort-imports': 'off',
'sort-keys': 'off',
'jest/consistent-test-it': 'off',
Expand Down Expand Up @@ -379,7 +382,6 @@ const correctnessRules = {
'promise/no-callback-in-promise': 'off',
'promise/no-new-statics': 'off',
'promise/valid-params': 'off',
'react/iframe-missing-sandbox': 'off',
'react/jsx-key': 'off',
'react/jsx-no-duplicate-props': 'off',
'react/jsx-no-target-blank': 'off',
Expand Down Expand Up @@ -440,8 +442,10 @@ const suspiciousRules = {
'import/no-named-as-default-member': 'off',
'import/no-self-import': 'off',
'jest/no-commented-out-tests': 'off',
'react/iframe-missing-sandbox': 'off',
'react/jsx-no-comment-textnodes': 'off',
'react/react-in-jsx-scope': 'off',
'react/style-prop-object': 'off',
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
Expand Down
4 changes: 4 additions & 0 deletions src/rules-by-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const eslintRules = {
'no-with': 'off',
'prefer-exponentiation-operator': 'off',
'prefer-numeric-literals': 'off',
'prefer-object-has-own': 'off',
radix: 'off',
'require-await': 'off',
'require-yield': 'off',
Expand Down Expand Up @@ -172,6 +173,7 @@ const importRules = {
'import/named': 'off',
'import/namespace': 'off',
'import/no-amd': 'off',
'import/no-commonjs': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
'import/no-deprecated': 'off',
Expand Down Expand Up @@ -311,6 +313,7 @@ const nextjsRules = {

const nodeRules = {
'node/no-exports-assign': 'off',
'node/no-new-require': 'off',
} as const;

const promiseRules = {
Expand Down Expand Up @@ -355,6 +358,7 @@ const reactRules = {
'react/require-render-return': 'off',
'react/rules-of-hooks': 'off',
'react/self-closing-comp': 'off',
'react/style-prop-object': 'off',
'react/void-dom-elements-no-children': 'off',
} as const;

Expand Down

0 comments on commit 8349e73

Please sign in to comment.