Skip to content

Commit c1d4f09

Browse files
authored
Merge pull request #177 from dpobel/replace-eslint-prettier-biome
chore: replace eslint/prettier by biome
2 parents 1a6bbd2 + e6107a1 commit c1d4f09

File tree

4 files changed

+275
-1777
lines changed

4 files changed

+275
-1777
lines changed

biome.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": { "ignoreUnknown": false },
5+
"formatter": { "enabled": true, "indentStyle": "space" },
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": false,
10+
"complexity": {
11+
"noAdjacentSpacesInRegex": "error",
12+
"noExtraBooleanCast": "error",
13+
"noUselessCatch": "error",
14+
"noUselessEscapeInRegex": "error"
15+
},
16+
"correctness": {
17+
"noConstAssign": "error",
18+
"noConstantCondition": "error",
19+
"noEmptyCharacterClassInRegex": "error",
20+
"noEmptyPattern": "error",
21+
"noGlobalObjectCalls": "error",
22+
"noInvalidBuiltinInstantiation": "error",
23+
"noInvalidConstructorSuper": "error",
24+
"noNonoctalDecimalEscape": "error",
25+
"noPrecisionLoss": "error",
26+
"noSelfAssign": "error",
27+
"noSetterReturn": "error",
28+
"noSwitchDeclarations": "error",
29+
"noUndeclaredVariables": "error",
30+
"noUnreachable": "error",
31+
"noUnreachableSuper": "error",
32+
"noUnsafeFinally": "error",
33+
"noUnsafeOptionalChaining": "error",
34+
"noUnusedLabels": "error",
35+
"noUnusedPrivateClassMembers": "error",
36+
"noUnusedVariables": "error",
37+
"useIsNan": "error",
38+
"useValidForDirection": "error",
39+
"useValidTypeof": "error",
40+
"useYield": "error"
41+
},
42+
"suspicious": {
43+
"noAsyncPromiseExecutor": "error",
44+
"noCatchAssign": "error",
45+
"noClassAssign": "error",
46+
"noCompareNegZero": "error",
47+
"noConstantBinaryExpressions": "error",
48+
"noControlCharactersInRegex": "error",
49+
"noDebugger": "error",
50+
"noDuplicateCase": "error",
51+
"noDuplicateClassMembers": "error",
52+
"noDuplicateElseIf": "error",
53+
"noDuplicateObjectKeys": "error",
54+
"noDuplicateParameters": "error",
55+
"noEmptyBlockStatements": "error",
56+
"noFallthroughSwitchClause": "error",
57+
"noFunctionAssign": "error",
58+
"noGlobalAssign": "error",
59+
"noImportAssign": "error",
60+
"noIrregularWhitespace": "error",
61+
"noMisleadingCharacterClass": "error",
62+
"noPrototypeBuiltins": "error",
63+
"noRedeclare": "error",
64+
"noShadowRestrictedNames": "error",
65+
"noSparseArray": "error",
66+
"noUnsafeNegation": "error",
67+
"noUselessRegexBackrefs": "error",
68+
"noWith": "error",
69+
"useGetterReturn": "error"
70+
}
71+
}
72+
},
73+
"javascript": {
74+
"formatter": { "quoteStyle": "double" },
75+
"globals": ["exports"]
76+
},
77+
"assist": {
78+
"enabled": true,
79+
"actions": { "source": { "organizeImports": "on" } }
80+
}
81+
}

eslint.config.js

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

0 commit comments

Comments
 (0)