diff --git a/package.json b/package.json index 1f545ba..0bc86b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.11.1", + "version": "0.12.0", "description": "Turn off all rules already supported by oxlint", "type": "module", "types": "./dist/index.d.ts", @@ -64,7 +64,7 @@ "husky": "^9.1.6", "lint-staged": "^15.2.10", "memfs": "^4.14.0", - "oxlint": "^0.11.1", + "oxlint": "^0.12.0", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1546deb..6b3e43d 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.11.1 - version: 0.11.1 + specifier: ^0.12.0 + version: 0.12.0 prettier: specifier: ^3.3.3 version: 3.3.3 @@ -466,43 +466,43 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.11.1': - resolution: {integrity: sha512-S+cHn49fT+qSJXhQ3Z4EG/5ENp2dAUbS2sMNkhgkLqlO8aYl0TR9R7omU3vpU/beu8ePnV+mdVlJYGjsPIMGtg==} + '@oxlint/darwin-arm64@0.12.0': + resolution: {integrity: sha512-UydkjcAImpmBn8JYaMPg0zJrwgWJMGvJagvCnyPfyiBRWAN83Kq+BDgJZgIq+2Te6kvlnoiHWNJKVJmpy0f0BA==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.11.1': - resolution: {integrity: sha512-LPuF0D8uu30KIVEeVuGwIPwHwJRQ1i1otwFFH7tRsNXPgMgZJ4VgriyH22i6RWwBtclJoCSBLtGK6gLZ0oZBvw==} + '@oxlint/darwin-x64@0.12.0': + resolution: {integrity: sha512-bxLyiAiHzXB56w7cf50YNPpZlK+PMxA8GgHutRSoNK/Z/BR/xsibNLs/9YNUnjHB+PF19+EbIRtJxoHjmbRr8g==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.11.1': - resolution: {integrity: sha512-CYBE+GRIPs5e+raD2pdicuBn6Y6E1xAnyWQ/kHE4GEWDAQZY0Um2VYEUTGH2ObwJ3uXr6jeJ16HOKJvr0S8a8w==} + '@oxlint/linux-arm64-gnu@0.12.0': + resolution: {integrity: sha512-jVkmfoMjPKFDIZySmpykwrCmx5xhpLJdMpUAR8ycEkFRJFp5qKLWZd6cEjiMb7gxmWN6qcCvDVTF/zEs3aRpyQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.11.1': - resolution: {integrity: sha512-iYXF5N5Gv+lc2wt90kxXy/W0cn7IEWu3UPzewIjPGDH8ajDckvGzZx6pTGYJnTyMh7U6hUKwOBFPVLMWI7UwKQ==} + '@oxlint/linux-arm64-musl@0.12.0': + resolution: {integrity: sha512-8VdV1nKYDj7AFaw1a03Ih43/+pUS/hhMZbTFLRMpvlVp1cPtdB77c+bl/OdiJ/BwNTzLIzr/GrospwCoEJkQKg==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.11.1': - resolution: {integrity: sha512-D0tT8X0CsK/bpdkGdLSmsGftG3VndjyAUJuNGt56JYn0UfuPDkhQcLgUlkANHzNRXJ84tLQKhpf/MUDUHPB5cg==} + '@oxlint/linux-x64-gnu@0.12.0': + resolution: {integrity: sha512-MacAt8N4XU5DeoHcseXLom/z+B0seecCz8vGAH4ppF2EH49o7NbN7VvFsw2nZ2QNO/4vw+pdS1BHXLTr9lY6zQ==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.11.1': - resolution: {integrity: sha512-WekaLYk8WLT7Di8+nyPvtqs9OlMoO6KjFDMlqqLDWQTk9ffjn8e76PCRigF3w39jQ70qP3c8k8cNKNw5ROuFcg==} + '@oxlint/linux-x64-musl@0.12.0': + resolution: {integrity: sha512-/ZBDJ9wpUE6bB05nniQl29kD5vJUMg6n75LdHD8F6ThXfsHGI/n7Je3gzggnXokgf9UQpTUPWrWlfEuWVCBMag==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.11.1': - resolution: {integrity: sha512-/CN/bFtI33vB8uemOkZxlNRf6Q7CftP2pSO7a6Q2niG4NC99YRPj7ctXcPF0jGR0NQUhGZk7ajM4G/0MKcRdag==} + '@oxlint/win32-arm64@0.12.0': + resolution: {integrity: sha512-hY1ya9dv8VY8113YSSDfMs/989aFmoA2fIZco8uxTxIEVl9nGY6tDtpgKZqUIiGrrMbDO8BBb1G5jsekmfexbA==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.11.1': - resolution: {integrity: sha512-0hLl0z6adYTvLIOPC5uyo+EAwNITkzi4AY4xImykQW8H89GhiV9Xl8MPJeZQMWSz7ajI1I2+hRsvA0QAzeBsxA==} + '@oxlint/win32-x64@0.12.0': + resolution: {integrity: sha512-NHLJolo4sZk3nu/bPNuaJ+6p5DdHoRuZAjyuSO6CnLgpmZcYqx7LgngA/x2oB/bLgi4Hv9twjHjODc5Ce5o14g==} cpu: [x64] os: [win32] @@ -1521,8 +1521,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.11.1: - resolution: {integrity: sha512-yVTkBmSvn1mo69vxBdNASOGFd1oqWzpaIWPFPIXNAHxgrW7FjotKuJ71j/pqtZH/sVSRWTpQFdmBa3CIuBEILg==} + oxlint@0.12.0: + resolution: {integrity: sha512-M0vWq8KYtp4vpweRxcdCiVO8QFwzoRyp5bWTMrEL/0Z+GDKCMJltac7H3T3T09FIiktOZLvID733d7OcKk/caw==} engines: {node: '>=14.*'} hasBin: true @@ -2363,28 +2363,28 @@ snapshots: '@oxc-node/core-win32-ia32-msvc': 0.0.15 '@oxc-node/core-win32-x64-msvc': 0.0.15 - '@oxlint/darwin-arm64@0.11.1': + '@oxlint/darwin-arm64@0.12.0': optional: true - '@oxlint/darwin-x64@0.11.1': + '@oxlint/darwin-x64@0.12.0': optional: true - '@oxlint/linux-arm64-gnu@0.11.1': + '@oxlint/linux-arm64-gnu@0.12.0': optional: true - '@oxlint/linux-arm64-musl@0.11.1': + '@oxlint/linux-arm64-musl@0.12.0': optional: true - '@oxlint/linux-x64-gnu@0.11.1': + '@oxlint/linux-x64-gnu@0.12.0': optional: true - '@oxlint/linux-x64-musl@0.11.1': + '@oxlint/linux-x64-musl@0.12.0': optional: true - '@oxlint/win32-arm64@0.11.1': + '@oxlint/win32-arm64@0.12.0': optional: true - '@oxlint/win32-x64@0.11.1': + '@oxlint/win32-x64@0.12.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3440,16 +3440,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.11.1: + oxlint@0.12.0: optionalDependencies: - '@oxlint/darwin-arm64': 0.11.1 - '@oxlint/darwin-x64': 0.11.1 - '@oxlint/linux-arm64-gnu': 0.11.1 - '@oxlint/linux-arm64-musl': 0.11.1 - '@oxlint/linux-x64-gnu': 0.11.1 - '@oxlint/linux-x64-musl': 0.11.1 - '@oxlint/win32-arm64': 0.11.1 - '@oxlint/win32-x64': 0.11.1 + '@oxlint/darwin-arm64': 0.12.0 + '@oxlint/darwin-x64': 0.12.0 + '@oxlint/linux-arm64-gnu': 0.12.0 + '@oxlint/linux-arm64-musl': 0.12.0 + '@oxlint/linux-x64-gnu': 0.12.0 + '@oxlint/linux-x64-musl': 0.12.0 + '@oxlint/win32-arm64': 0.12.0 + '@oxlint/win32-x64': 0.12.0 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index 4a91a49..58a42d1 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -116,6 +116,9 @@ exports[`contains all the oxlint rules 1`] = ` "@typescript-eslint/no-empty-interface": [ 0, ], + "@typescript-eslint/no-empty-object-type": [ + 0, + ], "@typescript-eslint/no-explicit-any": [ 0, ], @@ -251,6 +254,9 @@ exports[`contains all the oxlint rules 1`] = ` "import/first": [ 0, ], + "import/import-no-namespace": [ + 0, + ], "import/max-dependencies": [ 0, ], @@ -952,6 +958,9 @@ exports[`contains all the oxlint rules 1`] = ` 0, "always", ], + "react-hooks/exhaustive-deps": [ + 0, + ], "react-hooks/rules-of-hooks": [ 0, ], @@ -1105,6 +1114,9 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/consistent-empty-array-spread": [ 0, ], + "unicorn/consistent-existence-index-check": [ + 0, + ], "unicorn/consistent-function-scoping": [ 0, ], @@ -1330,6 +1342,9 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/prefer-spread": [ 0, ], + "unicorn/prefer-string-raw": [ + 0, + ], "unicorn/prefer-string-replace-all": [ 0, ], diff --git a/src/generated/rules-by-category.ts b/src/generated/rules-by-category.ts index 4fcd29b..4b12897 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -87,6 +87,7 @@ const nurseryRules = { 'import/no-deprecated': 'off', 'import/no-unused-modules': 'off', 'promise/no-return-in-finally': 'off', + 'react-hooks/exhaustive-deps': 'off', 'react/require-render-return': 'off', 'react-hooks/rules-of-hooks': 'off', 'tree-shaking/no-side-effects-in-initialization': 'off', @@ -130,6 +131,7 @@ const restrictionRules = { 'react/no-unknown-property': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-dynamic-delete': 'off', + '@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-import-type-side-effects': 'off', '@typescript-eslint/no-namespace': 'off', @@ -174,6 +176,7 @@ const styleRules = { 'sort-imports': 'off', 'sort-keys': 'off', 'import/first': 'off', + 'import/import-no-namespace': 'off', 'jest/consistent-test-it': 'off', 'jest/max-expects': 'off', 'jest/max-nested-describe': 'off', @@ -230,6 +233,7 @@ const styleRules = { '@typescript-eslint/prefer-function-type': 'off', '@typescript-eslint/prefer-namespace-keyword': 'off', 'unicorn/catch-error-name': 'off', + 'unicorn/consistent-existence-index-check': 'off', 'unicorn/empty-brace-spaces': 'off', 'unicorn/error-message': 'off', 'unicorn/filename-case': 'off', @@ -248,6 +252,7 @@ const styleRules = { 'unicorn/prefer-optional-catch-binding': 'off', 'unicorn/prefer-reflect-apply': 'off', 'unicorn/prefer-spread': 'off', + 'unicorn/prefer-string-raw': 'off', 'unicorn/prefer-string-trim-start-end': 'off', 'unicorn/prefer-structured-clone': 'off', 'unicorn/require-array-join-separator': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index c586325..ef0a546 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -141,6 +141,7 @@ const typescriptRules = { '@typescript-eslint/no-duplicate-enum-values': 'off', '@typescript-eslint/no-dynamic-delete': 'off', '@typescript-eslint/no-empty-interface': 'off', + '@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-extra-non-null-assertion': 'off', '@typescript-eslint/no-extraneous-class': 'off', @@ -171,6 +172,7 @@ const importRules = { 'import/default': 'off', 'import/export': 'off', 'import/first': 'off', + 'import/import-no-namespace': 'off', 'import/max-dependencies': 'off', 'import/named': 'off', 'import/namespace': 'off', @@ -365,6 +367,7 @@ const reactRules = { } as const; const reactHooksRules = { + 'react-hooks/exhaustive-deps': 'off', 'react-hooks/rules-of-hooks': 'off', } as const; @@ -382,6 +385,7 @@ const treeShakingRules = { const unicornRules = { 'unicorn/catch-error-name': 'off', 'unicorn/consistent-empty-array-spread': 'off', + 'unicorn/consistent-existence-index-check': 'off', 'unicorn/consistent-function-scoping': 'off', 'unicorn/empty-brace-spaces': 'off', 'unicorn/error-message': 'off', @@ -457,6 +461,7 @@ const unicornRules = { 'unicorn/prefer-regexp-test': 'off', 'unicorn/prefer-set-size': 'off', 'unicorn/prefer-spread': 'off', + 'unicorn/prefer-string-raw': 'off', 'unicorn/prefer-string-replace-all': 'off', 'unicorn/prefer-string-slice': 'off', 'unicorn/prefer-string-starts-ends-with': 'off',