chore(ask): configure pnpm and commit hooks
This commit is contained in:
+94
-87
@@ -1,89 +1,96 @@
|
||||
{
|
||||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "tab"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"maxAllowedComplexity": 12
|
||||
}
|
||||
},
|
||||
"noExcessiveLinesPerFunction": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
"maxLines": 70,
|
||||
"skipBlankLines": true,
|
||||
"skipIifes": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"correctness": {
|
||||
"noUnusedFunctionParameters": "error"
|
||||
},
|
||||
"performance": {
|
||||
"noAccumulatingSpread": "error"
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "error",
|
||||
"noNestedTernary": "error",
|
||||
"noNonNullAssertion": "error",
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useConst": "error",
|
||||
"useImportType": "error",
|
||||
"useNamingConvention": "error",
|
||||
"useNodejsImportProtocol": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"includes": ["tests/**/*.ts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"complexity": {
|
||||
"noExcessiveLinesPerFunction": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": ["src/index.ts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noDefaultExport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"assist": {
|
||||
"enabled": true,
|
||||
"actions": {
|
||||
"source": {
|
||||
"organizeImports": "on"
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "tab"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"maxAllowedComplexity": 12
|
||||
}
|
||||
},
|
||||
"noExcessiveLinesPerFunction": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
"maxLines": 70,
|
||||
"skipBlankLines": true,
|
||||
"skipIifes": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"correctness": {
|
||||
"noUnusedFunctionParameters": "error"
|
||||
},
|
||||
"performance": {
|
||||
"noAccumulatingSpread": "error"
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "error",
|
||||
"noNestedTernary": "error",
|
||||
"noNonNullAssertion": "error",
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useConst": "error",
|
||||
"useImportType": "error",
|
||||
"useNamingConvention": "error",
|
||||
"useNodejsImportProtocol": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"includes": [
|
||||
"tests/**/*.ts"
|
||||
],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"complexity": {
|
||||
"noExcessiveLinesPerFunction": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": [
|
||||
"src/index.ts"
|
||||
],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noDefaultExport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"assist": {
|
||||
"enabled": true,
|
||||
"actions": {
|
||||
"source": {
|
||||
"organizeImports": "on"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extends": [
|
||||
"ultracite/biome/core"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user