Skip to content

Commit 0e55fa1

Browse files
committed
Update Biome to v2.2.0; migrate config file
1 parent 607ac29 commit 0e55fa1

File tree

3 files changed

+174
-176
lines changed

3 files changed

+174
-176
lines changed

biome.json

Lines changed: 137 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,139 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": { "enabled": true },
4-
"files": {
5-
"maxSize": 10000000,
6-
"include": [
7-
"src",
8-
"lib",
9-
"test",
10-
"tasks",
11-
"devtools"
12-
],
13-
"ignore": [
14-
"test/plot-schema.json",
15-
"dist",
16-
"stackgl_modules",
17-
"node_modules",
18-
"build",
19-
"tasks/test_amdefine.js",
20-
"tasks/test_requirejs.js",
21-
"test/jasmine/assets/jquery-1.8.3.min.js"
22-
]
23-
},
24-
"linter": {
25-
"enabled": true,
26-
"rules": {
27-
"recommended": false,
28-
"complexity": {
29-
"noExtraBooleanCast": "error",
30-
"noMultipleSpacesInRegularExpressionLiterals": "error",
31-
"noUselessCatch": "error",
32-
"noWith": "error",
33-
"useLiteralKeys": "error"
34-
},
35-
"correctness": {
36-
"noConstAssign": "error",
37-
"noConstantCondition": "error",
38-
"noEmptyCharacterClassInRegex": "error",
39-
"noEmptyPattern": "error",
40-
"noGlobalObjectCalls": "error",
41-
"noInnerDeclarations": "off",
42-
"noInvalidConstructorSuper": "error",
43-
"noInvalidUseBeforeDeclaration": "error",
44-
"noNewSymbol": "error",
45-
"noNonoctalDecimalEscape": "error",
46-
"noPrecisionLoss": "error",
47-
"noSelfAssign": "error",
48-
"noSetterReturn": "error",
49-
"noSwitchDeclarations": "off",
50-
"noUndeclaredVariables": "off",
51-
"noUnreachable": "error",
52-
"noUnreachableSuper": "error",
53-
"noUnsafeFinally": "error",
54-
"noUnsafeOptionalChaining": "error",
55-
"noUnusedLabels": "error",
56-
"noUnusedVariables": "off",
57-
"useIsNan": "error",
58-
"useValidForDirection": "error",
59-
"useYield": "error"
60-
},
61-
"style": {
62-
"useBlockStatements": "off",
63-
"useSingleVarDeclarator": "off",
64-
"noVar": "off"
65-
},
66-
"suspicious": {
67-
"noAssignInExpressions": "off",
68-
"noAsyncPromiseExecutor": "error",
69-
"noCatchAssign": "error",
70-
"noClassAssign": "error",
71-
"noCompareNegZero": "error",
72-
"noConsoleLog": "off",
73-
"noControlCharactersInRegex": "error",
74-
"noDebugger": "error",
75-
"noDoubleEquals": "off",
76-
"noDuplicateCase": "error",
77-
"noDuplicateClassMembers": "error",
78-
"noDuplicateObjectKeys": "error",
79-
"noDuplicateParameters": "error",
80-
"noEmptyBlockStatements": "off",
81-
"noFallthroughSwitchClause": "off",
82-
"noFunctionAssign": "error",
83-
"noGlobalAssign": "error",
84-
"noImportAssign": "error",
85-
"noMisleadingCharacterClass": "error",
86-
"noPrototypeBuiltins": "off",
87-
"noRedeclare": "off",
88-
"noShadowRestrictedNames": "off",
89-
"noUnsafeNegation": "error",
90-
"useGetterReturn": "error",
91-
"useValidTypeof": "error"
92-
}
93-
},
94-
"ignore": [
95-
"**/stackgl_modules",
96-
"**/node_modules",
97-
"**/dist",
98-
"**/build",
99-
"tasks/test_amdefine.js",
100-
"tasks/test_requirejs.js",
101-
"test/jasmine/assets/jquery-1.8.3.min.js"
102-
]
103-
},
104-
"javascript": {
105-
"globals": [
106-
"Promise",
107-
"Float32Array",
108-
"Uint8ClampedArray",
109-
"Int32Array",
110-
"ArrayBuffer",
111-
"Uint16Array",
112-
"DataView",
113-
"Float64Array",
114-
"Int16Array",
115-
"Uint8Array",
116-
"Int8Array",
117-
"Uint32Array"
118-
],
119-
"formatter": {
120-
"quoteStyle": "single",
121-
"trailingCommas": "none",
122-
"indentStyle": "space",
123-
"indentWidth": 4,
124-
"lineEnding": "lf",
125-
"lineWidth": 120
126-
}
127-
},
128-
"json": {
129-
"linter": {
130-
"enabled": true
131-
},
132-
"formatter": {
133-
"enabled": true,
134-
"indentStyle": "space",
135-
"indentWidth": 1,
136-
"lineEnding": "lf",
137-
"lineWidth": 80
138-
}
139-
}
2+
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
4+
"files": {
5+
"maxSize": 10000000,
6+
"includes": [
7+
"**/src/**",
8+
"**/lib/**",
9+
"**/test/**",
10+
"**/tasks/**",
11+
"**/devtools/**",
12+
"!**/test/plot-schema.json",
13+
"!**/dist",
14+
"!**/stackgl_modules",
15+
"!**/node_modules",
16+
"!**/build",
17+
"!**/tasks/test_amdefine.js",
18+
"!**/tasks/test_requirejs.js",
19+
"!**/test/jasmine/assets/jquery-1.8.3.min.js"
20+
]
21+
},
22+
"linter": {
23+
"enabled": true,
24+
"rules": {
25+
"recommended": false,
26+
"complexity": {
27+
"noExtraBooleanCast": "error",
28+
"noUselessCatch": "error",
29+
"useLiteralKeys": "error",
30+
"noAdjacentSpacesInRegex": "error"
31+
},
32+
"correctness": {
33+
"noConstAssign": "error",
34+
"noConstantCondition": "error",
35+
"noEmptyCharacterClassInRegex": "error",
36+
"noEmptyPattern": "error",
37+
"noGlobalObjectCalls": "error",
38+
"noInnerDeclarations": "off",
39+
"noInvalidConstructorSuper": "error",
40+
"noInvalidUseBeforeDeclaration": "error",
41+
"noNonoctalDecimalEscape": "error",
42+
"noPrecisionLoss": "error",
43+
"noSelfAssign": "error",
44+
"noSetterReturn": "error",
45+
"noSwitchDeclarations": "off",
46+
"noUndeclaredVariables": "off",
47+
"noUnreachable": "error",
48+
"noUnreachableSuper": "error",
49+
"noUnsafeFinally": "error",
50+
"noUnsafeOptionalChaining": "error",
51+
"noUnusedLabels": "error",
52+
"noUnusedVariables": "off",
53+
"useIsNan": "error",
54+
"useValidForDirection": "error",
55+
"useYield": "error",
56+
"noInvalidBuiltinInstantiation": "error",
57+
"useValidTypeof": "error"
58+
},
59+
"style": {
60+
"useBlockStatements": "off",
61+
"useSingleVarDeclarator": "off"
62+
},
63+
"suspicious": {
64+
"noAssignInExpressions": "off",
65+
"noAsyncPromiseExecutor": "error",
66+
"noCatchAssign": "error",
67+
"noClassAssign": "error",
68+
"noCompareNegZero": "error",
69+
"noControlCharactersInRegex": "error",
70+
"noDebugger": "error",
71+
"noDoubleEquals": "off",
72+
"noDuplicateCase": "error",
73+
"noDuplicateClassMembers": "error",
74+
"noDuplicateObjectKeys": "error",
75+
"noDuplicateParameters": "error",
76+
"noEmptyBlockStatements": "off",
77+
"noFallthroughSwitchClause": "off",
78+
"noFunctionAssign": "error",
79+
"noGlobalAssign": "error",
80+
"noImportAssign": "error",
81+
"noMisleadingCharacterClass": "error",
82+
"noPrototypeBuiltins": "off",
83+
"noRedeclare": "off",
84+
"noShadowRestrictedNames": "off",
85+
"noUnsafeNegation": "error",
86+
"useGetterReturn": "error",
87+
"noWith": "error",
88+
"noVar": "off",
89+
"noConsole": { "level": "off", "options": { "allow": ["log"] } }
90+
}
91+
},
92+
"includes": [
93+
"**",
94+
"!**/stackgl_modules",
95+
"!**/node_modules",
96+
"!**/dist",
97+
"!**/build",
98+
"!**/tasks/test_amdefine.js",
99+
"!**/tasks/test_requirejs.js",
100+
"!**/test/jasmine/assets/jquery-1.8.3.min.js"
101+
]
102+
},
103+
"javascript": {
104+
"globals": [
105+
"Promise",
106+
"Float32Array",
107+
"Uint8ClampedArray",
108+
"Int32Array",
109+
"ArrayBuffer",
110+
"Uint16Array",
111+
"DataView",
112+
"Float64Array",
113+
"Int16Array",
114+
"Uint8Array",
115+
"Int8Array",
116+
"Uint32Array"
117+
],
118+
"formatter": {
119+
"quoteStyle": "single",
120+
"trailingCommas": "none",
121+
"indentStyle": "space",
122+
"indentWidth": 4,
123+
"lineEnding": "lf",
124+
"lineWidth": 120
125+
}
126+
},
127+
"json": {
128+
"linter": {
129+
"enabled": true
130+
},
131+
"formatter": {
132+
"enabled": true,
133+
"indentStyle": "space",
134+
"indentWidth": 1,
135+
"lineEnding": "lf",
136+
"lineWidth": 80
137+
}
138+
}
140139
}

0 commit comments

Comments
 (0)