Skip to content

Commit 39c28c1

Browse files
committed
style: enforce kebab-case naming for .ts files
1 parent d8d1e8a commit 39c28c1

7 files changed

Lines changed: 31 additions & 18 deletions

File tree

biome.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@
4848
"noNonNullAssertion": "off",
4949
"useBlockStatements": "error",
5050
"noMagicNumbers": "error",
51-
"noExportedImports": "error"
51+
"noExportedImports": "error",
52+
"useFilenamingConvention": {
53+
"level": "off",
54+
"options": {
55+
"filenameCases": ["kebab-case"]
56+
}
57+
}
5258
}
5359
}
5460
},
@@ -66,29 +72,24 @@
6672
"enabled": false
6773
}
6874
},
75+
"assist": {
76+
"enabled": true,
77+
"actions": {
78+
"source": {
79+
"organizeImports": "on"
80+
}
81+
}
82+
},
6983
"overrides": [
7084
{
71-
"includes": [
72-
"**/build.ts",
73-
"packages/pack-utils/**",
74-
"packages/*/test/fixtures/**",
75-
"packages/*/bench/**"
76-
],
85+
"includes": ["**/*.ts"],
7786
"linter": {
7887
"rules": {
79-
"suspicious": {
80-
"noConsole": "off"
88+
"style": {
89+
"useFilenamingConvention": "error"
8190
}
8291
}
8392
}
8493
}
85-
],
86-
"assist": {
87-
"enabled": true,
88-
"actions": {
89-
"source": {
90-
"organizeImports": "on"
91-
}
92-
}
93-
}
94+
]
9495
}

examples/httpie/src/commands/DELETE.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// biome-ignore lint/style/useFilenamingConvention: keep uppercase
2+
13
import { defineCommand } from '@parshjs/core';
24
import { requestOptions } from '../options.ts';
35

examples/httpie/src/commands/GET.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// biome-ignore lint/style/useFilenamingConvention: keep uppercase
2+
13
import { defineCommand } from '@parshjs/core';
24
import { requestOptions } from '../options.ts';
35

examples/httpie/src/commands/HEAD.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// biome-ignore lint/style/useFilenamingConvention: keep uppercase
2+
13
import { defineCommand } from '@parshjs/core';
24
import { requestOptions } from '../options.ts';
35

examples/httpie/src/commands/PATCH.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// biome-ignore lint/style/useFilenamingConvention: keep uppercase
2+
13
import { defineCommand } from '@parshjs/core';
24
import { dataOption, requestOptions } from '../options.ts';
35

examples/httpie/src/commands/POST.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// biome-ignore lint/style/useFilenamingConvention: keep uppercase
2+
13
import { defineCommand } from '@parshjs/core';
24
import { dataOption, requestOptions } from '../options.ts';
35

examples/httpie/src/commands/PUT.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// biome-ignore lint/style/useFilenamingConvention: keep uppercase
2+
13
import { defineCommand } from '@parshjs/core';
24
import { dataOption, requestOptions } from '../options.ts';
35

0 commit comments

Comments
 (0)