Commit bcf0df5
feat: limit namespace import identifier in id-length rule (#18849)
* feat: limit namespace import identifier in id-length rule
* test: add tests for valid case in 'id-length' rule
* refactor: Sort order, Change variable name to semantic name
* Update lib/rules/id-length.js
Co-authored-by: Tanuj Kanti <[email protected]>
* Update tests/lib/rules/id-length.js
Co-authored-by: Tanuj Kanti <[email protected]>
* Update tests/lib/rules/id-length.js
Co-authored-by: Tanuj Kanti <[email protected]>
* test: add test for shows that ImportSpecifiers are allowed even with default 2 and with max option
---------
Co-authored-by: Tanuj Kanti <[email protected]>1 parent 45c18e1 commit bcf0df5
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
249 | 266 | | |
250 | 267 | | |
251 | 268 | | |
| |||
0 commit comments