From 8b57f9a88bc7b2b16a27d7b8a3be97df902ab8df Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 Jul 2024 20:12:34 +0800 Subject: [PATCH] Release (#114) From https://github.com/oxc-project/oxc/pull/ Co-authored-by: Boshen --- package.json | 2 +- pnpm-lock.yaml | 74 ++++++++++++++++++++-------------------- src/rules-by-category.ts | 4 +++ src/rules-by-scope.ts | 4 +++ 4 files changed, 46 insertions(+), 38 deletions(-) diff --git a/package.json b/package.json index 5c4fd22..1d805a3 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.2", + "oxlint": "^0.5.3", "prettier": "^3.3.1", "shelljs": "^0.8.5", "tsx": "^4.15.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eda823f..3fb3bfb 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.2 - version: 0.5.2 + specifier: ^0.5.3 + version: 0.5.3 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.2': - resolution: {integrity: sha512-NVUH1ZQYP1opS7LPd8xzmha9HrEDu+TpGSxM+dq9SS34FrsaYUEE4gue2OKo8Pgplu/oTKT7mUdTR4YDDBu5xA==} + '@oxlint/darwin-arm64@0.5.3': + resolution: {integrity: sha512-iMoO+AYbHcxHvIP1eJuGXlD+jaOh5RPdxVVbkQpqCnckBpheUBrQWDVpJSV7nF691vjyVinDnzGyz499dQS9Xg==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.5.2': - resolution: {integrity: sha512-jtaKcGhFC4frGzKVN2ieGQ0h960C1E1jQrTjMjNAvGfjRUpO9nDpNMD9BpsAbC0/GULEirtIg+5pW7G8gDQPTQ==} + '@oxlint/darwin-x64@0.5.3': + resolution: {integrity: sha512-tmP+Y0cnMrK9j1H8IgSZMveX/7r6vNNPr3H330xptKomjY5ikuslBOwGRmQ+0JMnfDApOKg78H7l7LlzanmVkg==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.5.2': - resolution: {integrity: sha512-B1HPicpi37lXBdSJOenSjI2sf4C/75iP+AcRHI8GPlrimm/RFvcMdV5F5k5KIVf+v7fKFiWXA/LY3SkjLkbmxw==} + '@oxlint/linux-arm64-gnu@0.5.3': + resolution: {integrity: sha512-oYG7b9CI4uam4+P+M8X7iUaBOMU3AM70C44m9i5ESDOJqyLMzH9A8B08dq2sbiEMi1uvQApDce8aQReAPdyaGQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.5.2': - resolution: {integrity: sha512-8JAWyrIJd5iSnikuCrHrvLpsJoFSeqhWGz3OIb2Xp0eLOT48G5oek/yASCd0IHTOL/fGUexarTqNG8tcX/qesg==} + '@oxlint/linux-arm64-musl@0.5.3': + resolution: {integrity: sha512-b5I/5Mj0eh6PByukdpeXY2B+uQBDr+oHxNrJ4eVtpCJ+8snZlnVk7kOR5HBnriWIp1C4uyvSsYUthGOAePdNcQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.5.2': - resolution: {integrity: sha512-qBcEN1evZxF9SQi7DegeIcnHhv88v73y2nkm9dqZ3wIflusvV5nxFkLAfh3df5K38mKo1/FxSnOvxN7E6aFjdg==} + '@oxlint/linux-x64-gnu@0.5.3': + resolution: {integrity: sha512-UXbzrCU8KFIhEcLEw8ZY4GJ4DCkc0Hh0UodcmyrDnMCPDSFt4NWeTmqw+f7eQlYn2R/NNoZgpZReepYxtS0DQA==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.5.2': - resolution: {integrity: sha512-6DOkaRkKx6ix9hliWG51cZvXSjwlDWhOPDibJJOg0nIpxpUbtAnEEVBwK3CoGrgRsuWH7wgu/kf1gkSyyePSVQ==} + '@oxlint/linux-x64-musl@0.5.3': + resolution: {integrity: sha512-MCbWmHz6DVbSqv53QBlbpA/I1sirEnnvpWAebho/jf3f6lYy9Nzy29/PoxWcWcYO4xArRJw8TmU6sOwIqZ07OQ==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.5.2': - resolution: {integrity: sha512-XBl1QQ+db0fVb/KnGLmjM6r2S3xkI770Z/u5jIvQxxj8M6FFdHdJozf55FnCRGap3H3kMpB56SVEAexB7Z29wA==} + '@oxlint/win32-arm64@0.5.3': + resolution: {integrity: sha512-XKt+juEXFS3sByy+LMSvSOxdPWZPFCkDSrdBf5gd8eLXvIbBcbMTsx1PE7rP90u5iEDVrq9Z4d/41eREl3Qtew==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.5.2': - resolution: {integrity: sha512-qP7JL8d7y7W91BpgyA8J3BmIGBl7E2rfZH4e7PX9hJ2o+W3pHBRpPxoFFqLx+zBMMkSHdv2h2FLVfvObbI58kQ==} + '@oxlint/win32-x64@0.5.3': + resolution: {integrity: sha512-1NnYzW/J86Uljus2oYxFcQsONZIGlUAG5AUe0q7zKcVoI1acNrBI26QICcS1O846Yd0P3T4MM/e6xbAJ87Di9Q==} cpu: [x64] os: [win32] @@ -1455,8 +1455,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.5.2: - resolution: {integrity: sha512-nEoadC0Pk3tgv41fIRwA1HiJJ45QIMj3NHkEGW89PSr5aqr7EzT0wcdhRTY1m+BFSVIoukJ26OqQABaAEG3jOQ==} + oxlint@0.5.3: + resolution: {integrity: sha512-U8esusepnWcBw1Mwj876kn9tdfDpahofeQm1+XTI3KhjbiBZJmULxvvwXK3zzLAC4fyyjlTR+XJwW0qPXvbJvw==} 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.2': + '@oxlint/darwin-arm64@0.5.3': optional: true - '@oxlint/darwin-x64@0.5.2': + '@oxlint/darwin-x64@0.5.3': optional: true - '@oxlint/linux-arm64-gnu@0.5.2': + '@oxlint/linux-arm64-gnu@0.5.3': optional: true - '@oxlint/linux-arm64-musl@0.5.2': + '@oxlint/linux-arm64-musl@0.5.3': optional: true - '@oxlint/linux-x64-gnu@0.5.2': + '@oxlint/linux-x64-gnu@0.5.3': optional: true - '@oxlint/linux-x64-musl@0.5.2': + '@oxlint/linux-x64-musl@0.5.3': optional: true - '@oxlint/win32-arm64@0.5.2': + '@oxlint/win32-arm64@0.5.3': optional: true - '@oxlint/win32-x64@0.5.2': + '@oxlint/win32-x64@0.5.3': 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.2: + oxlint@0.5.3: optionalDependencies: - '@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 + '@oxlint/darwin-arm64': 0.5.3 + '@oxlint/darwin-x64': 0.5.3 + '@oxlint/linux-arm64-gnu': 0.5.3 + '@oxlint/linux-arm64-musl': 0.5.3 + '@oxlint/linux-x64-gnu': 0.5.3 + '@oxlint/linux-x64-musl': 0.5.3 + '@oxlint/win32-arm64': 0.5.3 + '@oxlint/win32-x64': 0.5.3 p-limit@2.3.0: dependencies: diff --git a/src/rules-by-category.ts b/src/rules-by-category.ts index 98bb258..dcfefe9 100644 --- a/src/rules-by-category.ts +++ b/src/rules-by-category.ts @@ -95,6 +95,7 @@ const restrictionRules = { 'no-proto': 'off', 'no-regex-spaces': 'off', 'no-restricted-globals': 'off', + 'no-undefined': 'off', 'no-unsafe-optional-chaining': 'off', 'no-var': 'off', 'no-void': 'off', @@ -133,11 +134,13 @@ const styleRules = { 'guard-for-in': 'off', 'max-params': 'off', 'no-continue': 'off', + 'no-multi-str': 'off', 'no-script-url': 'off', 'no-template-curly-in-string': 'off', 'no-ternary': 'off', 'prefer-exponentiation-operator': 'off', 'sort-imports': 'off', + 'jest/consistent-test-it': 'off', 'jest/max-expects': 'off', 'jest/max-nested-describe': 'off', 'jest/no-alias-methods': 'off', @@ -346,6 +349,7 @@ const correctnessRules = { 'unicorn/no-document-cookie': 'off', 'unicorn/no-empty-file': 'off', 'unicorn/no-invalid-remove-event-listener': 'off', + 'unicorn/no-negation-in-equality-check': 'off', 'unicorn/no-new-array': 'off', 'unicorn/no-single-promise-in-promise-methods': 'off', 'unicorn/no-thenable': 'off', diff --git a/src/rules-by-scope.ts b/src/rules-by-scope.ts index 801c53f..8a13131 100644 --- a/src/rules-by-scope.ts +++ b/src/rules-by-scope.ts @@ -53,6 +53,7 @@ const eslintRules = { 'no-irregular-whitespace': 'off', 'no-iterator': 'off', 'no-loss-of-precision': 'off', + 'no-multi-str': 'off', 'no-new': 'off', 'no-new-native-nonconstructor': 'off', 'no-new-wrappers': 'off', @@ -73,6 +74,7 @@ const eslintRules = { 'no-ternary': 'off', 'no-this-before-super': 'off', 'no-undef': 'off', + 'no-undefined': 'off', 'no-unreachable': 'off', 'no-unsafe-finally': 'off', 'no-unsafe-negation': 'off', @@ -116,6 +118,7 @@ const importRules = { }; const jestRules = { + 'jest/consistent-test-it': 'off', 'jest/expect-expect': 'off', 'jest/max-expects': 'off', 'jest/max-nested-describe': 'off', @@ -331,6 +334,7 @@ const unicornRules = { 'unicorn/no-lonely-if': 'off', 'unicorn/no-magic-array-flat-depth': 'off', 'unicorn/no-negated-condition': 'off', + 'unicorn/no-negation-in-equality-check': 'off', 'unicorn/no-nested-ternary': 'off', 'unicorn/no-new-array': 'off', 'unicorn/no-new-buffer': 'off',