Bug fixes and new biome lint update
This commit is contained in:
27
biome.json
27
biome.json
@@ -1,9 +1,7 @@
|
||||
{
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
||||
"files": {
|
||||
"ignore": ["./node_modules/", "./dist/", "./.nx/"],
|
||||
"includes": ["./src/**/*.{ts,tsx,js,jsx}"],
|
||||
"ignoreUnknown": true
|
||||
},
|
||||
"linter": {
|
||||
@@ -11,8 +9,7 @@
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"a11y": {
|
||||
"noSvgWithoutTitle": "off",
|
||||
"all": true
|
||||
"noSvgWithoutTitle": "off"
|
||||
},
|
||||
"complexity": {
|
||||
"noUselessTypeConstraint": "off",
|
||||
@@ -20,9 +17,9 @@
|
||||
},
|
||||
"suspicious": {
|
||||
"noExplicitAny": "off",
|
||||
"noConsoleLog": "error",
|
||||
"noImplicitAnyLet": "off",
|
||||
"recommended": true
|
||||
"recommended": true,
|
||||
"noConsole": { "level": "error", "options": { "allow": ["error", "log"] } }
|
||||
},
|
||||
"correctness": {
|
||||
"useExhaustiveDependencies": "off",
|
||||
@@ -32,12 +29,24 @@
|
||||
"performance": {
|
||||
"noDelete": "off",
|
||||
"recommended": true
|
||||
},
|
||||
"style": {
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useDefaultParameterLast": "error",
|
||||
"useEnumInitializers": "error",
|
||||
"useSelfClosingElements": "error",
|
||||
"useSingleVarDeclarator": "error",
|
||||
"noUnusedTemplateLiteral": "error",
|
||||
"useNumberNamespace": "error",
|
||||
"noInferrableTypes": "error",
|
||||
"noUselessElse": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"formatWithErrors": false,
|
||||
"formatWithErrors": true,
|
||||
"indentStyle": "tab",
|
||||
"indentWidth": 2,
|
||||
"lineWidth": 90
|
||||
|
||||
Reference in New Issue
Block a user