diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..c3cfc39 --- /dev/null +++ b/biome.json @@ -0,0 +1,52 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json", + "organizeImports": { + "enabled": true + }, + "formatter": { + "enabled": true, + "indentStyle": "space" + }, + "files": { + "ignore": ["cosmos-export", "dist", "package.json"] + }, + "javascript": { + "formatter": { + "jsxQuoteStyle": "double", + "quoteProperties": "asNeeded", + "trailingCommas": "all", + "semicolons": "asNeeded", + "arrowParentheses": "always", + "bracketSpacing": true, + "bracketSameLine": false + } + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "suspicious": { + "noExplicitAny": "off" + }, + "complexity": { + "noForEach": "info" + }, + "correctness": { + "useExhaustiveDependencies": "off" + }, + "style": { + "noUselessElse": "off", + "noNonNullAssertion": "off", + "useNumberNamespace": "off", + "useFilenamingConvention": { + "level": "error", + "options": { + "strictCase": true, + "requireAscii": true, + "filenameCases": ["kebab-case", "export"] + } + } + } + } + } +} diff --git a/bun.lockb b/bun.lockb index 86f0d15..d1a0c44 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/examples/resistor-and-capacitor.fixture.tsx b/examples/resistor-and-capacitor.fixture.tsx new file mode 100644 index 0000000..321ef6b --- /dev/null +++ b/examples/resistor-and-capacitor.fixture.tsx @@ -0,0 +1,16 @@ +import { SchematicViewer } from "lib/components/SchematicViewer" +import { renderToCircuitJson } from "lib/dev/render-to-circuit-json" + +export default () => ( +