Commit c9cee63
test,tools: refactor custom ESLint for readability
Refactor the test and the source for the `lowercase-name-for-primitive`
custom ESLint rule for readability.
PR-URL: #21134
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent 4b9817b commit c9cee63Copy full SHA for c9cee63
File tree
Expand file treeCollapse file tree
2 files changed
+14
-28
lines changedOpen diff view settings
Filter options
- test/parallel
- tools/eslint-rules
Expand file treeCollapse file tree
2 files changed
+14
-28
lines changedOpen diff view settings
Collapse file
test/parallel/test-eslint-lowercase-name-for-primitive.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-lowercase-name-for-primitive.js+13-25Lines changed: 13 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | 10 | |
19 | 11 | |
20 | 12 | |
21 | | - |
22 | | - |
23 | | - |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
24 | 18 | |
25 | 19 | |
26 | 20 | |
27 | | - |
28 | | - |
| 21 | + |
29 | 22 | |
30 | | - |
31 | | - |
| 23 | + |
32 | 24 | |
33 | 25 | |
34 | | - |
35 | | - |
| 26 | + |
36 | 27 | |
37 | | - |
38 | | - |
| 28 | + |
39 | 29 | |
40 | 30 | |
41 | | - |
42 | | - |
| 31 | + |
43 | 32 | |
44 | 33 | |
45 | | - |
| 34 | + |
46 | 35 | |
47 | | - |
48 | | - |
49 | | - |
| 36 | + |
| 37 | + |
50 | 38 | |
51 | 39 | |
Collapse file
tools/eslint-rules/lowercase-name-for-primitive.js
Copy file name to clipboardExpand all lines: tools/eslint-rules/lowercase-name-for-primitive.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
16 | | - |
17 | | - |
| 15 | + |
18 | 16 | |
19 | 17 | |
20 | 18 | |
|
0 commit comments