diff --git a/package.json b/package.json index 975fa95..5d10cde 100644 --- a/package.json +++ b/package.json @@ -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": "pnpm@9.12.2", @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5d8929f..529d75c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,8 +49,8 @@ importers: specifier: ^4.14.0 version: 4.14.0 oxlint: - specifier: ^0.10.1 - version: 0.10.1 + specifier: ^0.11.0 + version: 0.11.0 prettier: specifier: ^3.3.3 version: 3.3.3 @@ -462,43 +462,43 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.10.1': - resolution: {integrity: sha512-C2g5Hq2Ev6BU7zpGmfSNsl7r6UH7vUi2pYm56VMtq1/6N/dnuaU8+sKJfKWq66EG+rz3Q2pW0+YUhTsepnLwjw==} + '@oxlint/darwin-arm64@0.11.0': + resolution: {integrity: sha512-qQ1C5yvRYECp+FP8DCOSqNX4+e72xXyApJ2O8QyIeYFuGGF2MoDVQz3NYJEOjOfArZ9YXGsELwM3UFtjTGIZVg==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.10.1': - resolution: {integrity: sha512-mN/1WnajvV2TOaVPB91ohzLURceDsjB0oR+4JcgDKfsdrru90JRvcBpFbvwKCPzneGc/V7foYBkaBXr6/j2VSQ==} + '@oxlint/darwin-x64@0.11.0': + resolution: {integrity: sha512-pAqp6/6+mAIPr8WBndzmEuRbcXW8WNdn80hd8fLeR9teJI8eMpTkYL6kQIU7VjJ3NxpmzBLO7nh979/bwmmuBQ==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.10.1': - resolution: {integrity: sha512-uIjJf9i3cPOSAa3jcjzl7ZqWTGitEhGiFp84nFG/O123HPv/E+gP1dlXqf7512CQDciVzrVoBZTf15Ynpy3S9g==} + '@oxlint/linux-arm64-gnu@0.11.0': + resolution: {integrity: sha512-RmpjCWjX0RJ1MdIcqGQsOlXh9WgXnVgVolZLCs8MHqNuYtaIA+0VOxOhJOr7CQ0HmwV+ysPTAiQ2SVSI2tVJQQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.10.1': - resolution: {integrity: sha512-OV9iMyXIwrH3Kp+AQhCgW02rwvzFlo1CNZ0IDNz9vEbGy7mwI8Tnyg2lWot3pD7Pv59JV9P6b7Czal8N8TszGQ==} + '@oxlint/linux-arm64-musl@0.11.0': + resolution: {integrity: sha512-totBeaOeZlblKRpSZi3svVWpJjFlhxR7Xzrh3nhPTgHMM3696qjzyb80Yg0K8gAlOrIDlBblLG0JnaxvdM2yjg==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.10.1': - resolution: {integrity: sha512-kOvWuA9iiN6QaSncxIRRxSNNJaOOtSsVkvJJL5GMhFczl4Uv6HHqLw8x1R89YTUwkQa96ycQ/TNSdN8K8ARIEw==} + '@oxlint/linux-x64-gnu@0.11.0': + resolution: {integrity: sha512-tXiJ97WH4vwTIkGMnXYPx5NqwQiYLW9MbmnGkKkm5Xv/wpAaN761PkHRJT0zsYoAgoU3nZVp3qhit9MpHq1SQg==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.10.1': - resolution: {integrity: sha512-p2MEr8ipWlmnVuvjc8xRBs/PHR3uMzHLp70J/PInHD+ULPf40MW/D7yBtjXQVlCcSOlFLCmvJdHjiGaaWKfcEA==} + '@oxlint/linux-x64-musl@0.11.0': + resolution: {integrity: sha512-LgjgD80fiz37g31t/jMm9kyDM31WPjcTkXXXU702WQsdhujXVUZDWid9/QeVvi51EVufyyekaTYgNR8REVVZZg==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.10.1': - resolution: {integrity: sha512-f6grRxe0zeMwpM45+in9DEdzH4Xu9magB3YFsXhGGZ7ki511ULlWhCXsSPfuv1EIbVc0GDzacFUK7CCdhIXQpg==} + '@oxlint/win32-arm64@0.11.0': + resolution: {integrity: sha512-lfANFSWt0vU6x9JQYeMEy6uy8wniZGYQt0nT45P3BwXIMhAJbEC3yEX+bP5x8eTQrgkDu4dwIDURGCeeUL/NdA==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.10.1': - resolution: {integrity: sha512-ocytlmlmDjkHi1BXGdnCGH0/jS3m+1RWFjWQz0bvVDmA60DEN8PyfvShQ3H5ks3k3CVpy1nVcM/E7T6i9xDHFg==} + '@oxlint/win32-x64@0.11.0': + resolution: {integrity: sha512-5CHtAp82xbv0jnh/HGi3QE0ANBr3+R338MA0wgZXc7477Vuri0aSK0T9oRU+K/pVloPVJaWKSDCCZoiZIYckzg==} cpu: [x64] os: [win32] @@ -1511,8 +1511,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.10.1: - resolution: {integrity: sha512-b7/cFNeY6A28fKMGokcunbZ/9EN6msunYeuPDWZIvxm2jRwitxX4+Zpw4kx1wt8vFxihf72v15kNNDWG5KZ09A==} + oxlint@0.11.0: + resolution: {integrity: sha512-uY6/R4k5bECwJBR+y8CqGRcUb5hxNReziBjt5+pk6DKxj46DqMd6HwEk090KnaH1czVf23r8mcEsJYGowMWeIA==} engines: {node: '>=14.*'} hasBin: true @@ -2354,28 +2354,28 @@ snapshots: '@oxc-node/core-win32-ia32-msvc': 0.0.15 '@oxc-node/core-win32-x64-msvc': 0.0.15 - '@oxlint/darwin-arm64@0.10.1': + '@oxlint/darwin-arm64@0.11.0': optional: true - '@oxlint/darwin-x64@0.10.1': + '@oxlint/darwin-x64@0.11.0': optional: true - '@oxlint/linux-arm64-gnu@0.10.1': + '@oxlint/linux-arm64-gnu@0.11.0': optional: true - '@oxlint/linux-arm64-musl@0.10.1': + '@oxlint/linux-arm64-musl@0.11.0': optional: true - '@oxlint/linux-x64-gnu@0.10.1': + '@oxlint/linux-x64-gnu@0.11.0': optional: true - '@oxlint/linux-x64-musl@0.10.1': + '@oxlint/linux-x64-musl@0.11.0': optional: true - '@oxlint/win32-arm64@0.10.1': + '@oxlint/win32-arm64@0.11.0': optional: true - '@oxlint/win32-x64@0.10.1': + '@oxlint/win32-x64@0.11.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3428,16 +3428,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.10.1: + oxlint@0.11.0: optionalDependencies: - '@oxlint/darwin-arm64': 0.10.1 - '@oxlint/darwin-x64': 0.10.1 - '@oxlint/linux-arm64-gnu': 0.10.1 - '@oxlint/linux-arm64-musl': 0.10.1 - '@oxlint/linux-x64-gnu': 0.10.1 - '@oxlint/linux-x64-musl': 0.10.1 - '@oxlint/win32-arm64': 0.10.1 - '@oxlint/win32-x64': 0.10.1 + '@oxlint/darwin-arm64': 0.11.0 + '@oxlint/darwin-x64': 0.11.0 + '@oxlint/linux-arm64-gnu': 0.11.0 + '@oxlint/linux-arm64-musl': 0.11.0 + '@oxlint/linux-x64-gnu': 0.11.0 + '@oxlint/linux-x64-musl': 0.11.0 + '@oxlint/win32-arm64': 0.11.0 + '@oxlint/win32-x64': 0.11.0 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/build-from-oxlint-config.spec.ts.snap b/src/__snapshots__/build-from-oxlint-config.spec.ts.snap index d4e0c97..8d79c9c 100644 --- a/src/__snapshots__/build-from-oxlint-config.spec.ts.snap +++ b/src/__snapshots__/build-from-oxlint-config.spec.ts.snap @@ -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", diff --git a/src/__snapshots__/rules-by-scope.spec.ts.snap b/src/__snapshots__/rules-by-scope.spec.ts.snap index 3385615..dfa1778 100644 --- a/src/__snapshots__/rules-by-scope.spec.ts.snap +++ b/src/__snapshots__/rules-by-scope.spec.ts.snap @@ -188,6 +188,9 @@ exports[`contains all the oxlint rules 1`] = ` "import/no-amd": [ 0, ], + "import/no-commonjs": [ + 0, + ], "import/no-cycle": [ 0, ], @@ -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, ], @@ -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, ], diff --git a/src/rules-by-category.ts b/src/rules-by-category.ts index 319c8b7..48e67b2 100644 --- a/src/rules-by-category.ts +++ b/src/rules-by-category.ts @@ -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', @@ -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', @@ -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', @@ -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', diff --git a/src/rules-by-scope.ts b/src/rules-by-scope.ts index 83617ad..9ea72f1 100644 --- a/src/rules-by-scope.ts +++ b/src/rules-by-scope.ts @@ -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', @@ -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', @@ -311,6 +313,7 @@ const nextjsRules = { const nodeRules = { 'node/no-exports-assign': 'off', + 'node/no-new-require': 'off', } as const; const promiseRules = { @@ -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;