Skip to content

Commit db1da89

Browse files
committed
Step 2: Migrating ESLint to Biome
1 parent 47a3769 commit db1da89

4 files changed

Lines changed: 232 additions & 3362 deletions

File tree

‎.eslintrc.json‎

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

‎biome.json‎

Lines changed: 69 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,76 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
3+
"organizeImports": { "enabled": true },
64
"linter": {
75
"enabled": true,
86
"rules": {
9-
"recommended": true
7+
"recommended": false,
8+
"a11y": {
9+
"noAriaUnsupportedElements": "warn",
10+
"noBlankTarget": "off",
11+
"useAltText": "warn",
12+
"useAriaPropsForRole": "warn",
13+
"useValidAriaProps": "warn",
14+
"useValidAriaValues": "warn"
15+
},
16+
"complexity": {
17+
"noBannedTypes": "error",
18+
"noUselessTypeConstraint": "error"
19+
},
20+
"correctness": {
21+
"noChildrenProp": "error",
22+
"noPrecisionLoss": "error",
23+
"noUnusedVariables": "error",
24+
"useArrayLiterals": "off",
25+
"useExhaustiveDependencies": "warn",
26+
"useHookAtTopLevel": "error",
27+
"useJsxKeyInIterable": "error"
28+
},
29+
"security": { "noDangerouslySetInnerHtmlWithChildren": "error" },
30+
"style": { "noNamespace": "error", "useAsConstAssertion": "error" },
31+
"suspicious": {
32+
"noCommentText": "error",
33+
"noDuplicateJsxProps": "error",
34+
"noExplicitAny": "error",
35+
"noExtraNonNullAssertion": "error",
36+
"noMisleadingInstantiator": "error",
37+
"noUnsafeDeclarationMerging": "error"
38+
}
39+
}
40+
},
41+
"overrides": [
42+
{ "include": ["**/*.ts?(x)"] },
43+
{
44+
"include": ["*.ts", "*.tsx", "*.mts", "*.cts"],
45+
"linter": {
46+
"rules": {
47+
"correctness": {
48+
"noConstAssign": "off",
49+
"noGlobalObjectCalls": "off",
50+
"noInvalidConstructorSuper": "off",
51+
"noNewSymbol": "off",
52+
"noSetterReturn": "off",
53+
"noUndeclaredVariables": "off",
54+
"noUnreachable": "off",
55+
"noUnreachableSuper": "off"
56+
},
57+
"style": {
58+
"noArguments": "error",
59+
"noVar": "error",
60+
"useConst": "error"
61+
},
62+
"suspicious": {
63+
"noDuplicateClassMembers": "off",
64+
"noDuplicateObjectKeys": "off",
65+
"noDuplicateParameters": "off",
66+
"noFunctionAssign": "off",
67+
"noImportAssign": "off",
68+
"noRedeclare": "off",
69+
"noUnsafeNegation": "off",
70+
"useGetterReturn": "off"
71+
}
72+
}
73+
}
1074
}
11-
}
75+
]
1276
}

0 commit comments

Comments
 (0)