Skip to content

Commit 98999c9

Browse files
committed
Update linter config
1 parent 975a1bb commit 98999c9

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

biome.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
33
"extends": ["packages/knip/biome.json"],
44
"files": {
5-
"ignore": ["**/dist", "**/tmp", "packages/docs/.astro"]
5+
"ignore": ["**/dist", "**/tmp", "packages/docs/.astro", ".vscode"]
66
},
77
"organizeImports": {
88
"enabled": true
@@ -18,17 +18,6 @@
1818
"complexity": {
1919
"useLiteralKeys": "off"
2020
},
21-
"nursery": {
22-
"noRestrictedImports": {
23-
"level": "error",
24-
"options": {
25-
"paths": {
26-
"node:path": "Please use src/util/path.js instead.",
27-
"path": "Please use src/util/path.js instead."
28-
}
29-
}
30-
}
31-
},
3221
"style": {
3322
"noParameterAssign": "off",
3423
"useNodeAssertStrict": "error"

packages/knip/biome.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
"fixtures/plugins/biome-workspace/packages/stub"
1010
]
1111
},
12+
"linter": {
13+
"rules": {
14+
"nursery": {
15+
"noRestrictedImports": {
16+
"level": "error",
17+
"options": {
18+
"paths": {
19+
"node:path": "Please use src/util/path.js instead.",
20+
"path": "Please use src/util/path.js instead."
21+
}
22+
}
23+
}
24+
}
25+
}
26+
},
1227
"formatter": {
1328
"ignore": ["ignore-exports-used-in-file-alias-exclude/more.ts"]
1429
},

0 commit comments

Comments
 (0)