diff --git a/biome.json b/biome.json index cd902b3..031771d 100644 --- a/biome.json +++ b/biome.json @@ -3,10 +3,51 @@ "organizeImports": { "enabled": true }, + "formatter": { + "enabled": true, + "formatWithErrors": false, + "ignore": [], + "attributePosition": "auto", + "indentStyle": "tab", + "indentWidth": 4, + "lineEnding": "lf", + "lineWidth": 100 + }, "linter": { "enabled": true, "rules": { - "recommended": true + "recommended": true, + "complexity": { + "noExcessiveCognitiveComplexity": "error" + }, + "style": { + "useConsistentArrayType": "warn", + "useFilenamingConvention": { + "level": "error", + "options": { + "filenameCases": ["PascalCase", "export"] + } + }, + "useForOf": "warn", + "useNamingConvention": { + "level": "error", + "options": { + "requireAscii": true + } + }, + "useShorthandAssign": "warn" + }, + "suspicious": { + "noConsoleLog": "warn", + "useAwait": "warn" + }, + "nursery": { + "noDuplicateElseIf": "warn" + } } + }, + "vcs": { + "enabled": true, + "clientKind": "git" } } diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..ecab596 --- /dev/null +++ b/settings.json @@ -0,0 +1,7 @@ +{ + "editor.defaultFormatter": "biomejs.biome", + "editor.codeActionsOnSave": { + "quickfix.biome": "explicit" + }, + "editor.formatOnSave": true +}