Skip to content

Commit

Permalink
ci: add eslint ispired rules to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 10, 2024
1 parent d22a55e commit 0c43559
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": ["node_modules", ".next", "public", ".out"],
"include": ["src", "cypress"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
Expand All @@ -9,10 +13,6 @@
"lineWidth": 85,
"attributePosition": "auto"
},
"files": {
"include": ["src", "cypress"],
"ignore": ["node_modules", ".next", "public", ".out"]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
Expand All @@ -26,49 +26,48 @@
"useLiteralKeys": "error"
},
"correctness": {
"noInvalidUseBeforeDeclaration": "off",
"noPrecisionLoss": "error",
"noUnusedVariables": "off",
"useArrayLiterals": "off",
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noInvalidUseBeforeDeclaration": "off",
"noNewSymbol": "off",
"noPrecisionLoss": "error",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
"noUnreachableSuper": "off",
"noUnusedVariables": "warn",
"useArrayLiterals": "off"
},
"nursery": { "useSortedClasses": "info" },
"style": {
"noArguments": "error",
"noInferrableTypes": "error",
"noNamespace": "error",
"noNonNullAssertion": "warn",
"noVar": "error",
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useDefaultParameterLast": "error",
"noArguments": "error",
"noVar": "error",
"useConst": "error"
"useConst": "error",
"useDefaultParameterLast": "error"
},
"suspicious": {
"noConsoleLog": "warn",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noEmptyBlockStatements": "warn",
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noMisleadingInstantiator": "error",
"noRedeclare": "error",
"useAwait": "off",
"useNamespaceKeyword": "error",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noMisleadingInstantiator": "error",
"noRedeclare": "error",
"noUnsafeNegation": "off",
"useAwait": "off",
"useGetterReturn": "off",
"useNamespaceKeyword": "error",
"useValidTypeof": "off"
},
"nursery": {
"useSortedClasses": "info"
}
}
},
Expand Down

0 comments on commit 0c43559

Please sign in to comment.