From 41e6c16476d3d0eaa124e7c659131f6296b90e90 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Sun, 14 Jan 2024 00:12:38 +0800 Subject: [PATCH] feat: update oxlint version to v0.2.0 --- package.json | 2 +- pnpm-lock.yaml | 44 ++++++++++++++++++++++---------------------- rules.cjs | 12 +++++++++--- rules.js | 12 +++++++++--- 4 files changed, 41 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index 3dd701a..374ba23 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "bumpp": "^9.2.1", "eslint": "^8.56.0", "eslint-plugin-unicorn": "^50.0.1", - "oxlint": "^0.1.2", + "oxlint": "^0.2.0", "tsx": "^4.7.0", "typescript": "^5.3.3" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b8d7ca..0dae87a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,8 +30,8 @@ devDependencies: specifier: ^50.0.1 version: 50.0.1(eslint@8.56.0) oxlint: - specifier: ^0.1.2 - version: 0.1.2 + specifier: ^0.2.0 + version: 0.2.0 tsx: specifier: ^4.7.0 version: 4.7.0 @@ -380,48 +380,48 @@ packages: fastq: 1.16.0 dev: true - /@oxlint/darwin-arm64@0.1.2: - resolution: {integrity: sha512-bOYzbxJEXogwulAhGVNq3vSvp6KEwHaaW1G/3xqFKGxuifaa6YeWfCqqguVLh8N0Ma57LfA93/jzBcnW7XHHTQ==} + /@oxlint/darwin-arm64@0.2.0: + resolution: {integrity: sha512-E+xaOyge46PdLVM16XYXA1gdQ1lfZuXWcLqndYFeyrOeaXcsTorTM7n3t3au/PDHQaCJ/73ox+aqwvZA3Mc1EA==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /@oxlint/darwin-x64@0.1.2: - resolution: {integrity: sha512-Z6Djz/3csdxHnHgmV+OEl9he1MX+qstDGWsLNAwKLsvixTXYlDoIvdlazysemmBFgVbpUzKbx6cW4HqS31DdAg==} + /@oxlint/darwin-x64@0.2.0: + resolution: {integrity: sha512-T/JgFXJ7DjSqMs0X/1QM1PfsEcvF+p+0K2y8OnqQWXFhPEtEXjazWCnhpAV/P7XKsvGTIXfCKvVD8hfaB5Ekcg==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@oxlint/linux-arm64@0.1.2: - resolution: {integrity: sha512-ZjmJVasx0ogX3xG0qhsp9LGliDbS4lzzh9WNZxs76QJOXdulRs5Tk+B+8bYVsZyoo3VXjIofUwRpx11An9hEoA==} + /@oxlint/linux-arm64@0.2.0: + resolution: {integrity: sha512-+Mon61i/oL/QsUqwyomPcVfFKhGg04OHHwT9jodfWkH+KF4+Fu/EcHmMGiCzsnIOUlSqXEJ+KB5CL3aoiJWXeg==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/linux-x64@0.1.2: - resolution: {integrity: sha512-HFCJzqKm5PSjB2uVwy5zVzuVILYwvNgjhQyL3NIJEKF8dpCjn9lxbkJXg1xBJUTCVkuhW/jBdbUipIAFbu7VCg==} + /@oxlint/linux-x64@0.2.0: + resolution: {integrity: sha512-0QGhCcgjn7O6a2BSsWuyUj/ncKUr6EXZoueW7OKhP2N2I8CcYUyzlOxemlJorexZfsojp8sxvJ5ZPR8qWebIBw==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/win32-arm64@0.1.2: - resolution: {integrity: sha512-NDjeYzu2RqI2Nn/MhKy9MayPw3I2tuIGWZsn27emv/C6s1KW7P3khRgYJE9hX2Zo6pCVXzDRQdcmtJflH9wDlg==} + /@oxlint/win32-arm64@0.2.0: + resolution: {integrity: sha512-FP8GNbka7q/WTG7ghnCfQ1tNsN1vrlfMEuwV94r4QAAADS42PIOyyMrJQt235TH0mvwOOPgVHNQRaPB7km2/cA==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@oxlint/win32-x64@0.1.2: - resolution: {integrity: sha512-zQpQIBAEclJ8tNQKPmGAOKt2ZYNGRWhucfU3mcUr8YPMy1Tf6GPDZUhXNX9icAMRk83n24EtnQb4lR1ipiStmA==} + /@oxlint/win32-x64@0.2.0: + resolution: {integrity: sha512-ueEopFehnGVy1YplRp3ZRY1f6Q3rUYnFF/OAtgBEAQx6J5A+J7DsxNEg1jZ3UL5svT03QOrOBFtG0V4rOj7F1Q==} cpu: [x64] os: [win32] requiresBuild: true @@ -1659,17 +1659,17 @@ packages: type-check: 0.4.0 dev: true - /oxlint@0.1.2: - resolution: {integrity: sha512-hy/pmCx0zgZr1sLZjQeKYoBc0JbFbvd6r9I8CdNjd3bOH100A3JVSjOkClMq6sMG5+mN7TztZzHnpmVKY+jdjw==} + /oxlint@0.2.0: + resolution: {integrity: sha512-v8SaA1tA9+c44EE/jkpAhp8DDHM50clArtOpArkFeU6IM2DOW+JB7hBXN5jIqV7Rb8wlvsl6E50ajj0OsNLmwA==} engines: {node: '>=14.*'} hasBin: true optionalDependencies: - '@oxlint/darwin-arm64': 0.1.2 - '@oxlint/darwin-x64': 0.1.2 - '@oxlint/linux-arm64': 0.1.2 - '@oxlint/linux-x64': 0.1.2 - '@oxlint/win32-arm64': 0.1.2 - '@oxlint/win32-x64': 0.1.2 + '@oxlint/darwin-arm64': 0.2.0 + '@oxlint/darwin-x64': 0.2.0 + '@oxlint/linux-arm64': 0.2.0 + '@oxlint/linux-x64': 0.2.0 + '@oxlint/win32-arm64': 0.2.0 + '@oxlint/win32-x64': 0.2.0 dev: true /p-limit@2.3.0: diff --git a/rules.cjs b/rules.cjs index d70191f..835f299 100644 --- a/rules.cjs +++ b/rules.cjs @@ -84,7 +84,8 @@ const typescriptRules = { "@typescript-eslint/no-unnecessary-type-constraint": "off", "@typescript-eslint/no-unsafe-declaration-merging": "off", "@typescript-eslint/no-var-requires": "off", - "@typescript-eslint/prefer-as-const": "off" + "@typescript-eslint/prefer-as-const": "off", + "@typescript-eslint/triple-slash-reference": "off" } @@ -107,6 +108,7 @@ const jestRules = { "jest/no-mocks-import": "off", "jest/no-standalone-expect": "off", "jest/no-test-prefixes": "off", + "jest/no-test-return-statement": "off", "jest/prefer-todo": "off", "jest/valid-describe-callback": "off", "jest/valid-expect": "off", @@ -204,12 +206,14 @@ const reactRules = { "react/react-in-jsx-scope": "off", "react/no-children-prop": "off", "react/no-dangerously-set-inner-html": "off", + "react/no-direct-mutation-state": "off", "react/no-find-dom-node": "off", "react/no-render-return-value": "off", "react/no-string-refs": "off", "react/no-unescaped-entities": "off", "react/no-is-mounted": "off", - "react/no-unknown-property": "off" + "react/no-unknown-property": "off", + "react/require-render-return": "off" } @@ -240,11 +244,13 @@ const jsxA11yRules = { "jsx-a11y/no-aria-hidden-on-focusable": "off", "jsx-a11y/no-autofocus": "off", "jsx-a11y/prefer-tag-over-role": "off", + "jsx-a11y/role-has-required-aria-props": "off", "jsx-a11y/scope": "off", "jsx-a11y/tab-index-no-positive": "off", "jsx-a11y/aria-role": "off", "jsx-a11y/no-distracting-elements": "off", - "jsx-a11y/role-support-aria-props": "off" + "jsx-a11y/role-support-aria-props": "off", + "jsx-a11y/autocomplete-valid": "off" } diff --git a/rules.js b/rules.js index 0a6c46a..55cd635 100644 --- a/rules.js +++ b/rules.js @@ -84,7 +84,8 @@ const typescriptRules = { "@typescript-eslint/no-unnecessary-type-constraint": "off", "@typescript-eslint/no-unsafe-declaration-merging": "off", "@typescript-eslint/no-var-requires": "off", - "@typescript-eslint/prefer-as-const": "off" + "@typescript-eslint/prefer-as-const": "off", + "@typescript-eslint/triple-slash-reference": "off" } @@ -107,6 +108,7 @@ const jestRules = { "jest/no-mocks-import": "off", "jest/no-standalone-expect": "off", "jest/no-test-prefixes": "off", + "jest/no-test-return-statement": "off", "jest/prefer-todo": "off", "jest/valid-describe-callback": "off", "jest/valid-expect": "off", @@ -204,12 +206,14 @@ const reactRules = { "react/react-in-jsx-scope": "off", "react/no-children-prop": "off", "react/no-dangerously-set-inner-html": "off", + "react/no-direct-mutation-state": "off", "react/no-find-dom-node": "off", "react/no-render-return-value": "off", "react/no-string-refs": "off", "react/no-unescaped-entities": "off", "react/no-is-mounted": "off", - "react/no-unknown-property": "off" + "react/no-unknown-property": "off", + "react/require-render-return": "off" } @@ -240,11 +244,13 @@ const jsxA11yRules = { "jsx-a11y/no-aria-hidden-on-focusable": "off", "jsx-a11y/no-autofocus": "off", "jsx-a11y/prefer-tag-over-role": "off", + "jsx-a11y/role-has-required-aria-props": "off", "jsx-a11y/scope": "off", "jsx-a11y/tab-index-no-positive": "off", "jsx-a11y/aria-role": "off", "jsx-a11y/no-distracting-elements": "off", - "jsx-a11y/role-support-aria-props": "off" + "jsx-a11y/role-support-aria-props": "off", + "jsx-a11y/autocomplete-valid": "off" }