Skip to content

Commit ee8a288

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
upgrade to biome 2.2.6
1 parent 8622aec commit ee8a288

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ LINTERS += yamllint-lint
8383
yamllint-lint: $(YAMLLINT_BIN)
8484
PYTHONPATH=$(YAMLLINT_ROOT)/dist $(YAMLLINT_ROOT)/dist/bin/yamllint .
8585

86-
BIOME_VERSION ?= 1.9.4
86+
BIOME_VERSION ?= 2.2.6
8787
BIOME_BIN := $(LINT_ROOT)/out/linters/biome-$(BIOME_VERSION)-$(LINT_ARCH)
8888
BIOME_CONFIG := $(LINT_ROOT)/biome.json
8989

@@ -96,7 +96,7 @@ endif
9696
$(BIOME_BIN):
9797
mkdir -p $(LINT_ROOT)/out/linters
9898
rm -rf $(LINT_ROOT)/out/linters/biome-*
99-
curl -sSfL -o $@ https://github.com/biomejs/biome/releases/download/cli%2Fv$(BIOME_VERSION)/biome-$(LINT_OS_LOWER)-$(BIOME_ARCH) \
99+
curl -sSfL -o $@ https://github.com/biomejs/biome/releases/download/%40biomejs%2Fbiome%40$(BIOME_VERSION)/biome-$(LINT_OS_LOWER)-$(BIOME_ARCH) \
100100
|| echo "Unable to fetch biome for $(LINT_OS_LOWER)/$(BIOME_ARCH), falling back to local install"
101101
test -f $@ || printf "#!/usr/bin/env biome\n" > $@
102102
chmod u+x $@

biome.json

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"diagnostics": {
4-
"maxDiagnostics": 1000
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
63
"vcs": {
74
"enabled": true,
85
"clientKind": "git",
96
"useIgnoreFile": true
107
},
118
"files": {
129
"ignoreUnknown": false,
13-
"ignore": ["node_modules", "dist", "build", "out", "coverage", ".next", ".nuxt"]
10+
"includes": [
11+
"**",
12+
"!**/node_modules",
13+
"!**/dist",
14+
"!**/build",
15+
"!**/out",
16+
"!**/coverage",
17+
"!**/.next",
18+
"!**/.nuxt"
19+
]
1420
},
1521
"formatter": {
1622
"enabled": true,
@@ -19,19 +25,17 @@
1925
"indentWidth": 2,
2026
"lineWidth": 100
2127
},
22-
"organizeImports": {
23-
"enabled": true
24-
},
28+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
2529
"linter": {
2630
"enabled": true,
2731
"rules": {
2832
"recommended": true,
2933
"complexity": {
3034
"noExtraBooleanCast": "error",
31-
"noMultipleSpacesInRegularExpressionLiterals": "error",
3235
"noUselessCatch": "error",
3336
"noUselessTypeConstraint": "error",
34-
"noWith": "error"
37+
"noAdjacentSpacesInRegex": "error",
38+
"noArguments": "error"
3539
},
3640
"correctness": {
3741
"noConstAssign": "error",
@@ -41,7 +45,6 @@
4145
"noGlobalObjectCalls": "error",
4246
"noInnerDeclarations": "error",
4347
"noInvalidConstructorSuper": "error",
44-
"noNewSymbol": "error",
4548
"noNonoctalDecimalEscape": "error",
4649
"noPrecisionLoss": "error",
4750
"noSelfAssign": "error",
@@ -56,15 +59,15 @@
5659
"noUnusedVariables": "error",
5760
"useIsNan": "error",
5861
"useValidForDirection": "error",
59-
"useYield": "error"
62+
"useYield": "error",
63+
"noInvalidBuiltinInstantiation": "error",
64+
"useValidTypeof": "error"
6065
},
6166
"security": {
6267
"noDangerouslySetInnerHtml": "warn",
6368
"noDangerouslySetInnerHtmlWithChildren": "error"
6469
},
6570
"style": {
66-
"noArguments": "error",
67-
"noVar": "error",
6871
"useConst": "error"
6972
},
7073
"suspicious": {
@@ -94,7 +97,8 @@
9497
"noUnsafeDeclarationMerging": "error",
9598
"noUnsafeNegation": "error",
9699
"useGetterReturn": "error",
97-
"useValidTypeof": "error"
100+
"noWith": "error",
101+
"noVar": "error"
98102
}
99103
}
100104
},

0 commit comments

Comments
 (0)