mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-12 19:51:14 +00:00
🔧 Update biome setting
This commit is contained in:
parent
0607099d6a
commit
283f17cccc
1 changed files with 5 additions and 72 deletions
77
biome.json
77
biome.json
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
|
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
|
||||||
"files": {
|
"files": {
|
||||||
"include": ["src/**/*.ts"],
|
"includes": ["src/**/*.ts"]
|
||||||
"ignore": ["node_modules", "dist", "lib", "**/__tests__/**"]
|
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|
@ -10,80 +9,14 @@
|
||||||
"indentStyle": "space",
|
"indentStyle": "space",
|
||||||
"indentWidth": 2,
|
"indentWidth": 2,
|
||||||
"lineEnding": "lf",
|
"lineEnding": "lf",
|
||||||
"lineWidth": 100,
|
"lineWidth": 100
|
||||||
"ignore": ["**/dist/", "**/lib/", "**/node_modules/"]
|
|
||||||
},
|
},
|
||||||
"organizeImports": { "enabled": true },
|
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"recommended": true,
|
"recommended": true
|
||||||
"complexity": {
|
|
||||||
"noExtraBooleanCast": "error",
|
|
||||||
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
|
||||||
"noStaticOnlyClass": "error",
|
|
||||||
"noUselessConstructor": "error",
|
|
||||||
"noUselessStringConcat": "error"
|
|
||||||
},
|
|
||||||
"correctness": {
|
|
||||||
"noConstAssign": "error",
|
|
||||||
"noConstantCondition": "error",
|
|
||||||
"noEmptyCharacterClassInRegex": "error",
|
|
||||||
"noEmptyPattern": "error",
|
|
||||||
"noGlobalObjectCalls": "error",
|
|
||||||
"noInnerDeclarations": "error",
|
|
||||||
"noInvalidConstructorSuper": "error",
|
|
||||||
"noNewSymbol": "error",
|
|
||||||
"noSelfAssign": "error",
|
|
||||||
"noSwitchDeclarations": "error",
|
|
||||||
"noUndeclaredVariables": "error",
|
|
||||||
"noUnreachable": "error",
|
|
||||||
"noUnreachableSuper": "error",
|
|
||||||
"noUnsafeFinally": "error",
|
|
||||||
"noUnusedLabels": "error",
|
|
||||||
"noUnusedVariables": "error",
|
|
||||||
"useIsNan": "error",
|
|
||||||
"useYield": "error"
|
|
||||||
},
|
|
||||||
"style": {
|
|
||||||
"noArguments": "error",
|
|
||||||
"noCommaOperator": "error",
|
|
||||||
"noInferrableTypes": "error",
|
|
||||||
"noNamespace": "error",
|
|
||||||
"noNonNullAssertion": "warn",
|
|
||||||
"noVar": "error",
|
|
||||||
"useConsistentArrayType": "error",
|
|
||||||
"useConst": "error",
|
|
||||||
"useForOf": "warn",
|
|
||||||
"useShorthandFunctionType": "warn",
|
|
||||||
"useSingleVarDeclarator": "error",
|
|
||||||
"useTemplate": "error"
|
|
||||||
},
|
|
||||||
"suspicious": {
|
|
||||||
"noCatchAssign": "error",
|
|
||||||
"noClassAssign": "error",
|
|
||||||
"noCompareNegZero": "error",
|
|
||||||
"noConsole": "error",
|
|
||||||
"noControlCharactersInRegex": "error",
|
|
||||||
"noDebugger": "error",
|
|
||||||
"noDoubleEquals": "error",
|
|
||||||
"noDuplicateCase": "error",
|
|
||||||
"noDuplicateClassMembers": "error",
|
|
||||||
"noDuplicateObjectKeys": "error",
|
|
||||||
"noDuplicateParameters": "error",
|
|
||||||
"noEmptyBlockStatements": "error",
|
|
||||||
"noExplicitAny": "warn",
|
|
||||||
"noFallthroughSwitchClause": "error",
|
|
||||||
"noFunctionAssign": "error",
|
|
||||||
"noGlobalAssign": "error",
|
|
||||||
"noMisleadingInstantiator": "error",
|
|
||||||
"noRedeclare": "error",
|
|
||||||
"noSparseArray": "error",
|
|
||||||
"noUnsafeNegation": "error",
|
|
||||||
"useValidTypeof": "error"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"ignore": ["**/dist/", "**/lib/", "**/node_modules/", "**/jest.config.js"]
|
"includes": ["vitest.config.ts", "src/**/*.ts", "__tests__/**/*.ts"]
|
||||||
},
|
},
|
||||||
"javascript": {
|
"javascript": {
|
||||||
"formatter": {
|
"formatter": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue