Skip to content

Commit 08cf20c

Browse files
committed
fix: add js file extension for all relative imports
1 parent 33c1974 commit 08cf20c

File tree

83 files changed

+553
-501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+553
-501
lines changed

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"files.insertFinalNewline": true,
6767
"files.trimFinalNewlines": true,
6868
"hadolint.hadolintPath": "./target/bin/hadolint",
69-
// use dprint instead
70-
"prettier.enable": false
69+
"prettier.enable": false,
70+
"javascript.preferences.importModuleSpecifierEnding": "js",
71+
"typescript.preferences.importModuleSpecifierEnding": "js"
7172
}

biome.jsonc

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
3-
"files": {
4-
"ignore": [
5-
"**/node_modules/**",
6-
"**/.pnpm-store/**",
7-
"**/dist/**",
8-
"dev/cpp_vcpkg_project/**/*",
9-
"**/.venv/",
10-
"**/.*cache/",
11-
"**/coverage/"
12-
],
13-
"ignoreUnknown": true
14-
},
15-
"organizeImports": {
16-
"enabled": true
17-
},
18-
"linter": {
19-
"enabled": true,
20-
"rules": {
21-
"recommended": true,
22-
"style": {
23-
"noInferrableTypes": "off",
24-
"noUselessElse": "off",
25-
"noNonNullAssertion": "off",
26-
"useNodejsImportProtocol": "off"
27-
},
28-
"complexity": {
29-
"useLiteralKeys": "off"
30-
},
31-
"suspicious": {
32-
"noConfusingVoidType": "off"
33-
}
34-
}
35-
},
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"files": {
4+
"ignore": [
5+
"**/node_modules/**",
6+
"**/.pnpm-store/**",
7+
"**/dist/**",
8+
"dev/cpp_vcpkg_project/**/*",
9+
"**/.venv/",
10+
"**/.*cache/",
11+
"**/coverage/"
12+
],
13+
"ignoreUnknown": true
14+
},
15+
"organizeImports": {
16+
"enabled": true
17+
},
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": true,
22+
"style": {
23+
"noInferrableTypes": "off",
24+
"noUselessElse": "off",
25+
"noNonNullAssertion": "off",
26+
"useNodejsImportProtocol": "off"
27+
},
28+
"complexity": {
29+
"useLiteralKeys": "off"
30+
},
31+
"suspicious": {
32+
"noConfusingVoidType": "off"
33+
},
34+
"nursery": {
35+
"useImportExtensions": "warn"
36+
}
37+
}
38+
},
39+
"formatter": {
40+
"enabled": false,
41+
"indentWidth": 4,
42+
"indentStyle": "space"
43+
},
44+
"json": {
3645
"formatter": {
37-
"enabled": false,
38-
"indentWidth": 4,
39-
"indentStyle": "space"
46+
"enabled": false,
47+
"trailingCommas": "none"
4048
},
41-
"json": {
42-
"formatter": {
43-
"enabled": false,
44-
"trailingCommas": "none"
45-
},
46-
"parser": {
47-
"allowComments": true,
48-
"allowTrailingCommas": true
49-
}
49+
"parser": {
50+
"allowComments": true,
51+
"allowTrailingCommas": true
5052
}
53+
}
5154
}

cspell.config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ words:
2525
- choco
2626
- clangd
2727
- cmake
28-
- iana
28+
- iarna
2929
- cobertura
3030
- copr
3131
- CPATH

dprint.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"module.sortImportDeclarations": "maintain",
1212
"importDeclaration.sortNamedImports": "maintain"
1313
},
14-
"json": {},
14+
"json": {
15+
"trailingCommas": "never"
16+
},
1517
"markdown": {},
1618
"dockerfile": {},
1719
"exec": {
@@ -26,7 +28,7 @@
2628
]
2729
},
2830
"includes": [
29-
"**/*{.ts,.tsx,.mts,.cts,.js,.jsx,.cjs,.mjs,.json,.md,.yaml,.yml,.dockerfile}"
31+
"**/*{.ts,.tsx,.mts,.cts,.js,.jsx,.cjs,.mjs,.json,.jsonc,.md,.yaml,.yml,.dockerfile}"
3032
],
3133
"excludes": [
3234
"**/node_modules",

packages/ci-log/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./dist"
4+
"outDir": "./dist",
5+
"noEmit": false,
6+
"allowImportingTsExtensions": false
57
},
68
"include": ["./src"]
79
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./dist"
4+
"outDir": "./dist",
5+
"noEmit": false,
6+
"allowImportingTsExtensions": false
57
},
68
"include": ["./src"]
79
}

packages/os-env/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./dist"
4+
"outDir": "./dist",
5+
"noEmit": false,
6+
"allowImportingTsExtensions": false
57
},
68
"include": ["./src"]
79
}

packages/untildify-user/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./dist"
4+
"outDir": "./dist",
5+
"noEmit": false,
6+
"allowImportingTsExtensions": false
57
},
68
"include": ["./src"]
79
}

0 commit comments

Comments
 (0)