From bdae84f522317b362874e23c8aadf43590ad5607 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Mon, 23 Sep 2024 16:44:59 +0800 Subject: [PATCH] release: v0.9.7 (#161) Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen --- package.json | 2 +- pnpm-lock.yaml | 144 +++++++++++++++++++-------------------- src/rules-by-category.ts | 112 +++++++++++++++--------------- src/rules-by-scope.ts | 8 +++ 4 files changed, 139 insertions(+), 127 deletions(-) diff --git a/package.json b/package.json index 2269b4c..900a0dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.9.6", + "version": "0.9.7", "description": "Turn off all rules already supported by oxlint", "type": "module", "packageManager": "pnpm@9.9.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aa779b4..7ef4e20 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -77,7 +77,7 @@ importers: version: 5.4.2(@types/node@22.5.2) vite-plugin-dts: specifier: ^4.0.0 - version: 4.1.0(@types/node@22.5.2)(rollup@4.21.3)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.2)) + version: 4.1.0(@types/node@22.5.2)(rollup@4.22.4)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.2)) vitest: specifier: ^2.0.0 version: 2.0.5(@types/node@22.5.2) @@ -515,8 +515,8 @@ packages: cpu: [arm] os: [android] - '@rollup/rollup-android-arm-eabi@4.21.3': - resolution: {integrity: sha512-MmKSfaB9GX+zXl6E8z4koOr/xU63AMVleLEa64v7R0QF/ZloMs5vcD1sHgM64GXXS1csaJutG+ddtzcueI/BLg==} + '@rollup/rollup-android-arm-eabi@4.22.4': + resolution: {integrity: sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==} cpu: [arm] os: [android] @@ -525,8 +525,8 @@ packages: cpu: [arm64] os: [android] - '@rollup/rollup-android-arm64@4.21.3': - resolution: {integrity: sha512-zrt8ecH07PE3sB4jPOggweBjJMzI1JG5xI2DIsUbkA+7K+Gkjys6eV7i9pOenNSDJH3eOr/jLb/PzqtmdwDq5g==} + '@rollup/rollup-android-arm64@4.22.4': + resolution: {integrity: sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==} cpu: [arm64] os: [android] @@ -535,8 +535,8 @@ packages: cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-arm64@4.21.3': - resolution: {integrity: sha512-P0UxIOrKNBFTQaXTxOH4RxuEBVCgEA5UTNV6Yz7z9QHnUJ7eLX9reOd/NYMO3+XZO2cco19mXTxDMXxit4R/eQ==} + '@rollup/rollup-darwin-arm64@4.22.4': + resolution: {integrity: sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==} cpu: [arm64] os: [darwin] @@ -545,8 +545,8 @@ packages: cpu: [x64] os: [darwin] - '@rollup/rollup-darwin-x64@4.21.3': - resolution: {integrity: sha512-L1M0vKGO5ASKntqtsFEjTq/fD91vAqnzeaF6sfNAy55aD+Hi2pBI5DKwCO+UNDQHWsDViJLqshxOahXyLSh3EA==} + '@rollup/rollup-darwin-x64@4.22.4': + resolution: {integrity: sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==} cpu: [x64] os: [darwin] @@ -555,8 +555,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-gnueabihf@4.21.3': - resolution: {integrity: sha512-btVgIsCjuYFKUjopPoWiDqmoUXQDiW2A4C3Mtmp5vACm7/GnyuprqIDPNczeyR5W8rTXEbkmrJux7cJmD99D2g==} + '@rollup/rollup-linux-arm-gnueabihf@4.22.4': + resolution: {integrity: sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==} cpu: [arm] os: [linux] @@ -565,8 +565,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.21.3': - resolution: {integrity: sha512-zmjbSphplZlau6ZTkxd3+NMtE4UKVy7U4aVFMmHcgO5CUbw17ZP6QCgyxhzGaU/wFFdTfiojjbLG3/0p9HhAqA==} + '@rollup/rollup-linux-arm-musleabihf@4.22.4': + resolution: {integrity: sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==} cpu: [arm] os: [linux] @@ -575,8 +575,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.21.3': - resolution: {integrity: sha512-nSZfcZtAnQPRZmUkUQwZq2OjQciR6tEoJaZVFvLHsj0MF6QhNMg0fQ6mUOsiCUpTqxTx0/O6gX0V/nYc7LrgPw==} + '@rollup/rollup-linux-arm64-gnu@4.22.4': + resolution: {integrity: sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==} cpu: [arm64] os: [linux] @@ -585,8 +585,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.21.3': - resolution: {integrity: sha512-MnvSPGO8KJXIMGlQDYfvYS3IosFN2rKsvxRpPO2l2cum+Z3exiExLwVU+GExL96pn8IP+GdH8Tz70EpBhO0sIQ==} + '@rollup/rollup-linux-arm64-musl@4.22.4': + resolution: {integrity: sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==} cpu: [arm64] os: [linux] @@ -595,8 +595,8 @@ packages: cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.21.3': - resolution: {integrity: sha512-+W+p/9QNDr2vE2AXU0qIy0qQE75E8RTwTwgqS2G5CRQ11vzq0tbnfBd6brWhS9bCRjAjepJe2fvvkvS3dno+iw==} + '@rollup/rollup-linux-powerpc64le-gnu@4.22.4': + resolution: {integrity: sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==} cpu: [ppc64] os: [linux] @@ -605,8 +605,8 @@ packages: cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.21.3': - resolution: {integrity: sha512-yXH6K6KfqGXaxHrtr+Uoy+JpNlUlI46BKVyonGiaD74ravdnF9BUNC+vV+SIuB96hUMGShhKV693rF9QDfO6nQ==} + '@rollup/rollup-linux-riscv64-gnu@4.22.4': + resolution: {integrity: sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==} cpu: [riscv64] os: [linux] @@ -615,8 +615,8 @@ packages: cpu: [s390x] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.21.3': - resolution: {integrity: sha512-R8cwY9wcnApN/KDYWTH4gV/ypvy9yZUHlbJvfaiXSB48JO3KpwSpjOGqO4jnGkLDSk1hgjYkTbTt6Q7uvPf8eg==} + '@rollup/rollup-linux-s390x-gnu@4.22.4': + resolution: {integrity: sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==} cpu: [s390x] os: [linux] @@ -625,8 +625,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.21.3': - resolution: {integrity: sha512-kZPbX/NOPh0vhS5sI+dR8L1bU2cSO9FgxwM8r7wHzGydzfSjLRCFAT87GR5U9scj2rhzN3JPYVC7NoBbl4FZ0g==} + '@rollup/rollup-linux-x64-gnu@4.22.4': + resolution: {integrity: sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==} cpu: [x64] os: [linux] @@ -635,8 +635,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.21.3': - resolution: {integrity: sha512-S0Yq+xA1VEH66uiMNhijsWAafffydd2X5b77eLHfRmfLsRSpbiAWiRHV6DEpz6aOToPsgid7TI9rGd6zB1rhbg==} + '@rollup/rollup-linux-x64-musl@4.22.4': + resolution: {integrity: sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==} cpu: [x64] os: [linux] @@ -645,8 +645,8 @@ packages: cpu: [arm64] os: [win32] - '@rollup/rollup-win32-arm64-msvc@4.21.3': - resolution: {integrity: sha512-9isNzeL34yquCPyerog+IMCNxKR8XYmGd0tHSV+OVx0TmE0aJOo9uw4fZfUuk2qxobP5sug6vNdZR6u7Mw7Q+Q==} + '@rollup/rollup-win32-arm64-msvc@4.22.4': + resolution: {integrity: sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==} cpu: [arm64] os: [win32] @@ -655,8 +655,8 @@ packages: cpu: [ia32] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.21.3': - resolution: {integrity: sha512-nMIdKnfZfzn1Vsk+RuOvl43ONTZXoAPUUxgcU0tXooqg4YrAqzfKzVenqqk2g5efWh46/D28cKFrOzDSW28gTA==} + '@rollup/rollup-win32-ia32-msvc@4.22.4': + resolution: {integrity: sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==} cpu: [ia32] os: [win32] @@ -665,8 +665,8 @@ packages: cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.21.3': - resolution: {integrity: sha512-fOvu7PCQjAj4eWDEuD8Xz5gpzFqXzGlxHZozHP4b9Jxv9APtdxL6STqztDzMLuRXEc4UpXGGhx029Xgm91QBeA==} + '@rollup/rollup-win32-x64-msvc@4.22.4': + resolution: {integrity: sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==} cpu: [x64] os: [win32] @@ -1855,8 +1855,8 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rollup@4.21.3: - resolution: {integrity: sha512-7sqRtBNnEbcBtMeRVc6VRsJMmpI+JU1z9VTvW8D4gXIYQFz0aLcsE6rRkyghZkLfEgUZgVvOG7A5CVz/VW5GIA==} + rollup@4.22.4: + resolution: {integrity: sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -2594,108 +2594,108 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@rollup/pluginutils@5.1.0(rollup@4.21.3)': + '@rollup/pluginutils@5.1.0(rollup@4.22.4)': dependencies: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 optionalDependencies: - rollup: 4.21.3 + rollup: 4.22.4 '@rollup/rollup-android-arm-eabi@4.21.0': optional: true - '@rollup/rollup-android-arm-eabi@4.21.3': + '@rollup/rollup-android-arm-eabi@4.22.4': optional: true '@rollup/rollup-android-arm64@4.21.0': optional: true - '@rollup/rollup-android-arm64@4.21.3': + '@rollup/rollup-android-arm64@4.22.4': optional: true '@rollup/rollup-darwin-arm64@4.21.0': optional: true - '@rollup/rollup-darwin-arm64@4.21.3': + '@rollup/rollup-darwin-arm64@4.22.4': optional: true '@rollup/rollup-darwin-x64@4.21.0': optional: true - '@rollup/rollup-darwin-x64@4.21.3': + '@rollup/rollup-darwin-x64@4.22.4': optional: true '@rollup/rollup-linux-arm-gnueabihf@4.21.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.21.3': + '@rollup/rollup-linux-arm-gnueabihf@4.22.4': optional: true '@rollup/rollup-linux-arm-musleabihf@4.21.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.21.3': + '@rollup/rollup-linux-arm-musleabihf@4.22.4': optional: true '@rollup/rollup-linux-arm64-gnu@4.21.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.21.3': + '@rollup/rollup-linux-arm64-gnu@4.22.4': optional: true '@rollup/rollup-linux-arm64-musl@4.21.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.21.3': + '@rollup/rollup-linux-arm64-musl@4.22.4': optional: true '@rollup/rollup-linux-powerpc64le-gnu@4.21.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.21.3': + '@rollup/rollup-linux-powerpc64le-gnu@4.22.4': optional: true '@rollup/rollup-linux-riscv64-gnu@4.21.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.21.3': + '@rollup/rollup-linux-riscv64-gnu@4.22.4': optional: true '@rollup/rollup-linux-s390x-gnu@4.21.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.21.3': + '@rollup/rollup-linux-s390x-gnu@4.22.4': optional: true '@rollup/rollup-linux-x64-gnu@4.21.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.21.3': + '@rollup/rollup-linux-x64-gnu@4.22.4': optional: true '@rollup/rollup-linux-x64-musl@4.21.0': optional: true - '@rollup/rollup-linux-x64-musl@4.21.3': + '@rollup/rollup-linux-x64-musl@4.22.4': optional: true '@rollup/rollup-win32-arm64-msvc@4.21.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.21.3': + '@rollup/rollup-win32-arm64-msvc@4.22.4': optional: true '@rollup/rollup-win32-ia32-msvc@4.21.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.21.3': + '@rollup/rollup-win32-ia32-msvc@4.22.4': optional: true '@rollup/rollup-win32-x64-msvc@4.21.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.21.3': + '@rollup/rollup-win32-x64-msvc@4.22.4': optional: true '@rushstack/node-core-library@5.5.1(@types/node@22.5.2)': @@ -4001,26 +4001,26 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.21.0 fsevents: 2.3.3 - rollup@4.21.3: + rollup@4.22.4: dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.21.3 - '@rollup/rollup-android-arm64': 4.21.3 - '@rollup/rollup-darwin-arm64': 4.21.3 - '@rollup/rollup-darwin-x64': 4.21.3 - '@rollup/rollup-linux-arm-gnueabihf': 4.21.3 - '@rollup/rollup-linux-arm-musleabihf': 4.21.3 - '@rollup/rollup-linux-arm64-gnu': 4.21.3 - '@rollup/rollup-linux-arm64-musl': 4.21.3 - '@rollup/rollup-linux-powerpc64le-gnu': 4.21.3 - '@rollup/rollup-linux-riscv64-gnu': 4.21.3 - '@rollup/rollup-linux-s390x-gnu': 4.21.3 - '@rollup/rollup-linux-x64-gnu': 4.21.3 - '@rollup/rollup-linux-x64-musl': 4.21.3 - '@rollup/rollup-win32-arm64-msvc': 4.21.3 - '@rollup/rollup-win32-ia32-msvc': 4.21.3 - '@rollup/rollup-win32-x64-msvc': 4.21.3 + '@rollup/rollup-android-arm-eabi': 4.22.4 + '@rollup/rollup-android-arm64': 4.22.4 + '@rollup/rollup-darwin-arm64': 4.22.4 + '@rollup/rollup-darwin-x64': 4.22.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.22.4 + '@rollup/rollup-linux-arm-musleabihf': 4.22.4 + '@rollup/rollup-linux-arm64-gnu': 4.22.4 + '@rollup/rollup-linux-arm64-musl': 4.22.4 + '@rollup/rollup-linux-powerpc64le-gnu': 4.22.4 + '@rollup/rollup-linux-riscv64-gnu': 4.22.4 + '@rollup/rollup-linux-s390x-gnu': 4.22.4 + '@rollup/rollup-linux-x64-gnu': 4.22.4 + '@rollup/rollup-linux-x64-musl': 4.22.4 + '@rollup/rollup-win32-arm64-msvc': 4.22.4 + '@rollup/rollup-win32-ia32-msvc': 4.22.4 + '@rollup/rollup-win32-x64-msvc': 4.22.4 fsevents: 2.3.3 optional: true @@ -4243,10 +4243,10 @@ snapshots: - supports-color - terser - vite-plugin-dts@4.1.0(@types/node@22.5.2)(rollup@4.21.3)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.2)): + vite-plugin-dts@4.1.0(@types/node@22.5.2)(rollup@4.22.4)(typescript@5.5.4)(vite@5.4.2(@types/node@22.5.2)): dependencies: '@microsoft/api-extractor': 7.47.4(@types/node@22.5.2) - '@rollup/pluginutils': 5.1.0(rollup@4.21.3) + '@rollup/pluginutils': 5.1.0(rollup@4.22.4) '@volar/typescript': 2.4.1 '@vue/language-core': 2.0.29(typescript@5.5.4) compare-versions: 6.1.1 diff --git a/src/rules-by-category.ts b/src/rules-by-category.ts index 4cc11ca..0eeb574 100644 --- a/src/rules-by-category.ts +++ b/src/rules-by-category.ts @@ -4,11 +4,9 @@ const pedanticRules = { 'array-callback-return': 'off', 'max-classes-per-file': 'off', 'max-lines': 'off', - 'no-array-constructor': 'off', 'no-case-declarations': 'off', 'no-constructor-return': 'off', 'no-inner-declarations': 'off', - 'no-new-wrappers': 'off', 'no-prototype-builtins': 'off', 'no-redeclare': 'off', 'no-self-compare': 'off', @@ -27,11 +25,9 @@ const pedanticRules = { 'react/checked-requires-onchange-or-readonly': 'off', 'react/jsx-no-useless-fragment': 'off', 'react/no-unescaped-entities': 'off', - '@typescript-eslint/no-duplicate-enum-values': 'off', 'unicorn/new-for-builtins': 'off', 'unicorn/no-lonely-if': 'off', 'unicorn/no-object-as-default-parameter': 'off', - 'unicorn/no-static-only-class': 'off', 'unicorn/no-this-assignment': 'off', 'unicorn/no-unreadable-iife': 'off', 'unicorn/prefer-dom-node-remove': 'off', @@ -59,13 +55,9 @@ const restrictionRules = { 'no-console': 'off', 'no-empty-function': 'off', 'no-eval': 'off', - 'no-iterator': 'off', - 'no-proto': 'off', - 'no-regex-spaces': 'off', 'no-restricted-globals': 'off', 'no-undefined': 'off', 'no-unsafe-optional-chaining': 'off', - 'no-void': 'off', 'import/no-amd': 'off', 'import/no-cycle': 'off', 'import/no-default-export': 'off', @@ -73,7 +65,6 @@ const restrictionRules = { 'import/no-webpack-loader-syntax': 'off', 'jsdoc/check-access': 'off', 'jsdoc/empty-tags': 'off', - 'promise/avoid-new': 'off', 'promise/catch-or-return': 'off', 'promise/spec-only': 'off', 'react/button-has-type': 'off', @@ -89,7 +80,6 @@ const restrictionRules = { 'unicorn/no-anonymous-default-export': 'off', 'unicorn/no-array-reduce': 'off', 'unicorn/no-magic-array-flat-depth': 'off', - 'unicorn/no-process-exit': 'off', }; const styleRules = { @@ -102,7 +92,6 @@ const styleRules = { 'no-multi-str': 'off', 'no-new-func': 'off', 'no-script-url': 'off', - 'no-template-curly-in-string': 'off', 'no-ternary': 'off', 'prefer-exponentiation-operator': 'off', 'jest/max-expects': 'off', @@ -125,6 +114,7 @@ const styleRules = { 'jest/prefer-to-contain': 'off', 'jest/require-hook': 'off', 'jest/require-top-level-describe': 'off', + 'promise/avoid-new': 'off', 'promise/param-names': 'off', 'promise/prefer-await-to-then': 'off', 'react/jsx-curly-brace-presence': 'off', @@ -134,7 +124,6 @@ const styleRules = { '@typescript-eslint/no-empty-interface': 'off', 'unicorn/error-message': 'off', 'unicorn/filename-case': 'off', - 'unicorn/no-await-expression-member': 'off', 'unicorn/no-unreadable-array-destructuring': 'off', 'unicorn/prefer-reflect-apply': 'off', 'vitest/prefer-each': 'off', @@ -179,6 +168,57 @@ const conditionalFixSuggestionRules = { 'func-names': 'off', }; +const pendingRules = { + 'no-array-constructor': 'off', + 'no-empty-static-block': 'off', + 'no-extra-boolean-cast': 'off', + 'no-fallthrough': 'off', + 'no-iterator': 'off', + 'no-magic-numbers': 'off', + 'no-new-wrappers': 'off', + 'no-nonoctal-decimal-escape': 'off', + 'no-plusplus': 'off', + 'no-proto': 'off', + 'no-regex-spaces': 'off', + 'no-template-curly-in-string': 'off', + 'no-void': 'off', + 'sort-keys': 'off', + 'sort-vars': 'off', + 'jsx-a11y/tabindex-no-positive': 'off', + 'nextjs/no-typos': 'off', + 'react/no-unknown-property': 'off', + 'react/self-closing-comp': 'off', + '@typescript-eslint/ban-types': 'off', + '@typescript-eslint/no-confusing-non-null-assertion': 'off', + '@typescript-eslint/prefer-enum-initializers': 'off', + '@typescript-eslint/prefer-for-of': 'off', + 'unicorn/catch-error-name': 'off', + 'unicorn/consistent-function-scoping': 'off', + 'unicorn/no-array-for-each': 'off', + 'unicorn/no-await-expression-member': 'off', + 'unicorn/no-negated-condition': 'off', + 'unicorn/no-negation-in-equality-check': 'off', + 'unicorn/no-new-array': 'off', + 'unicorn/no-new-buffer': 'off', + 'unicorn/no-process-exit': 'off', + 'unicorn/no-static-only-class': 'off', + 'unicorn/no-typeof-undefined': 'off', + 'unicorn/no-useless-length-check': 'off', + 'unicorn/no-useless-switch-case': 'off', + 'unicorn/prefer-add-event-listener': 'off', + 'unicorn/prefer-blob-reading-methods': 'off', + 'unicorn/prefer-dom-node-dataset': 'off', + 'unicorn/prefer-includes': 'off', + 'unicorn/prefer-logical-operator-over-ternary': 'off', + 'unicorn/prefer-math-trunc': 'off', + 'unicorn/prefer-modern-dom-apis': 'off', + 'unicorn/prefer-modern-math-apis': 'off', + 'unicorn/prefer-native-coercion-functions': 'off', + 'unicorn/prefer-number-properties': 'off', + 'unicorn/prefer-structured-clone': 'off', + 'vitest/require-local-test-context-for-concurrent-snapshots': 'off', +}; + const correctnessRules = { 'no-async-promise-executor': 'off', 'no-caller': 'off', @@ -195,7 +235,6 @@ const correctnessRules = { 'no-duplicate-case': 'off', 'no-empty-character-class': 'off', 'no-empty-pattern': 'off', - 'no-empty-static-block': 'off', 'no-ex-assign': 'off', 'no-func-assign': 'off', 'no-global-assign': 'off', @@ -281,12 +320,15 @@ const correctnessRules = { 'react/jsx-no-target-blank': 'off', 'react/jsx-no-undef': 'off', 'react/no-children-prop': 'off', + 'react/no-danger-with-children': 'off', 'react/no-direct-mutation-state': 'off', 'react/no-find-dom-node': 'off', 'react/no-is-mounted': 'off', 'react/no-render-return-value': 'off', 'react/no-string-refs': 'off', 'react/void-dom-elements-no-children': 'off', + 'security/api-keys': 'off', + '@typescript-eslint/no-duplicate-enum-values': 'off', '@typescript-eslint/no-extra-non-null-assertion': 'off', '@typescript-eslint/no-misused-new': 'off', '@typescript-eslint/no-non-null-asserted-optional-chain': 'off', @@ -394,49 +436,11 @@ const suggestionRules = { const fixDangerousRules = { 'no-eq-null': 'off', -}; - -const pendingRules = { - 'no-extra-boolean-cast': 'off', - 'no-fallthrough': 'off', - 'no-magic-numbers': 'off', - 'no-nonoctal-decimal-escape': 'off', - 'no-plusplus': 'off', - 'sort-keys': 'off', - 'sort-vars': 'off', - 'jsx-a11y/tabindex-no-positive': 'off', - 'nextjs/no-typos': 'off', - 'react/no-unknown-property': 'off', - 'react/self-closing-comp': 'off', - '@typescript-eslint/ban-types': 'off', - '@typescript-eslint/no-confusing-non-null-assertion': 'off', - '@typescript-eslint/prefer-enum-initializers': 'off', - '@typescript-eslint/prefer-for-of': 'off', - 'unicorn/catch-error-name': 'off', - 'unicorn/consistent-function-scoping': 'off', - 'unicorn/no-array-for-each': 'off', - 'unicorn/no-negated-condition': 'off', - 'unicorn/no-negation-in-equality-check': 'off', - 'unicorn/no-new-array': 'off', - 'unicorn/no-new-buffer': 'off', - 'unicorn/no-typeof-undefined': 'off', - 'unicorn/no-useless-length-check': 'off', - 'unicorn/no-useless-switch-case': 'off', - 'unicorn/prefer-add-event-listener': 'off', - 'unicorn/prefer-blob-reading-methods': 'off', - 'unicorn/prefer-dom-node-dataset': 'off', - 'unicorn/prefer-includes': 'off', - 'unicorn/prefer-logical-operator-over-ternary': 'off', - 'unicorn/prefer-math-trunc': 'off', - 'unicorn/prefer-modern-dom-apis': 'off', - 'unicorn/prefer-modern-math-apis': 'off', - 'unicorn/prefer-native-coercion-functions': 'off', - 'unicorn/prefer-number-properties': 'off', - 'unicorn/prefer-structured-clone': 'off', - 'vitest/require-local-test-context-for-concurrent-snapshots': 'off', + 'no-unexpected-multiline': 'off', }; const suspiciousRules = { + 'no-extend-native': 'off', 'no-new': 'off', 'no-useless-concat': 'off', 'import/no-duplicates': 'off', @@ -466,13 +470,13 @@ export { conditionalFixRules, dangerousFixRules, conditionalFixSuggestionRules, + pendingRules, correctnessRules, perfRules, conditionalSuggestionFixRules, fixRules, suggestionRules, fixDangerousRules, - pendingRules, suspiciousRules, dangerousSuggestionRules, conditionalSuggestionRules, diff --git a/src/rules-by-scope.ts b/src/rules-by-scope.ts index fd068a7..2e82754 100644 --- a/src/rules-by-scope.ts +++ b/src/rules-by-scope.ts @@ -46,6 +46,7 @@ const eslintRules = { 'no-eq-null': 'off', 'no-eval': 'off', 'no-ex-assign': 'off', + 'no-extend-native': 'off', 'no-extra-boolean-cast': 'off', 'no-fallthrough': 'off', 'no-func-assign': 'off', @@ -82,6 +83,7 @@ const eslintRules = { 'no-this-before-super': 'off', 'no-undef': 'off', 'no-undefined': 'off', + 'no-unexpected-multiline': 'off', 'no-unreachable': 'off', 'no-unsafe-finally': 'off', 'no-unsafe-negation': 'off', @@ -284,6 +286,7 @@ const reactRules = { 'react/jsx-props-no-spread-multi': 'off', 'react/no-children-prop': 'off', 'react/no-danger': 'off', + 'react/no-danger-with-children': 'off', 'react/no-direct-mutation-state': 'off', 'react/no-find-dom-node': 'off', 'react/no-is-mounted': 'off', @@ -307,6 +310,10 @@ const reactPerfRules = { 'react-perf/jsx-no-new-object-as-prop': 'off', }; +const securityRules = { + 'security/api-keys': 'off', +}; + const treeShakingRules = { 'tree-shaking/no-side-effects-in-initialization': 'off', }; @@ -460,6 +467,7 @@ export { promiseRules, reactRules, reactPerfRules, + securityRules, treeShakingRules, typescriptRules, unicornRules,