mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-12 11:41:14 +00:00
100 lines
3.1 KiB
JSON
100 lines
3.1 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
|
|
"files": {
|
|
"include": ["src/**/*.ts"],
|
|
"ignore": ["node_modules", "dist", "lib", "**/__tests__/**"]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"formatWithErrors": false,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineEnding": "lf",
|
|
"lineWidth": 100,
|
|
"ignore": ["**/dist/", "**/lib/", "**/node_modules/"]
|
|
},
|
|
"organizeImports": { "enabled": true },
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"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"]
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"jsxQuoteStyle": "double",
|
|
"quoteProperties": "asNeeded",
|
|
"semicolons": "asNeeded",
|
|
"arrowParentheses": "asNeeded",
|
|
"bracketSameLine": false,
|
|
"quoteStyle": "double",
|
|
"bracketSpacing": false
|
|
},
|
|
"globals": ["jest"]
|
|
}
|
|
}
|