forked from refinedev/refine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.json
143 lines (143 loc) · 3.87 KB
/
biome.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": false
},
"files": {
"ignore": [
"theme.d.ts",
"documentation/plugins",
"documentation/static",
"package.json"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"jsxRuntime": "reactClassic",
"formatter": {
"arrowParentheses": "always",
"quoteStyle": "double",
"semicolons": "always",
"trailingComma": "all"
}
},
"json": {
"parser": {
"allowComments": false,
"allowTrailingCommas": false
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"noAriaHiddenOnFocusable": "off",
"noAutofocus": "off",
"noBlankTarget": "error",
"noNoninteractiveElementToInteractiveRole": "off",
"noNoninteractiveTabindex": "off",
"noPositiveTabindex": "off",
"noSvgWithoutTitle": "off",
"useAltText": "off",
"useButtonType": "off",
"useHtmlLang": "off",
"useIframeTitle": "off",
"useKeyWithClickEvents": "off",
"useKeyWithMouseEvents": "off",
"useValidAnchor": "off"
},
"complexity": {
"noBannedTypes": "off",
"noExtraBooleanCast": "error",
"noForEach": "off",
"noStaticOnlyClass": "error",
"noUselessCatch": "error",
"noUselessConstructor": "error",
"noUselessFragments": "off",
"noUselessRename": "error",
"noUselessSwitchCase": "error",
"useArrowFunction": "error",
"useLiteralKeys": "off",
"useOptionalChain": "error",
"noExcessiveNestedTestSuites": "off"
},
"correctness": {
"noConstantCondition": "error",
"noEmptyPattern": "error",
"noSwitchDeclarations": "error",
"noUnreachable": "error",
"noUnsafeOptionalChaining": "error",
"useExhaustiveDependencies": "off",
"useJsxKeyInIterable": "off"
},
"performance": {
"noAccumulatingSpread": "off",
"noDelete": "off"
},
"security": {
"noDangerouslySetInnerHtml": "error"
},
"style": {
"noCommaOperator": "error",
"noNonNullAssertion": "off",
"noParameterAssign": "off",
"noUnusedTemplateLiteral": "error",
"noUselessElse": "error",
"useConst": "error",
"useDefaultParameterLast": "off",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"useTemplate": "error",
"useImportType": "error",
"useNodejsImportProtocol": "off"
},
"suspicious": {
"noArrayIndexKey": "off",
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noConfusingVoidType": "off",
"noControlCharactersInRegex": "error",
"noDoubleEquals": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noEmptyInterface": "error",
"noExplicitAny": "off",
"noFallthroughSwitchClause": "error",
"noGlobalIsNan": "error",
"noImplicitAnyLet": "off",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noRedundantUseStrict": "error",
"noSelfCompare": "error",
"noShadowRestrictedNames": "off",
"useDefaultSwitchClauseLast": "error",
"useValidTypeof": "error"
}
}
},
"overrides": [
{
"include": ["packages/ui-tests"],
"linter": {
"rules": {
"suspicious": {
"noExportsInTest": "off",
"useDefaultSwitchClauseLast": "error"
}
}
}
}
],
"vcs": {
"clientKind": "git",
"defaultBranch": "master",
"enabled": true,
"useIgnoreFile": true
}
}