Skip to main content

vscode

settings.json


{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"javascript.preferences.autoImportFileExcludePatterns": [
"**/node_modules/**",
"**/_types/**"
],
"typescript.preferences.autoImportFileExcludePatterns": [
"**/node_modules/**",
"**/_types/**"
],
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"svelte.enable-ts-plugin": true
}

biomejs


{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": [
"_cjs",
"_esm",
"_types",
".next",
".svelte-kit",
".vercel",
"**/node_modules",
"CHANGELOG.md",
"bun.lockb",
"cache",
"contracts",
"test/kzg/*.json",
"test/kzg/*.txt",
"coverage",
"tsconfig.json",
"tsconfig.*.json",
"generated.ts",
"vectors/*.json",
"vectors/**/*.test.ts",
"wagmi",
"site/dist",
"dist"
]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"lineWidth": 80
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useButtonType": "off",
"useKeyWithClickEvents": "off",
"noSvgWithoutTitle": "off",
"useValidAnchor": "off"
},
"complexity": {
"noBannedTypes": "off",
"noForEach": "off",
"noUselessConstructor": "off",
"noUselessSwitchCase": "off",
"useArrowFunction": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noSwitchDeclarations": "off",
"useExhaustiveDependencies": "off"
},
"performance": {
"noBarrelFile": "off",
"noReExportAll": "off",
"noDelete": "off"
},
"style": {
"noNonNullAssertion": "off",
"useShorthandArrayType": "error",
"noVar": "off",
"noUselessElse": "off",
"useNodejsImportProtocol": "off",
"useSelfClosingElements": "off",
"noInferrableTypes": "off"
},
"suspicious": {
"noArrayIndexKey": "off",
"noAssignInExpressions": "off",
"noConfusingVoidType": "off",
"noConsoleLog": "off",
"noExplicitAny": "off",
"noRedeclare": "off",
"noShadowRestrictedNames": "off",
"noImplicitAnyLet": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "all",
"semicolons": "asNeeded"
}
},
"organizeImports": {
"enabled": true
}
}