Skip to content

Commit 5eddd6c

Browse files
committed
refactor(linter/plugins): rename all files to snake case (#16241)
Pure refactor. Standardize file naming convention - all snake case. Rename kebab case files to snake case.
1 parent 65bd558 commit 5eddd6c

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed
File renamed without changes.

apps/oxlint/test/fixtures/sourceCode_token_methods/output.snap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| Punctuator loc=1:39-1:40 range=39-40 "*"
1515
| Identifier loc=1:41-1:42 range=41-42 "b"
1616
| Punctuator loc=1:42-1:43 range=42-43 ";"
17-
,-[files/eslint-test-case.js:1:7]
17+
,-[files/eslint_test_case.js:1:7]
1818
1 | /*A*/ var answer /*B*/ = /*C*/ a /*D*/ * b; /*E*/ //F
1919
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020
2 | call();
@@ -28,7 +28,7 @@
2828
| Punctuator loc=1:39-1:40 range=39-40 "*"
2929
| Identifier loc=1:41-1:42 range=41-42 "b"
3030
| Punctuator loc=1:42-1:43 range=42-43 ";"
31-
,-[files/eslint-test-case.js:1:7]
31+
,-[files/eslint_test_case.js:1:7]
3232
1 | /*A*/ var answer /*B*/ = /*C*/ a /*D*/ * b; /*E*/ //F
3333
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3434
2 | call();
@@ -39,7 +39,7 @@
3939
| Punctuator loc=2:4-2:5 range=58-59 "("
4040
| Punctuator loc=2:5-2:6 range=59-60 ")"
4141
| Punctuator loc=2:6-2:7 range=60-61 ";"
42-
,-[files/eslint-test-case.js:2:1]
42+
,-[files/eslint_test_case.js:2:1]
4343
1 | /*A*/ var answer /*B*/ = /*C*/ a /*D*/ * b; /*E*/ //F
4444
2 | call();
4545
: ^^^^^^^

apps/oxlint/test/fixtures/unicode_comments/output.snap.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| "lines": "1,0-1,53",
88
| "value": " Unicode test with emojis and multi-byte characters"
99
| }
10-
,-[files/unicode-comments.js:1:1]
10+
,-[files/index.js:1:1]
1111
1 | // Unicode test with emojis and multi-byte characters
1212
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
2 | const greeting = "Hello 🌍"; // Line comment with emoji
@@ -17,7 +17,7 @@
1717
| "lines": "2,29-2,55",
1818
| "value": " Line comment with emoji"
1919
| }
20-
,-[files/unicode-comments.js:2:32]
20+
,-[files/index.js:2:32]
2121
1 | // Unicode test with emojis and multi-byte characters
2222
2 | const greeting = "Hello 🌍"; // Line comment with emoji
2323
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,7 +28,7 @@
2828
| "lines": "4,0-8,3",
2929
| "value": "*\n * Function with emoji in JSDoc\n * @param {string} name - User's name 👤\n * @returns {string} Greeting message\n "
3030
| }
31-
,-[files/unicode-comments.js:4:1]
31+
,-[files/index.js:4:1]
3232
3 |
3333
4 | ,-> /**
3434
5 | | * Function with emoji in JSDoc
@@ -42,7 +42,7 @@
4242
| "lines": "10,2-10,39",
4343
| "value": " Comment with multiple emojis 🚀⭐💫"
4444
| }
45-
,-[files/unicode-comments.js:10:3]
45+
,-[files/index.js:10:3]
4646
9 | function greetUser(name) {
4747
10 | // Comment with multiple emojis 🚀⭐💫
4848
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -53,7 +53,7 @@
5353
| "lines": "12,2-12,42",
5454
| "value": " Block comment with unicode: ñáéíóú "
5555
| }
56-
,-[files/unicode-comments.js:12:3]
56+
,-[files/index.js:12:3]
5757
11 | const message = `Hello ${name}! 🌟`;
5858
12 | /* Block comment with unicode: ñáéíóú */
5959
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -64,7 +64,7 @@
6464
| "lines": "16,0-16,30",
6565
| "value": " Multi-byte comment: 你好世界 "
6666
| }
67-
,-[files/unicode-comments.js:16:1]
67+
,-[files/index.js:16:1]
6868
15 |
6969
16 | /* Multi-byte comment: 你好世界 */
7070
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -75,7 +75,7 @@
7575
| "lines": "17,28-17,51",
7676
| "value": " Line comment: ñáéíóú"
7777
| }
78-
,-[files/unicode-comments.js:17:40]
78+
,-[files/index.js:17:40]
7979
16 | /* Multi-byte comment: 你好世界 */
8080
17 | const 你好世界 = "Testing üöä"; // Line comment: ñáéíóú
8181
: ^^^^^^^^^^^^^^^^^^^^^^^
@@ -86,7 +86,7 @@
8686
| "lines": "19,0-22,3",
8787
| "value": "*\n * JSDoc with emojis and unicode: 你好 👋\n * @param {number} count - Number of items 🔢\n "
8888
| }
89-
,-[files/unicode-comments.js:19:1]
89+
,-[files/index.js:19:1]
9090
18 |
9191
19 | ,-> /**
9292
20 | | * JSDoc with emojis and unicode: 你好 👋
@@ -99,7 +99,7 @@
9999
| "lines": "24,2-24,52",
100100
| "value": " Comment with mixed unicode: αβγδε русский עברית"
101101
| }
102-
,-[files/unicode-comments.js:24:3]
102+
,-[files/index.js:24:3]
103103
23 | function processItems(count) {
104104
24 | // Comment with mixed unicode: αβγδε русский עברית
105105
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@
110110
| "lines": "25,28-25,50",
111111
| "value": " Block: ñáéíóú 🚀 "
112112
| }
113-
,-[files/unicode-comments.js:25:29]
113+
,-[files/index.js:25:29]
114114
24 | // Comment with mixed unicode: αβγδε русский עברית
115115
25 | const result = count * 2; /* Block: ñáéíóú 🚀 */
116116
: ^^^^^^^^^^^^^^^^^^^^^^
@@ -121,7 +121,7 @@
121121
| "lines": "29,0-29,34",
122122
| "value": " Final comment with emoji: 🎉✨🎊"
123123
| }
124-
,-[files/unicode-comments.js:29:1]
124+
,-[files/index.js:29:1]
125125
28 |
126126
29 | // Final comment with emoji: 🎉✨🎊
127127
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)