{ "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer" }, "rust-analyzer.procMacro.enable": true, "rust-analyzer.diagnostics.experimental.enable": false, "tailwindCSS.experimental.classRegex": [ ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], // cva(....)`...` "tw\\.[^`]+`([^`]*)`", // tw.xxx`...` "tw\\(.*?\\).*?`([^`]*)" // tw(....)`...` ], "search.exclude": { "**/node_modules": true, "**/bower_components": true, "**/*.code-search": true, "**/pnpm-lock.yaml": true, "**/.gitignore": true, "/packages/ctjs/types/*": true, "**/dist": true }, // enable the eslint flat config support "eslint.experimental.useFlatConfig": true, // disable the default formatter, use eslint "prettier.enable": false, "editor.formatOnSave": false, // automatically fix "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.organizeImports": "never" }, // silent stylistic rules in the ide, but still fix them /* "eslint.rules.customizations": [ { "rule": "@stylistic/*", "severity": "warn" }, { "rule": "style*", "severity": "warn" }, { "rule": "*-indent", "severity": "warn" }, { "rule": "*-spacing", "severity": "warn" }, { "rule": "*-spaces", "severity": "warn" }, { "rule": "*-order", "severity": "warn" }, { "rule": "*-dangle", "severity": "warn" }, { "rule": "*-newline", "severity": "warn" }, { "rule": "*quotes", "severity": "warn" }, { "rule": "*semi", "severity": "warn" } ], */ // enable eslint for all supported languages "eslint.validate": [ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "yaml", "astro", "toml" ], "css.customData": [ ".vscode/tailwind.json" ], "eslint.lintTask.enable": true, "eslint.workingDirectories": [], "explorer.fileNesting.enabled": true, "explorer.fileNesting.patterns": { "*.ts": "${capture}.js", "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", "*.jsx": "${capture}.js", "*.tsx": "${capture}.ts", ".npmrc": ".nvmrc, .yarnrc.yml", ".gitignore": ".eslintignore, .prettierignore", "README.md": "CONTRIBUTING.md, CODE_OF_CONDUCT.md, LICENSE", "Cargo.toml": "Cargo.lock", ".eslintrc.js": ".eslintcache", ".prettierrc.*": ".rustfmt.toml, .gitattributes, .editorconfig, .clippy.toml", "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, pnpm-workspace.yaml, .pnp.cjs, .pnp.loader.mjs", "tsconfig.json": "tsconfig.*.json", "flake.nix": "shell.nix, flake.lock, Cargo.nix" } }