Commit 13f985c
committed
fix(linter): Fix casing for unicorn/explicit-length-check config option. (#16269)
[The original rule](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md) has it cased as `non-zero` but we were using camelCase `nonZero`. This change fixes the config option docs and also ensures that rules are deserialized more simply.1 parent 99281bc commit 13f985c
File tree
1 file changed
+10
-22
lines changed- crates/oxc_linter/src/rules/unicorn
1 file changed
+10
-22
lines changedLines changed: 10 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 48 | + | |
| 49 | + | |
58 | 50 | | |
59 | 51 | | |
60 | 52 | | |
| |||
271 | 263 | | |
272 | 264 | | |
273 | 265 | | |
| 266 | + | |
274 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
| |||
309 | 308 | | |
310 | 309 | | |
311 | 310 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | 311 | | |
324 | 312 | | |
325 | 313 | | |
| |||
0 commit comments