8000 knip/biome.json at main · dbehmoaras/knip · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
124 lines (124 loc) · 2.55 KB

biome.json

File metadata and controls

124 lines (124 loc) · 2.55 KB
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": [
"**/dist",
"**/tmp",
"**/fixtures",
"packages/knip/package.json",
"packages/knip/vendor/bash-parser/index.js",
"packages/docs/.astro"
]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error"
},
"complexity": {
"useLiteralKeys": "off"
},
"nursery": {
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"node:path": "Please use src/util/path.js instead.",
"path": "Please use src/util/path.js instead."
}
}
}
},
"style": {
"noParameterAssign": "off",
"useNodeAssertStrict": "error"
},
"suspicious": {
"noConsoleLog": "error",
"noExplicitAny": "off"
}
}
},
"formatter": {
"enabled": true,
"lineWidth": 120,
"indentStyle": "space",
"formatWithErrors": true
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"arrowParentheses": "asNeeded",
"trailingCommas": "es5"
}
},
"json": {
"formatter": {
"lineWidth": 80
}
},
"css": {
"formatter": {
"quoteStyle": "single"
}
},
"overrides": [
{
"include": ["*.astro"],
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
},
{
"include": [
"packages/docs",
"packages/knip/scripts",
"packages/knip/src/cli.ts",
"packages/knip/src/reporters",
"packages/knip/src/util/cli-arguments.ts",
"packages/knip/src/util/debug.ts"
],
"linter": {
"rules": {
"suspicious": {
"noConsoleLog": "off"
}
}
}
},
{
"include": ["packages/knip/fixtures"],
"organizeImports": {
"enabled": false
},
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
},
"style": {
"useImportType": "off"
}
}
}
},
{
"include": ["packages/knip/test/util/get-inputs-from-scripts.test.ts"],
"formatter": {
"lineWidth": 200
}
}
]
}
0