-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbiome.jsonc
More file actions
69 lines (69 loc) · 2.05 KB
/
biome.jsonc
File metadata and controls
69 lines (69 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"defaultBranch": "master"
},
"extends": ["@chainsafe/biomejs-config", "@chainsafe/biomejs-config/recommended", "@chainsafe/biomejs-config/esm"],
"files": {
"include": ["src/**/*.ts", "src/**/*.tsx"]
},
"linter": {
"rules": {
"suspicious": {
"noConsoleLog": "off",
// SSZ list/vector items have no stable key other than index
"noArrayIndexKey": "off"
},
"style": {
// Our team does not like this syntax
// https://github.com/ChainSafe/ssz/pull/475#discussion_r1995814916
"useNumberNamespace": "off",
// TODO: There are two many usages, will fix in separate PR
"noParameterAssign": "off",
// We use to export types and object without differentiating
"useExportType": "off",
// We use to import types and object without differentiating
"useImportType": "off",
// We have a lot of enum members in camelCase, so we have to update
// the base naming convention to allow camelCase in addition to PascalCase
"useNamingConvention": {
"level": "error",
"options": {
"requireAscii": true,
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "enumMember"
},
"formats": ["camelCase", "PascalCase"]
}
]
}
}
}
}
},
"overrides": [
{
"include": ["src/**/*.tsx"],
"linter": {
"rules": {
// Disable all accessibility rules for React files
"a11y": {
"useValidAnchor": "off",
"noLabelWithoutControl": "off",
"useButtonType": "off",
"useKeyWithClickEvents": "off",
"useAnchorContent": "off",
"useAltText": "off"
}
}
},
// Add JSX support for React files
"javascript": {
"globals": ["JSX"]
}
}
]
}