diff --git a/CHANGELOG.md b/CHANGELOG.md index bfe9534..fdd2698 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [2.10.3](https://github.com/ocavue/eslint-config/compare/v2.10.2...v2.10.3) (2024-10-13) + + +### Bug Fixes + +* disable buggy rule `import/no-duplicates` ([f614b1e](https://github.com/ocavue/eslint-config/commit/f614b1ef3e014d8973357c3e30b947b235714cfe)) + +## [2.10.2](https://github.com/ocavue/eslint-config/compare/v2.10.1...v2.10.2) (2024-10-13) + + +### Bug Fixes + +* disable buggy rule `import/no-duplicates` ([909727d](https://github.com/ocavue/eslint-config/commit/909727d9c92f7d69f04b157f5dda0a7d75c96d00)) + +## [2.10.1](https://github.com/ocavue/eslint-config/compare/v2.10.0...v2.10.1) (2024-10-12) + + +### Bug Fixes + +* pass correct resolver settings to eslint-plugin-import-x ([#137](https://github.com/ocavue/eslint-config/issues/137)) ([b71c566](https://github.com/ocavue/eslint-config/commit/b71c566c0840eee72d1bce913337ec350e2f43e4)) +* remove compatibility code for eslint-plugin-react-hooks ([#141](https://github.com/ocavue/eslint-config/issues/141)) ([5512ea1](https://github.com/ocavue/eslint-config/commit/5512ea16121bf7794a6aeee1d5cad9ba6d540bad)) + ## [2.10.0](https://github.com/ocavue/eslint-config/compare/v2.9.0...v2.10.0) (2024-10-11) diff --git a/package.json b/package.json index 6ca5b12..323d4d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@ocavue/eslint-config", "type": "module", - "version": "2.10.0", + "version": "2.10.3", "packageManager": "pnpm@9.12.1", "description": "", "author": "ocavue ", @@ -32,7 +32,6 @@ }, "dependencies": { "@eslint-types/unicorn": "^52.0.0", - "@eslint/compat": "^1.2.0", "@eslint/js": "^9.12.0", "@eslint/markdown": "^6.2.0", "eslint-config-flat-gitignore": "^0.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7fba78a..e861738 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,9 +11,6 @@ importers: '@eslint-types/unicorn': specifier: ^52.0.0 version: 52.0.0 - '@eslint/compat': - specifier: ^1.2.0 - version: 1.2.0(eslint@9.12.0) '@eslint/js': specifier: ^9.12.0 version: 9.12.0 diff --git a/src/imports.js b/src/imports.js index f69e662..7782bf2 100644 --- a/src/imports.js +++ b/src/imports.js @@ -26,7 +26,12 @@ export function imports() { 'import/no-mutable-exports': 'warn', 'import/no-useless-path-segments': 'warn', 'import/newline-after-import': 'warn', - 'import/no-duplicates': ['warn', { 'prefer-inline': true }], + // Disable `no-duplicates` because of the following bug + // https://github.com/un-ts/eslint-plugin-import-x/issues/167 + // 'import/no-duplicates': [ + // 'warn', + // { 'prefer-inline': true }, + // ], 'import/order': [ 'warn', { diff --git a/src/react.js b/src/react.js index a2646e7..460e347 100644 --- a/src/react.js +++ b/src/react.js @@ -1,7 +1,5 @@ // @ts-check -import { fixupPluginRules } from '@eslint/compat' - import reactPlugin from 'eslint-plugin-react' import reactHooksPlugin from 'eslint-plugin-react-hooks' @@ -33,7 +31,7 @@ export function react() { name: 'react-hooks', files: [GLOB_TS, GLOB_TSX], plugins: { - 'react-hooks': fixupPluginRules(reactHooksPlugin), + 'react-hooks': reactHooksPlugin, }, rules: { 'react-hooks/rules-of-hooks': 'error',