Skip to content

Commit 9b2447c

Browse files
authored
chore(deps): update Biome with config & other deps (#76)
1 parent e388356 commit 9b2447c

3 files changed

Lines changed: 290 additions & 310 deletions

File tree

biome.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919
"formatWithErrors": true,
2020
"lineWidth": 140,
2121
"indentStyle": "space",
22-
"includes": [
23-
"**",
24-
"!**/.cache",
25-
"!**/dist/**",
26-
"!**/*.json",
27-
"!**/node_modules/**"
28-
]
22+
"includes": ["**", "!**/.cache", "!**/dist/**", "!**/*.json", "!**/node_modules/**"]
2923
},
3024
"javascript": {
3125
"parser": {
@@ -49,25 +43,23 @@
4943
},
5044
"linter": {
5145
"enabled": true,
52-
"includes": [
53-
"**",
54-
"!**/.cache",
55-
"!**/dist/**",
56-
"!**/*.json",
57-
"!**/node_modules/**"
58-
],
46+
"includes": ["**", "!**/.cache", "!**/dist/**", "!**/*.json", "!**/node_modules/**"],
5947
"rules": {
6048
"correctness": {
6149
"useImportExtensions": {
6250
"options": {
63-
"forceJsExtensions": true
51+
"extensionMappings": {
52+
"ts": "js",
53+
"tsx": "js"
54+
}
6455
}
6556
}
6657
},
6758
"recommended": true,
6859
"complexity": {
6960
"noForEach": "off",
70-
"noStaticOnlyClass": "off"
61+
"noStaticOnlyClass": "off",
62+
"noUselessEscapeInRegex": "error"
7163
},
7264
"performance": {
7365
"noBarrelFile": "off",
@@ -81,6 +73,11 @@
8173
"noNonNullAssertion": "off",
8274
"noParameterAssign": "off",
8375
"useExponentiationOperator": "off"
76+
},
77+
"nursery": {
78+
"noMisleadingReturnType": "error",
79+
"noUnnecessaryTemplateExpression": "error",
80+
"useDomQuerySelector": "error"
8481
}
8582
}
8683
},

0 commit comments

Comments
 (0)