Commit 410b3cb
authored
docs(linter): Add configuration option docs for import/extensions rule. (#15171)
Part of #14743.
Doing this as a separate MR because it finishes the last import rule :)
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### checkTypeImports
type: `boolean`
default: `false`
Whether to check type imports when enforcing extension rules.
### ignorePackages
type: `boolean`
default: `true`
Whether to ignore package imports (e.g., 'react', 'lodash') when enforcing extension rules.
### js
type: `"always" | "never" | "ignorePackages"`
default: `"never"`
Configuration for `.js` file extensions.
### json
type: `"always" | "never" | "ignorePackages"`
default: `"never"`
Configuration for `.json` file extensions.
### jsx
type: `"always" | "never" | "ignorePackages"`
default: `"never"`
Configuration for `.jsx` file extensions.
### ts
type: `"always" | "never" | "ignorePackages"`
default: `"never"`
Configuration for `.ts` file extensions.
### tsx
type: `"always" | "never" | "ignorePackages"`
default: `"never"`
Configuration for `.tsx` file extensions.
```1 parent b0cc5de commit 410b3cb
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
| 61 | + | |
57 | 62 | | |
| 63 | + | |
58 | 64 | | |
| 65 | + | |
59 | 66 | | |
| 67 | + | |
60 | 68 | | |
| 69 | + | |
61 | 70 | | |
| 71 | + | |
62 | 72 | | |
| 73 | + | |
63 | 74 | | |
| 75 | + | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| |||
161 | 173 | | |
162 | 174 | | |
163 | 175 | | |
| 176 | + | |
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
| |||
0 commit comments