forked from Kong/httpsnippet
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbiome.jsonc
More file actions
55 lines (53 loc) · 1.7 KB
/
biome.jsonc
File metadata and controls
55 lines (53 loc) · 1.7 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
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["@readme/standards/biome", "@readme/standards/biome/esm"],
"files": {
"ignoreUnknown": false,
"includes": ["**/*.{cjs,mjs,js,mts,ts}", "!coverage", "!dist", "!src/targets/**/fixtures"],
},
"linter": {
"enabled": true,
"domains": {
"project": "all",
"test": "all",
},
"rules": {
"correctness": {
// This is being flagged on Node built-ins. https://github.com/biomejs/biome/issues/8849
"noUnresolvedImports": "off",
},
"performance": {
"noAccumulatingSpread": "off", // @fixme
},
"style": {
"noParameterAssign": "off", // @fixme
"useDefaultSwitchClause": "off",
},
"suspicious": {
"noExplicitAny": "off",
"noPrototypeBuiltins": "off",
// We unfortunatley have an `escape` option in our core targets that's being seen as
// shadowing the global `escape` function.
"noShadowRestrictedNames": "off",
},
},
},
"overrides": [
{
"includes": ["src/**/*.test.ts"],
"linter": {
"rules": {
"correctness": {
// Because we dynamically load test fixtures, and have to use `require` to do so, those
// files need to be `.cjs` files which collides with this extension as it wants them
// to be `.js`.
"useImportExtensions": "off",
// For the same reasons as `useImportExtensions`, because we load in some `.cjs` files
// in tests those use `module.exports` and do not have a "default" export.
"noUnresolvedImports": "off",
},
},
},
},
],
}