-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbiome.jsonc
More file actions
80 lines (74 loc) · 1.9 KB
/
Copy pathbiome.jsonc
File metadata and controls
80 lines (74 loc) · 1.9 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
{
"$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": [
"**",
"!!**/dist/",
"!!**/.tsbuildinfo/",
"!!**/bun.lockb",
"!!**/node_modules/"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"linter": {
"enabled": true,
"rules": {
"preset": "recommended"
}
},
"javascript": {
// Make the linter aware of the `chrome` global provided by browser extensions.
"globals": ["chrome"],
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "double",
"jsxQuoteStyle": "double",
"trailingCommas": "all",
"arrowParentheses": "always"
}
},
// Use overrides to apply special rules for specific files or directories.
"overrides": [
{
// The files in the `scripts` directory are build tools, not browser code.
"includes": ["scripts/*.ts"],
"linter": {
"rules": {
// It's okay to use Node.js modules (like `fs` and `path`) in build scripts.
"correctness": {
"noNodejsModules": "off"
},
// It's standard to log progress to the console in build scripts.
"suspicious": {
"noConsole": "off"
}
}
}
},
{
// Extension pages receive ALL text content at runtime via chrome.i18n
// (data-i18n attributes), so elements are intentionally empty in markup
// and label/control text association happens after localization.
"includes": ["src/options/index.html", "src/viewer/index.html"],
"linter": {
"rules": {
"a11y": {
"useHeadingContent": "off",
"useAnchorContent": "off",
"noLabelWithoutControl": "off"
}
}
}
}
]
}