Skip to content

Commit

Permalink
ci: simplify biome config
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 10, 2024
1 parent 9656e66 commit d22a55e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 66 deletions.
90 changes: 25 additions & 65 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,26 @@
"noInvalidUseBeforeDeclaration": "off",
"noPrecisionLoss": "error",
"noUnusedVariables": "off",
"useArrayLiterals": "off"
"useArrayLiterals": "off",
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": {
"noInferrableTypes": "error",
"noNamespace": "error",
"noNonNullAssertion": "warn",
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useDefaultParameterLast": "error"
"useDefaultParameterLast": "error",
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noDuplicateClassMembers": "error",
Expand All @@ -47,7 +58,17 @@
"noMisleadingInstantiator": "error",
"noRedeclare": "error",
"useAwait": "off",
"useNamespaceKeyword": "error"
"useNamespaceKeyword": "error",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off",
"useValidTypeof": "off"
},
"nursery": {
"useSortedClasses": "info"
}
}
},
Expand All @@ -63,66 +84,5 @@
"quoteStyle": "double",
"attributePosition": "auto"
}
},
"overrides": [
{
"linter": {
"rules": {
"correctness": {
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"suspicious": {
"noDuplicateClassMembers": "off",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noRedeclare": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off",
"useValidTypeof": "off"
}
}
}
},
{
"linter": {
"rules": {
"correctness": {
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": {
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noDuplicateClassMembers": "off",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noRedeclare": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off",
"useValidTypeof": "off"
}
}
}
}
]
}
}
2 changes: 1 addition & 1 deletion lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const config = {
"*.{mjs,js,jsx,ts,tsx}": ["biome format --write", "biome lint --apply"],
"*.{mjs,js,jsx,ts,tsx}": ["biome check --write"],
"*.json": ["biome format --write"],
}

Expand Down

0 comments on commit d22a55e

Please sign in to comment.