-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathbiome.jsonc
More file actions
125 lines (125 loc) · 2.89 KB
/
Copy pathbiome.jsonc
File metadata and controls
125 lines (125 loc) · 2.89 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
// Build output, dependencies and other generated trees are skipped via
// .gitignore rather than being re-listed here.
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"ignoreUnknown": true,
"maxSize": 20971520,
// Everything is checked by default. Listing directories here instead would
// silently drop any new one (tests, scripts, config) from lint and format.
"includes": [
"**",
// Vendored agent skills — third-party source we do not own.
"!.agents",
// Generated by `sanity schema extract`.
"!apps/studio/schema.json",
// Biome 2.5 lints standalone .svg files as JSX; these are static assets,
// not components, so the a11y rules do not apply.
"!**/*.svg"
]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "warn",
"noConsole": "warn"
},
"style": {
"noMagicNumbers": "off",
"useConst": "error",
"useTemplate": "error"
},
"performance": {
"noNamespaceImport": "off"
},
"correctness": {
"noInvalidPositionAtImportRule": "off",
"useExhaustiveDependencies": "warn"
},
"complexity": {
"noExcessiveCognitiveComplexity": "warn"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"jsxQuoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5"
}
},
"json": {
"formatter": {
"enabled": true
}
},
"css": {
"parser": {
"cssModules": true,
"allowWrongLineComments": true,
"tailwindDirectives": true
},
"formatter": {
"enabled": true
},
"linter": {
"enabled": true
}
},
"overrides": [
{
// Deployed by the Sanity CLI, which reads the file as authored.
"includes": ["**/sanity.blueprint.ts"],
"linter": {
"enabled": false
},
"formatter": {
"enabled": false
}
},
{
"includes": [
"**/scripts/**/*.ts",
"**/scripts/**/*.js",
"packages/logger/**/*.ts"
],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
}
],
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
[":URL:", ":PACKAGE_WITH_PROTOCOL:", ":NODE:"],
[":PACKAGE:"],
":BLANK_LINE:",
[":ALIAS:", ":PATH:"]
]
}
}
}
}
}
}