Skip to content

Commit 9d9fd25

Browse files
committed
docs: enhance noDuplicateImport documentation with detailed descriptions and todos
1 parent a3509af commit 9d9fd25

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

packages/tsl-module/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
| Variable | Description |
66
| ------ | ------ |
7-
| [noDuplicateImport](variables/noDuplicateImport.md) | Rule to disallow duplicate imports from the same module. |
7+
| [noDuplicateImport](variables/noDuplicateImport.md) | Rule to disallow duplicate imports from the same module. Combine multiple import statements from the same module into a single statement. |

packages/tsl-module/docs/variables/noDuplicateImport.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
const noDuplicateImport: (options?: "off") => Rule<unknown>;
77
```
88

9-
Rule to disallow duplicate imports from the same module.
9+
Rule to disallow duplicate imports from the same module. Combine multiple import statements from the same module into a single statement.
1010

1111
## Parameters
1212

@@ -18,6 +18,14 @@ Rule to disallow duplicate imports from the same module.
1818

1919
`Rule`\<`unknown`\>
2020

21+
## Todo
22+
23+
Consider handling side-effect imports (e.g., `import 'module';`) separately if needed.
24+
25+
## Todo
26+
27+
Add autofix to merge duplicate imports automatically.
28+
2129
## Examples
2230

2331
```ts

packages/tsl-module/src/rules/no-duplicate-import.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export const messages = {
1111
/**
1212
* Rule to disallow duplicate imports from the same module. Combine multiple import statements from the same module into a single statement.
1313
*
14+
* @todo Consider handling side-effect imports (e.g., `import 'module';`) separately if needed.
15+
* @todo Add autofix to merge duplicate imports automatically.
16+
*
1417
* @example
1518
*
1619
* ```ts

0 commit comments

Comments
 (0)