aboutsummaryrefslogtreecommitdiff
path: root/biome.json
blob: ea4876babdb44b9e96de620bd965265c06a63300 (plain) (blame)
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
{
	"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
	"assist": {
		"actions": {
			"source": {
				"organizeImports": "off",
				"useSortedAttributes": "off",
				"useSortedKeys": "off"
			}
		},
		"enabled": true
	},
	"files": {
		"includes": [
			"**",
			"!**/node_modules/",
			"!**/.next/",
			"!**/.contentlayer/",
			"!**/.vercel/",
			"!**/.react-router/",
			"!**/.wrangler/",
			"!**/package.json",
			"!**/worker-configuration.d.ts",
			"!**/.turbo/",
			"!**/.vercel/",
			"!**/dist/",
			"!**/.astro/",
			"!**/build/",
			"!**/.alchemy/",
			"!**/.build/",
			"!**/.open-next/",
			"!**/*.astro"
		]
	},
	"formatter": {
		"enabled": true,
		"indentStyle": "tab"
	},
	"javascript": {
		"formatter": {
			"quoteStyle": "double",
			"semicolons": "asNeeded"
		}
	},
	"linter": {
		"domains": {
			"project": "none"
		},
		"enabled": true,
		"rules": {
			"a11y": {
				"useValidAnchor": "warn"
			},
			"correctness": {
				"noUnusedVariables": {
					"level": "warn",
					"options": {
						"ignoreRestSiblings": true
					}
				},
				"useExhaustiveDependencies": "warn",
				"noUnusedImports": "warn"
			},
			"recommended": true,
			"style": {
				"noDefaultExport": "off",
				"noInferrableTypes": "error",
				"noNonNullAssertion": "warn",
				"noParameterAssign": "error",
				"noUnusedTemplateLiteral": "error",
				"noUselessElse": "error",
				"useAsConstAssertion": "error",
				"useDefaultParameterLast": "error",
				"useEnumInitializers": "error",
				"useNamingConvention": {
					"level": "off",
					"options": {
						"strictCase": false
					}
				},
				"useNumberNamespace": "error",
				"useSelfClosingElements": "error",
				"useSingleVarDeclarator": "error"
			}
		}
	},
	"overrides": [
		{
			"includes": ["**/*.astro"],
			"linter": {
				"rules": {
					"correctness": {
						"noUnusedVariables": "off",
						"noUnusedImports": "off"
					}
				}
			}
		}
	],
	"vcs": {
		"clientKind": "git",
		"enabled": true,
		"useIgnoreFile": true
	}
}