Skip to content

Commit 0c4ed1a

Browse files
committedNov 25, 2024
refactor: upgrade toolset
1 parent 8f92a8a commit 0c4ed1a

37 files changed

+19388
-15630
lines changed
 

‎.commitlintrc.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
2-
"extends": [
3-
"@commitlint/config-conventional"
4-
],
2+
"extends": ["@commitlint/config-conventional"],
53
"rules": {
6-
"header-max-length": [
7-
0,
8-
"always",
9-
100
10-
],
4+
"header-max-length": [0, "always", 100],
115
"scope-case": [0],
126
"type-enum": [
137
2,

‎.release-it.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"hooks": {
3-
"before:init": [
4-
"npm run lint"
5-
]
3+
"before:init": ["npm run lint"]
64
},
75
"git": {
86
"commitMessage": "chore: release v${version}",

‎api-extractor.json

+3-18
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "<projectFolder>/types/src/index.d.ts",
3+
"mainEntryPointFilePath": "<projectFolder>/types/index.d.ts",
44
"bundledPackages": [],
55
"newlineKind": "lf",
6-
// "enumMemberOrder": "by-name",
7-
8-
"compiler": {
9-
// "tsconfigFilePath": "<projectFolder>/tsconfig.json",
10-
// "overrideTsconfig": {
11-
// . . .
12-
// }
13-
// "skipLibCheck": true,
14-
},
6+
"compiler": {},
157
"docModel": {
168
"enabled": false
179
},
@@ -24,16 +16,9 @@
2416
"dtsRollup": {
2517
"enabled": true,
2618
"publicTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts"
27-
// "alphaTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-alpha.d.ts",
28-
29-
// "betaTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-beta.d.ts",
30-
31-
// "publicTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-public.d.ts",
32-
33-
// "omitTrimmingComments": true
3419
},
3520
"messages": {
36-
tsdocMessageReporting: {
21+
"tsdocMessageReporting": {
3722
"default": {
3823
"logLevel": "none"
3924
}

‎biome.json

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"defaultBranch": "main",
6+
"useIgnoreFile": true,
7+
"clientKind": "git"
8+
},
9+
"files": {
10+
"ignoreUnknown": true,
11+
"ignore": ["node_modules", "**/*/node_modules", "dist/", "types/"]
12+
},
13+
"organizeImports": {
14+
"enabled": true
15+
},
16+
"javascript": {
17+
"formatter": {
18+
"arrowParentheses": "always",
19+
"bracketSameLine": false,
20+
"bracketSpacing": true,
21+
"jsxQuoteStyle": "double",
22+
"quoteProperties": "asNeeded",
23+
"semicolons": "asNeeded",
24+
"trailingCommas": "all"
25+
}
26+
},
27+
"formatter": {
28+
"enabled": true,
29+
"formatWithErrors": false,
30+
"attributePosition": "auto",
31+
"indentStyle": "space",
32+
"indentWidth": 2,
33+
"lineWidth": 100,
34+
"lineEnding": "lf"
35+
},
36+
"linter": {
37+
"enabled": true,
38+
"rules": {
39+
"a11y": {
40+
"useKeyWithClickEvents": "off"
41+
},
42+
"recommended": true,
43+
"performance": {
44+
"noDelete": "off"
45+
},
46+
"correctness": {
47+
"noUnusedImports": {
48+
"level": "error"
49+
},
50+
"noSwitchDeclarations": {
51+
"level": "error",
52+
"fix": "safe"
53+
}
54+
},
55+
"complexity": {
56+
"noBannedTypes": "off",
57+
"useOptionalChain": {
58+
"level": "error",
59+
"fix": "safe"
60+
},
61+
"useLiteralKeys": {
62+
"level": "info"
63+
}
64+
},
65+
"style": {
66+
"noArguments": "off",
67+
"noNonNullAssertion": "off",
68+
"noParameterAssign": "off",
69+
"noUnusedTemplateLiteral": "off",
70+
"noUselessElse": {
71+
"level": "error",
72+
"fix": "safe"
73+
},
74+
"useImportType": "error",
75+
"useSingleVarDeclarator": {
76+
"level": "error",
77+
"fix": "safe"
78+
},
79+
"useNodejsImportProtocol": {
80+
"level": "error",
81+
"fix": "safe"
82+
},
83+
"useTemplate": {
84+
"level": "error",
85+
"fix": "safe"
86+
}
87+
},
88+
"suspicious": {
89+
"noAssignInExpressions": "off",
90+
"noExplicitAny": "off",
91+
"noConfusingVoidType": "off",
92+
"noGlobalIsFinite": {
93+
"level": "error",
94+
"fix": "safe"
95+
},
96+
"noGlobalIsNan": {
97+
"level": "error",
98+
"fix": "safe"
99+
},
100+
"noImplicitAnyLet": "off"
101+
}
102+
}
103+
}
104+
}

0 commit comments

Comments
 (0)
Please sign in to comment.