diff --git a/.vscode/settings.json b/.vscode/settings.json index 18ce793..797e52f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,9 @@ { - "yaml.format.singleQuote": true, - "eslint.workingDirectories": ["./hyperglass/ui"], - "python.linting.mypyEnabled": false, - "python.linting.enabled": false, - "biome.lspBin": "./hyperglass/ui/node_modules/.bin/biome" + "yaml.format.singleQuote": true, + "python.linting.mypyEnabled": false, + "python.linting.enabled": false, + "biome.lspBin": "./hyperglass/ui/node_modules/.bin/biome", + "editor.codeActionsOnSave": { + "source.organizeImports.biome": "always" + } } diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..eff2ec8 --- /dev/null +++ b/biome.json @@ -0,0 +1,47 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", + "organizeImports": { + "enabled": true + }, + "files": { + "ignore": [ + "node_modules", + "dist", + ".next/", + "favicon-formats.ts", + "custom.*[js, html]", + "hyperglass.json" + ] + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "complexity": { + "noUselessTypeConstraint": "off", + "noBannedTypes": "off" + }, + "style": { + "noInferrableTypes": "off", + "noNonNullAssertion": "off" + }, + "correctness": { + "useExhaustiveDependencies": "off" + } + } + }, + "formatter": { + "indentStyle": "space", + "lineWidth": 100, + "indentWidth": 2 + }, + "javascript": { + "formatter": { + "quoteStyle": "single", + "bracketSpacing": true, + "semicolons": "always", + "arrowParentheses": "asNeeded", + "trailingComma": "all" + } + } +} diff --git a/hyperglass/ui/biome.json b/hyperglass/ui/biome.json index 9ecb7e1..9ba7576 100644 --- a/hyperglass/ui/biome.json +++ b/hyperglass/ui/biome.json @@ -1,40 +1,4 @@ { "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", - "organizeImports": { - "enabled": true - }, - "files": { - "ignore": ["node_modules", "dist", ".next/", "favicon-formats.ts", "custom.*[js, html]"] - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true, - "complexity": { - "noUselessTypeConstraint": "off", - "noBannedTypes": "off" - }, - "style": { - "noInferrableTypes": "off", - "noNonNullAssertion": "off" - }, - "correctness": { - "useExhaustiveDependencies": "off" - } - } - }, - "formatter": { - "indentStyle": "space", - "lineWidth": 100, - "indentWidth": 2 - }, - "javascript": { - "formatter": { - "quoteStyle": "single", - "bracketSpacing": true, - "semicolons": "always", - "arrowParentheses": "asNeeded", - "trailingComma": "all" - } - } + "extends": ["../../biome.json"] }