Skip to content

Commit 3d91e92

Browse files
committed
Update the biome pre-commit hook now that biome doesn't crash on Django HTML templates anymore
1 parent f00bfb6 commit 3d91e92

File tree

3 files changed

+37
-7
lines changed

3 files changed

+37
-7
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ repos:
2929
- id: rst-backticks
3030
- id: rst-directive-colons
3131
- repo: https://github.com/biomejs/pre-commit
32-
rev: v1.9.4
32+
rev: v2.0.0-beta.2
3333
hooks:
3434
- id: biome-check
3535
verbose: true
3636
- repo: https://github.com/astral-sh/ruff-pre-commit
37-
rev: 'v0.11.7'
37+
rev: 'v0.11.8'
3838
hooks:
3939
- id: ruff
4040
args: [--fix, --exit-non-zero-on-fix]

biome.json

+32-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,44 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.2/schema.json",
33
"formatter": {
44
"enabled": true,
55
"useEditorconfig": true
66
},
7-
"organizeImports": {
8-
"enabled": true
7+
"assist": {
8+
"actions": {
9+
"source": {
10+
"organizeImports": "on"
11+
}
12+
}
913
},
1014
"linter": {
1115
"enabled": true,
1216
"rules": {
13-
"recommended": true
17+
"recommended": true,
18+
"style": {
19+
"useLiteralEnumMembers": "error",
20+
"noCommaOperator": "error",
21+
"useNodejsImportProtocol": "error",
22+
"useAsConstAssertion": "error",
23+
"useNumericLiterals": "error",
24+
"useEnumInitializers": "error",
25+
"useSelfClosingElements": "error",
26+
"useConst": "error",
27+
"useSingleVarDeclarator": "error",
28+
"noUnusedTemplateLiteral": "error",
29+
"useNumberNamespace": "error",
30+
"noInferrableTypes": "error",
31+
"useExponentiationOperator": "error",
32+
"useTemplate": "error",
33+
"noParameterAssign": "error",
34+
"noNonNullAssertion": "error",
35+
"useDefaultParameterLast": "error",
36+
"noArguments": "error",
37+
"useImportType": "error",
38+
"useExportType": "error",
39+
"noUselessElse": "error",
40+
"useShorthandFunctionType": "error"
41+
}
1442
}
1543
},
1644
"javascript": {

debug_toolbar/static/debug_toolbar/css/toolbar.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@
170170
#djDebug button:active {
171171
border: 1px solid #aaa;
172172
border-bottom: 1px solid #888;
173-
box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
173+
box-shadow:
174+
inset 0 0 5px 2px #aaa,
175+
0 1px 0 0 #eee;
174176
}
175177

176178
#djDebug #djDebugToolbar {

0 commit comments

Comments
 (0)