Commit 714a91a
committed
perf(linter/no-restricted-types): skip running if config is empty (#16278)
@connorshea i thought about doing this, #16276 (comment) But i decided the complexity wasn't worth it.
The only benefit we would get is managing to skip running this rule on some typescript files that have zero type names, however those are so few and far between, the added complexity of adding these custom checks, does not outweigh the perf behifit of implementing those checks.1 parent 4b24825 commit 714a91a
File tree
1 file changed
+2
-1
lines changed- crates/oxc_linter/src/rules/typescript
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
0 commit comments