diff --git a/package.json b/package.json index d2b7ea4..5c4fd22 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "husky": "^9.0.11", "lint-staged": "^15.2.5", "memfs": "^4.9.2", - "oxlint": "^0.5.1", + "oxlint": "^0.5.2", "prettier": "^3.3.1", "shelljs": "^0.8.5", "tsx": "^4.15.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 98c632d..eda823f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,8 +58,8 @@ importers: specifier: ^4.9.2 version: 4.9.3 oxlint: - specifier: ^0.5.1 - version: 0.5.1 + specifier: ^0.5.2 + version: 0.5.2 prettier: specifier: ^3.3.1 version: 3.3.2 @@ -362,43 +362,43 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@oxlint/darwin-arm64@0.5.1': - resolution: {integrity: sha512-GMOD0CjP5W8pd/8cknUaC3Saq+46vCQKo5Xi8jLu/ZAa6kFxp9dtunqS5Dcx1DbbY4mVKjocirGE10P5MTdphA==} + '@oxlint/darwin-arm64@0.5.2': + resolution: {integrity: sha512-NVUH1ZQYP1opS7LPd8xzmha9HrEDu+TpGSxM+dq9SS34FrsaYUEE4gue2OKo8Pgplu/oTKT7mUdTR4YDDBu5xA==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.5.1': - resolution: {integrity: sha512-oSa96N6QLaUEZ3MaI1nU8y+qhDJ6kMr0OymukxpRpNaVbONkcs/GapDCDM9NitfZbrChQG9EkMC8eRUu3T1Mtg==} + '@oxlint/darwin-x64@0.5.2': + resolution: {integrity: sha512-jtaKcGhFC4frGzKVN2ieGQ0h960C1E1jQrTjMjNAvGfjRUpO9nDpNMD9BpsAbC0/GULEirtIg+5pW7G8gDQPTQ==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.5.1': - resolution: {integrity: sha512-eUZ9yybIcQe7jpN0BQmixF4m820FdN1iDRJzJEVtNejRXWcVKWNffYW4u2Sb0nvIeVVXeKc8BnVPdz0rxDpVVQ==} + '@oxlint/linux-arm64-gnu@0.5.2': + resolution: {integrity: sha512-B1HPicpi37lXBdSJOenSjI2sf4C/75iP+AcRHI8GPlrimm/RFvcMdV5F5k5KIVf+v7fKFiWXA/LY3SkjLkbmxw==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.5.1': - resolution: {integrity: sha512-XsQJ5XL3XckuJeQ/zJQy84NXYpO44XKwQXH70Ovk073c8jIa+ATpxz5Q1SLe92MFGlqt6zzejG4T3iePg09dAw==} + '@oxlint/linux-arm64-musl@0.5.2': + resolution: {integrity: sha512-8JAWyrIJd5iSnikuCrHrvLpsJoFSeqhWGz3OIb2Xp0eLOT48G5oek/yASCd0IHTOL/fGUexarTqNG8tcX/qesg==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.5.1': - resolution: {integrity: sha512-7ndq8fl56prdhVkHv4hZnpj8B2oZfXcuQRC5jJgy2ggs3btP1Q7+Hl4kP1E4WmAnUT4U9itQt+7TaeC86UkGTQ==} + '@oxlint/linux-x64-gnu@0.5.2': + resolution: {integrity: sha512-qBcEN1evZxF9SQi7DegeIcnHhv88v73y2nkm9dqZ3wIflusvV5nxFkLAfh3df5K38mKo1/FxSnOvxN7E6aFjdg==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.5.1': - resolution: {integrity: sha512-Cejhkd+pucRduqOkkbK6jsZCijA3XbRzcq9TECYb2qulbeb/1flXdjBtDENKC0imh1LK4IAyndMAxapP0Q9rAw==} + '@oxlint/linux-x64-musl@0.5.2': + resolution: {integrity: sha512-6DOkaRkKx6ix9hliWG51cZvXSjwlDWhOPDibJJOg0nIpxpUbtAnEEVBwK3CoGrgRsuWH7wgu/kf1gkSyyePSVQ==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.5.1': - resolution: {integrity: sha512-XcoT9P60SIteonev8EzAeQoQbwu2phFr7auEg8OFONQfnic+W1qgbmqgIq5Epfva5U6u+RHu4tZUAVaocRBicg==} + '@oxlint/win32-arm64@0.5.2': + resolution: {integrity: sha512-XBl1QQ+db0fVb/KnGLmjM6r2S3xkI770Z/u5jIvQxxj8M6FFdHdJozf55FnCRGap3H3kMpB56SVEAexB7Z29wA==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.5.1': - resolution: {integrity: sha512-hC/SLlPbT3WclDCJbgzS8oqcKZZPXx3gj5BiMsTK7xdePDYZ5vylEoh5nBiRtVt3m3vY3uC3fAaQEPOi4wk8TA==} + '@oxlint/win32-x64@0.5.2': + resolution: {integrity: sha512-qP7JL8d7y7W91BpgyA8J3BmIGBl7E2rfZH4e7PX9hJ2o+W3pHBRpPxoFFqLx+zBMMkSHdv2h2FLVfvObbI58kQ==} cpu: [x64] os: [win32] @@ -1455,8 +1455,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.5.1: - resolution: {integrity: sha512-+3i085aiIwvNHjlVUul2XJc8d/gNMTka0VXS4fK2eZoqKTaVKRjaraNnhFvS1ya1NQXwBCYOreV/Gl25dvUoDw==} + oxlint@0.5.2: + resolution: {integrity: sha512-nEoadC0Pk3tgv41fIRwA1HiJJ45QIMj3NHkEGW89PSr5aqr7EzT0wcdhRTY1m+BFSVIoukJ26OqQABaAEG3jOQ==} engines: {node: '>=14.*'} hasBin: true @@ -2250,28 +2250,28 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@oxlint/darwin-arm64@0.5.1': + '@oxlint/darwin-arm64@0.5.2': optional: true - '@oxlint/darwin-x64@0.5.1': + '@oxlint/darwin-x64@0.5.2': optional: true - '@oxlint/linux-arm64-gnu@0.5.1': + '@oxlint/linux-arm64-gnu@0.5.2': optional: true - '@oxlint/linux-arm64-musl@0.5.1': + '@oxlint/linux-arm64-musl@0.5.2': optional: true - '@oxlint/linux-x64-gnu@0.5.1': + '@oxlint/linux-x64-gnu@0.5.2': optional: true - '@oxlint/linux-x64-musl@0.5.1': + '@oxlint/linux-x64-musl@0.5.2': optional: true - '@oxlint/win32-arm64@0.5.1': + '@oxlint/win32-arm64@0.5.2': optional: true - '@oxlint/win32-x64@0.5.1': + '@oxlint/win32-x64@0.5.2': optional: true '@rollup/pluginutils@5.1.0(rollup@4.18.0)': @@ -3410,16 +3410,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.5.1: + oxlint@0.5.2: optionalDependencies: - '@oxlint/darwin-arm64': 0.5.1 - '@oxlint/darwin-x64': 0.5.1 - '@oxlint/linux-arm64-gnu': 0.5.1 - '@oxlint/linux-arm64-musl': 0.5.1 - '@oxlint/linux-x64-gnu': 0.5.1 - '@oxlint/linux-x64-musl': 0.5.1 - '@oxlint/win32-arm64': 0.5.1 - '@oxlint/win32-x64': 0.5.1 + '@oxlint/darwin-arm64': 0.5.2 + '@oxlint/darwin-x64': 0.5.2 + '@oxlint/linux-arm64-gnu': 0.5.2 + '@oxlint/linux-arm64-musl': 0.5.2 + '@oxlint/linux-x64-gnu': 0.5.2 + '@oxlint/linux-x64-musl': 0.5.2 + '@oxlint/win32-arm64': 0.5.2 + '@oxlint/win32-x64': 0.5.2 p-limit@2.3.0: dependencies: diff --git a/src/rules-by-category.ts b/src/rules-by-category.ts index 02b25e7..98bb258 100644 --- a/src/rules-by-category.ts +++ b/src/rules-by-category.ts @@ -73,13 +73,13 @@ const nurseryRules = { 'getter-return': 'off', 'no-undef': 'off', 'no-unreachable': 'off', - 'no-useless-constructor': 'off', 'import/export': 'off', 'import/no-deprecated': 'off', 'import/no-unused-modules': 'off', 'react/require-render-return': 'off', 'react/rules-of-hooks': 'off', 'tree-shaking/no-side-effects-in-initialization': 'off', + '@typescript-eslint/consistent-type-imports': 'off', }; const restrictionRules = { @@ -108,6 +108,7 @@ const restrictionRules = { 'react/no-danger': 'off', 'react/no-unknown-property': 'off', '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/no-dynamic-delete': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-import-type-side-effects': 'off', '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off', @@ -171,6 +172,7 @@ const styleRules = { 'jest/prefer-todo': 'off', 'jest/require-hook': 'off', 'jest/require-top-level-describe': 'off', + 'react/no-set-state': 'off', 'react/prefer-es6-class': 'off', '@typescript-eslint/adjacent-overload-signatures': 'off', '@typescript-eslint/array-type': 'off', @@ -366,6 +368,7 @@ const perfRules = { const suspiciousRules = { 'no-new': 'off', 'no-useless-concat': 'off', + 'no-useless-constructor': 'off', 'import/no-duplicates': 'off', 'import/no-named-as-default': 'off', 'import/no-named-as-default-member': 'off', diff --git a/src/rules-by-scope.ts b/src/rules-by-scope.ts index 42c7c7e..801c53f 100644 --- a/src/rules-by-scope.ts +++ b/src/rules-by-scope.ts @@ -251,6 +251,7 @@ const reactRules = { 'react/no-find-dom-node': 'off', 'react/no-is-mounted': 'off', 'react/no-render-return-value': 'off', + 'react/no-set-state': 'off', 'react/no-string-refs': 'off', 'react/no-unescaped-entities': 'off', 'react/no-unknown-property': 'off', @@ -280,8 +281,10 @@ const typescriptRules = { '@typescript-eslint/ban-types': 'off', '@typescript-eslint/consistent-indexed-object-style': 'off', '@typescript-eslint/consistent-type-definitions': 'off', + '@typescript-eslint/consistent-type-imports': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-duplicate-enum-values': 'off', + '@typescript-eslint/no-dynamic-delete': 'off', '@typescript-eslint/no-empty-interface': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-extra-non-null-assertion': 'off',