mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
6ef3984410
Remove the Prettier related stuff from the conformance, which is purely aimed at JS/TS. Instead, `oxc_formatter_tests` manage Prettier's test fixtures along with Oxfmt.
44 lines
1.7 KiB
JSON
44 lines
1.7 KiB
JSON
{
|
|
// "oxc.path.oxlint": "apps/oxlint/dist/cli.js", // debug with local oxlint build
|
|
"oxc.typeAware": true,
|
|
"oxc.configPath": "oxlintrc.json",
|
|
"oxc.unusedDisableDirectives": "deny",
|
|
// "oxc.path.oxfmt": "apps/oxfmt/dist/cli.js", // debug with local oxfmt build
|
|
"oxc.fmt.configPath": "oxfmtrc.jsonc",
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnSaveMode": "file", // oxfmt can only format whole files
|
|
"editor.codeActionsOnSave": {
|
|
"source.organizeImports": "never" // let oxfmt handle import organization
|
|
},
|
|
"[rust]": {
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
|
},
|
|
// Exclude huge gitignored submodules and `node_modules` from rust-analyzer's file scan -
|
|
// it does not respect `.gitignore`.
|
|
// Skipping these directories (500k+ files) speeds up server startup and reduces memory use.
|
|
// Paths are workspace-root relative. Globs are not supported, so each is listed explicitly.
|
|
"rust-analyzer.files.exclude": [
|
|
"apps/oxfmt/node_modules",
|
|
"crates/oxc_formatter_tests/prettier",
|
|
"apps/oxlint/conformance/submodules",
|
|
"apps/oxlint/node_modules",
|
|
"apps/shared/node_modules",
|
|
"napi/minify/node_modules",
|
|
"napi/parser/node_modules",
|
|
"napi/playground/node_modules",
|
|
"napi/transform/node_modules",
|
|
"napi/transform-react/node_modules",
|
|
"node_modules",
|
|
"npm/oxfmt/node_modules",
|
|
"npm/oxlint/node_modules",
|
|
"tasks/e2e/node_modules",
|
|
"tasks/compat_data/node_modules",
|
|
"tasks/coverage/test262",
|
|
"tasks/coverage/babel",
|
|
"tasks/coverage/typescript",
|
|
"tasks/coverage/estree-conformance",
|
|
"tasks/transform_conformance/node_modules"
|
|
]
|
|
}
|