Commit cf93ef1
authored
fix: Disable
This rule had to be disabled in `core` because the autofixer is very
broken. I'm also not sure we want to strictly require one import between
type and non-type imports anyway, it's a stylistic preference.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Disables `import-x/no-duplicates` in the TypeScript ESLint config,
updates the rules snapshot, and adds changelog entries noting the change
and related autofix behavior fix.
>
> - **TypeScript ESLint config**:
> - Disable `import-x/no-duplicates` in
`packages/typescript/src/index.mjs` with rationale comments.
> - **Rules Snapshot**:
> - Set `import-x/no-duplicates` to `off` in
`packages/typescript/rules-snapshot.json`.
> - **Changelog**:
> - Add "Changed" entry for disabling `import-x/no-duplicates` in
`packages/typescript/CHANGELOG.md`.
> - Add "Fixed" entry noting prevention of non-type imports being
grouped under a type import during auto-fix.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d06d2c8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->import-x/no-duplicates in TypeScript files (#427)1 parent f3246f7 commit cf93ef1
File tree
3 files changed
+13
-0
lines changed- packages/typescript
- src
3 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
202 | 207 | | |
203 | 208 | | |
204 | 209 | | |
| |||
0 commit comments