diff --git a/__snapshots__/rules.spec.ts.snap b/__snapshots__/rules.spec.ts.snap index 679f61c..d3b932c 100644 --- a/__snapshots__/rules.spec.ts.snap +++ b/__snapshots__/rules.spec.ts.snap @@ -128,9 +128,6 @@ exports[`contains all the oxlint rules 1`] = ` "import/no-self-import": [ "off", ], - "import/no-unresolved": [ - "off", - ], "import/no-unused-modules": [ "off", ], @@ -251,9 +248,24 @@ exports[`contains all the oxlint rules 1`] = ` "jsdoc/check-access": [ "off", ], + "jsdoc/check-property-names": [ + "off", + ], "jsdoc/empty-tags": [ "off", ], + "jsdoc/require-property": [ + "off", + ], + "jsdoc/require-property-description": [ + "off", + ], + "jsdoc/require-property-name": [ + "off", + ], + "jsdoc/require-property-type": [ + "off", + ], "jsx-a11y/alt-text": [ "off", ], @@ -701,6 +713,9 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/no-await-expression-member": [ "off", ], + "unicorn/no-await-in-promise-methods": [ + "off", + ], "unicorn/no-console-spaces": [ "off", ], @@ -743,6 +758,9 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/no-process-exit": [ "off", ], + "unicorn/no-single-promise-in-promise-methods": [ + "off", + ], "unicorn/no-static-only-class": [ "off", ], diff --git a/package.json b/package.json index c654279..07df9e1 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "eslint-plugin-unicorn": "^52.0.0", "husky": "^9.0.11", "lint-staged": "^15.2.0", - "oxlint": "^0.2.17", + "oxlint": "^0.3.0", "prettier": "^3.2.4", "tsx": "^4.7.2", "typescript": "^5.4.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 755a8e3..e3382a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,8 +45,8 @@ devDependencies: specifier: ^15.2.0 version: 15.2.2 oxlint: - specifier: ^0.2.17 - version: 0.2.17 + specifier: ^0.3.0 + version: 0.3.0 prettier: specifier: ^3.2.4 version: 3.2.5 @@ -477,64 +477,64 @@ packages: fastq: 1.17.1 dev: true - /@oxlint/darwin-arm64@0.2.17: - resolution: {integrity: sha512-7XkZrhjkumMi7eoxZeyvnmE7onXUZamZM/esYX7gXp2HKVPXDtpp1rzLwSeX1ugXtQa979LjCZYpdjkskoFopw==} + /@oxlint/darwin-arm64@0.3.0: + resolution: {integrity: sha512-Vwp5D0QsKKkcIfYUNY6ONF4Z/K6FpU3YwsBdWzBSwK3Ty778fh0tWL+oC7hXNRWpmUSXEiDXPWIKUXdYffnTzQ==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /@oxlint/darwin-x64@0.2.17: - resolution: {integrity: sha512-x6WpWIECuSfKJseqf86om0YgIgiP+pB5/L1Nd/5to2/WaORccuaz7Lg4ts/sWBXAXmq3EWlt2TOlLM2UOCVemw==} + /@oxlint/darwin-x64@0.3.0: + resolution: {integrity: sha512-Z9R0qtD05w59fTSIuP+eFCcZlhgJYNDwSulNvyGZ4Y5R7tg9TRFMbzQtPItRGWWa7wef4ETntLsYPB6VRj/klw==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@oxlint/linux-arm64-gnu@0.2.17: - resolution: {integrity: sha512-dt1fqqJaK/28TMR74vNYO6eKTw8A9c4xzEbxL4dNgHpWAya+HStQdJ8lrBP7/EWWBFUTZg104Q/TEcqxvtzguA==} + /@oxlint/linux-arm64-gnu@0.3.0: + resolution: {integrity: sha512-I/qFvOZ/cSaKBX60f/RXmDab4ln/tWQK6Y7fMycXTnCXSFaxy9BauphTHvFiy5Sbr/J0LYGH9brufybwo8fe1A==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/linux-arm64-musl@0.2.17: - resolution: {integrity: sha512-G7T2CcDONDxzvbd6vfjRtmGuNG/0oc2wNc2Wn2X9jIwDDLe9BaHWjeRUo0K5JRPDcpPWitdDIdOunkJMDqKvKQ==} + /@oxlint/linux-arm64-musl@0.3.0: + resolution: {integrity: sha512-bzPDxYeethNgUyUVjSEVeM9FPL+kDFBvgDYbU6Apk6gQk7zNYhADTJkr45+YcrQG5vGnWGTu1Hox9R8qNePwAw==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/linux-x64-gnu@0.2.17: - resolution: {integrity: sha512-5COsQKgvT60sKC0v2UJk6DzXwQa/Dz4+hhWl6kwb93UW7crB+701WXRtPGBlWYYPnRZs4Vkp9+a5s+L6F8S3uw==} + /@oxlint/linux-x64-gnu@0.3.0: + resolution: {integrity: sha512-F9f8qB0AQjSbtp4TVSktBB+b7LR+lJPHAhpYB30AlpMgQNbulpqu8WEl3H8WwQFfVnWE5tRUft2E1JFKR3TQeQ==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/linux-x64-musl@0.2.17: - resolution: {integrity: sha512-DSm3E7tXJnL+V/Q+EN8gcf56+k2P25tPgGs1QDP7sGyfqRzVG+ypbPmakhsaCy6wKh3t08LS6PaxjgFu5o4ZsA==} + /@oxlint/linux-x64-musl@0.3.0: + resolution: {integrity: sha512-++6lbSIzUAMTDA5hObQ+Un58EjujEnwlZb0HbFK5xlyPy/6ZOXiqzHNZeJ/NMVF3cpdIJCNCHQn+glQ376FSjg==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@oxlint/win32-arm64@0.2.17: - resolution: {integrity: sha512-LEWucUc5J1JHcPBLdg960nSotehMAMG7YJodibgLK7EoemOI6CSo2o/GE3tRuLDaDVnG4NnXKXuNyGpZJ9OMCQ==} + /@oxlint/win32-arm64@0.3.0: + resolution: {integrity: sha512-ZM9YTBRrht6Dmd76rbdVqKJVkUIoGYjM6nTZde3X0FERe9cAvF46SmKRbaFRmB1kumBaqfxohNkIqq7fpL1C5w==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@oxlint/win32-x64@0.2.17: - resolution: {integrity: sha512-OvsfcP+C523Ml0cIfmkv1O+vRFYmVj+iDZO/4F6Ee0yEnjux8KqEfmXt1Idoyk8OD0p6buFwqgNxZesumGZ5PA==} + /@oxlint/win32-x64@0.3.0: + resolution: {integrity: sha512-7+MRPCqjJUoVD53rCgHplykQaSommfyfClmRNIEU2WLvIMMq60FkhUnOWLJ5je+nN1VmtJUYY9h2ran64/0J5g==} cpu: [x64] os: [win32] requiresBuild: true @@ -2305,19 +2305,19 @@ packages: type-check: 0.4.0 dev: true - /oxlint@0.2.17: - resolution: {integrity: sha512-w+1cpvX2VeaBkEz9LEWd9I2rBt2O++DtFuNYCvtCmo8DFzcoOUEsngnmSz7A0K4lrPVCRn2n3GiC7eyxV5chtA==} + /oxlint@0.3.0: + resolution: {integrity: sha512-I6H7Q5cxjfGsfdDXbAhYvdgp4r3pu8LfFcECPf4JcQ9bYN0OAcY/fs3zgBzW57cKXmSdzJmqIfKMMYkWkwZbUA==} engines: {node: '>=14.*'} hasBin: true optionalDependencies: - '@oxlint/darwin-arm64': 0.2.17 - '@oxlint/darwin-x64': 0.2.17 - '@oxlint/linux-arm64-gnu': 0.2.17 - '@oxlint/linux-arm64-musl': 0.2.17 - '@oxlint/linux-x64-gnu': 0.2.17 - '@oxlint/linux-x64-musl': 0.2.17 - '@oxlint/win32-arm64': 0.2.17 - '@oxlint/win32-x64': 0.2.17 + '@oxlint/darwin-arm64': 0.3.0 + '@oxlint/darwin-x64': 0.3.0 + '@oxlint/linux-arm64-gnu': 0.3.0 + '@oxlint/linux-arm64-musl': 0.3.0 + '@oxlint/linux-x64-gnu': 0.3.0 + '@oxlint/linux-x64-musl': 0.3.0 + '@oxlint/win32-arm64': 0.3.0 + '@oxlint/win32-x64': 0.3.0 dev: true /p-limit@2.3.0: diff --git a/rules.cjs b/rules.cjs index dbf6222..a905a68 100644 --- a/rules.cjs +++ b/rules.cjs @@ -155,7 +155,6 @@ const jestRules = { const unicornRules = { "unicorn/catch-error-name": "off", - "unicorn/prefer-node-protocol": "off", "unicorn/empty-brace-spaces": "off", "unicorn/error-message": "off", "unicorn/escape-case": "off", @@ -163,9 +162,10 @@ const unicornRules = { "unicorn/filename-case": "off", "unicorn/new-for-builtins": "off", "unicorn/no-abusive-eslint-disable": "off", - "unicorn/no-array-reduce": "off", "unicorn/no-array-for-each": "off", + "unicorn/no-array-reduce": "off", "unicorn/no-await-expression-member": "off", + "unicorn/no-await-in-promise-methods": "off", "unicorn/no-console-spaces": "off", "unicorn/no-document-cookie": "off", "unicorn/no-empty-file": "off", @@ -180,6 +180,7 @@ const unicornRules = { "unicorn/no-null": "off", "unicorn/no-object-as-default-parameter": "off", "unicorn/no-process-exit": "off", + "unicorn/no-single-promise-in-promise-methods": "off", "unicorn/no-static-only-class": "off", "unicorn/no-thenable": "off", "unicorn/no-this-assignment": "off", @@ -190,6 +191,7 @@ const unicornRules = { "unicorn/no-useless-fallback-in-spread": "off", "unicorn/no-useless-length-check": "off", "unicorn/no-useless-promise-resolve-reject": "off", + "unicorn/no-useless-spread": "off", "unicorn/no-useless-switch-case": "off", "unicorn/no-zero-fractions": "off", "unicorn/number-literal-case": "off", @@ -201,6 +203,7 @@ const unicornRules = { "unicorn/prefer-blob-reading-methods": "off", "unicorn/prefer-code-point": "off", "unicorn/prefer-date-now": "off", + "unicorn/prefer-node-protocol": "off", "unicorn/prefer-dom-node-append": "off", "unicorn/prefer-dom-node-dataset": "off", "unicorn/prefer-dom-node-remove": "off", @@ -212,7 +215,6 @@ const unicornRules = { "unicorn/prefer-modern-dom-apis": "off", "unicorn/prefer-modern-math-apis": "off", "unicorn/prefer-native-coercion-functions": "off", - "unicorn/no-useless-spread": "off", "unicorn/prefer-number-properties": "off", "unicorn/prefer-optional-catch-binding": "off", "unicorn/prefer-prototype-methods": "off", @@ -277,7 +279,6 @@ const importRules = { "import/no-named-as-default": "off", "import/no-named-as-default-member": "off", "import/no-self-import": "off", - "import/no-unresolved": "off", "import/no-unused-modules": "off", "import/no-duplicates": "off", "import/no-default-export": "off" @@ -337,7 +338,12 @@ const nextjsRules = { const jsdocRules = { "jsdoc/check-access": "off", - "jsdoc/empty-tags": "off" + "jsdoc/check-property-names": "off", + "jsdoc/empty-tags": "off", + "jsdoc/require-property": "off", + "jsdoc/require-property-type": "off", + "jsdoc/require-property-name": "off", + "jsdoc/require-property-description": "off" } diff --git a/rules.js b/rules.js index 5062e63..613ef5a 100644 --- a/rules.js +++ b/rules.js @@ -155,7 +155,6 @@ const jestRules = { const unicornRules = { "unicorn/catch-error-name": "off", - "unicorn/prefer-node-protocol": "off", "unicorn/empty-brace-spaces": "off", "unicorn/error-message": "off", "unicorn/escape-case": "off", @@ -163,9 +162,10 @@ const unicornRules = { "unicorn/filename-case": "off", "unicorn/new-for-builtins": "off", "unicorn/no-abusive-eslint-disable": "off", - "unicorn/no-array-reduce": "off", "unicorn/no-array-for-each": "off", + "unicorn/no-array-reduce": "off", "unicorn/no-await-expression-member": "off", + "unicorn/no-await-in-promise-methods": "off", "unicorn/no-console-spaces": "off", "unicorn/no-document-cookie": "off", "unicorn/no-empty-file": "off", @@ -180,6 +180,7 @@ const unicornRules = { "unicorn/no-null": "off", "unicorn/no-object-as-default-parameter": "off", "unicorn/no-process-exit": "off", + "unicorn/no-single-promise-in-promise-methods": "off", "unicorn/no-static-only-class": "off", "unicorn/no-thenable": "off", "unicorn/no-this-assignment": "off", @@ -190,6 +191,7 @@ const unicornRules = { "unicorn/no-useless-fallback-in-spread": "off", "unicorn/no-useless-length-check": "off", "unicorn/no-useless-promise-resolve-reject": "off", + "unicorn/no-useless-spread": "off", "unicorn/no-useless-switch-case": "off", "unicorn/no-zero-fractions": "off", "unicorn/number-literal-case": "off", @@ -201,6 +203,7 @@ const unicornRules = { "unicorn/prefer-blob-reading-methods": "off", "unicorn/prefer-code-point": "off", "unicorn/prefer-date-now": "off", + "unicorn/prefer-node-protocol": "off", "unicorn/prefer-dom-node-append": "off", "unicorn/prefer-dom-node-dataset": "off", "unicorn/prefer-dom-node-remove": "off", @@ -212,7 +215,6 @@ const unicornRules = { "unicorn/prefer-modern-dom-apis": "off", "unicorn/prefer-modern-math-apis": "off", "unicorn/prefer-native-coercion-functions": "off", - "unicorn/no-useless-spread": "off", "unicorn/prefer-number-properties": "off", "unicorn/prefer-optional-catch-binding": "off", "unicorn/prefer-prototype-methods": "off", @@ -277,7 +279,6 @@ const importRules = { "import/no-named-as-default": "off", "import/no-named-as-default-member": "off", "import/no-self-import": "off", - "import/no-unresolved": "off", "import/no-unused-modules": "off", "import/no-duplicates": "off", "import/no-default-export": "off" @@ -337,7 +338,12 @@ const nextjsRules = { const jsdocRules = { "jsdoc/check-access": "off", - "jsdoc/empty-tags": "off" + "jsdoc/check-property-names": "off", + "jsdoc/empty-tags": "off", + "jsdoc/require-property": "off", + "jsdoc/require-property-type": "off", + "jsdoc/require-property-name": "off", + "jsdoc/require-property-description": "off" }