You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking change: adopt Option B dependency model. Only the following are required as peer dependencies for consumers:
6
+
7
+
-`eslint`
8
+
-`typescript`
9
+
10
+
All ESLint plugin/config packages are now regular dependencies of `@mikecbrant/eslint-config` and will be installed transitively by consumers (no need to add them directly):
11
+
12
+
-`@typescript-eslint/parser`
13
+
-`@typescript-eslint/eslint-plugin`
14
+
-`eslint-config-xo-typescript`
15
+
-`eslint-plugin-import`
16
+
-`eslint-import-resolver-typescript`
17
+
-`eslint-plugin-unicorn`
18
+
-`eslint-plugin-sonarjs`
19
+
-`eslint-plugin-unused-imports`
20
+
21
+
Development policy: this package’s `devDependencies` now use caret ranges to track current tooling (no pinning to exact lockfile resolutions).
This shareable config brings along the necessary plugins/configs internally (XO + TypeScript, import resolver, SonarJS, unicorn, and unused-imports). Your project only needs `eslint` and this package.
24
+
This installs the two peers alongside the shared config. The plugin/config packages (XO TypeScript, import resolver, SonarJS, unicorn, and unused-imports) are bundled as dependencies of this package—you do not need to add them yourself.
16
25
17
26
## Usage
18
27
@@ -23,6 +32,18 @@ import config from '@mikecbrant/eslint-config'
23
32
exportdefaultconfig
24
33
```
25
34
35
+
### Avoid duplicated config values
36
+
37
+
When using the flat config exported by this package, do not re-declare the same plugins/configs or duplicate rules in your local `eslint.config.*`. This config already registers:
38
+
39
+
-`@typescript-eslint`
40
+
-`eslint-plugin-import`
41
+
-`eslint-plugin-unicorn`
42
+
-`eslint-plugin-sonarjs`
43
+
-`eslint-plugin-unused-imports`
44
+
45
+
Re-declaring these can lead to duplicate plugin instances or conflicting rules (an issue we hit in a recent PR). If you need project-specific tweaks, place additional overrides after the imported config without re-adding the same plugins/configs.
0 commit comments