Skip to content

Commit e1a9879

Browse files
committed
chore(deps): migrate from eslint to biome and apply 2spaces indent
1 parent ec7ee46 commit e1a9879

File tree

14 files changed

+951
-2552
lines changed

14 files changed

+951
-2552
lines changed

.eslintrc.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

biome.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": { "ignoreUnknown": false, "ignore": ["*.json", "**/node_modules/**"] },
5+
"formatter": { "enabled": true, "indentStyle": "space" },
6+
"organizeImports": { "enabled": true },
7+
"linter": {
8+
"enabled": true,
9+
"rules": {
10+
"recommended": false,
11+
"complexity": {
12+
"noBannedTypes": "error",
13+
"noExtraBooleanCast": "error",
14+
"noMultipleSpacesInRegularExpressionLiterals": "error",
15+
"noUselessCatch": "error",
16+
"noUselessTypeConstraint": "error",
17+
"noWith": "error"
18+
},
19+
"correctness": {
20+
"noConstAssign": "error",
21+
"noConstantCondition": "error",
22+
"noEmptyCharacterClassInRegex": "error",
23+
"noEmptyPattern": "error",
24+
"noGlobalObjectCalls": "error",
25+
"noInnerDeclarations": "error",
26+
"noInvalidConstructorSuper": "error",
27+
"noNewSymbol": "error",
28+
"noNonoctalDecimalEscape": "error",
29+
"noPrecisionLoss": "error",
30+
"noSelfAssign": "error",
31+
"noSetterReturn": "error",
32+
"noSwitchDeclarations": "error",
33+
"noUndeclaredVariables": "error",
34+
"noUnreachable": "error",
35+
"noUnreachableSuper": "error",
36+
"noUnsafeFinally": "error",
37+
"noUnsafeOptionalChaining": "error",
38+
"noUnusedLabels": "error",
39+
"noUnusedVariables": "error",
40+
"useArrayLiterals": "off",
41+
"useIsNan": "error",
42+
"useValidForDirection": "error",
43+
"useYield": "error"
44+
},
45+
"style": { "noNamespace": "error", "useAsConstAssertion": "error" },
46+
"suspicious": {
47+
"noAsyncPromiseExecutor": "error",
48+
"noCatchAssign": "error",
49+
"noClassAssign": "error",
50+
"noCompareNegZero": "error",
51+
"noControlCharactersInRegex": "error",
52+
"noDebugger": "error",
53+
"noDuplicateCase": "error",
54+
"noDuplicateClassMembers": "error",
55+
"noDuplicateObjectKeys": "error",
56+
"noDuplicateParameters": "error",
57+
"noEmptyBlockStatements": "error",
58+
"noExplicitAny": "error",
59+
"noExtraNonNullAssertion": "error",
60+
"noFallthroughSwitchClause": "error",
61+
"noFunctionAssign": "error",
62+
"noGlobalAssign": "error",
63+
"noImportAssign": "error",
64+
"noMisleadingCharacterClass": "error",
65+
"noMisleadingInstantiator": "error",
66+
"noPrototypeBuiltins": "error",
67+
"noRedeclare": "error",
68+
"noShadowRestrictedNames": "error",
69+
"noSparseArray": "error",
70+
"noUnsafeDeclarationMerging": "error",
71+
"noUnsafeNegation": "error",
72+
"useGetterReturn": "error",
73+
"useValidTypeof": "error"
74+
}
75+
},
76+
"ignore": ["out/*", "**/*.js", "*.json"]
77+
},
78+
"javascript": { "formatter": { "quoteStyle": "double" } },
79+
"overrides": [
80+
{
81+
"include": ["*.ts"],
82+
"linter": {
83+
"rules": {
84+
"correctness": { "noUnusedVariables": "error" },
85+
"style": {
86+
"noInferrableTypes": "off",
87+
"noNonNullAssertion": "error",
88+
"noVar": "error",
89+
"useBlockStatements": "error"
90+
},
91+
"suspicious": { "noExplicitAny": "off" }
92+
}
93+
}
94+
}
95+
]
96+
}

0 commit comments

Comments
 (0)