mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Consolidates the root .eslintrc.json and five nested configs (build, script, docs, default_app, spec) into a single .oxlintrc.json at the repo root. script/lint.js now shells out to the oxlint binary from node_modules/.bin instead of using the ESLint Node API, and emits GitHub Actions annotations directly via --format=github in CI (replacing the deleted eslint-stylish problem matcher). Oxlint has no markdown processor, so the ESLint-based lint of JS code blocks in docs/**/*.md is replaced with an inline regex check for bare Node.js builtin imports. This preserves the rule docs/.eslintrc.json was originally added for in #42113; the rest of the standard ruleset on docs code blocks was already being enforced in parallel by lint-roller-markdown-standard.
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"name": "Electron Core Development Environment",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "buildtools",
|
|
"onCreateCommand": ".devcontainer/on-create-command.sh",
|
|
"updateContentCommand": ".devcontainer/update-content-command.sh",
|
|
"workspaceFolder": "/workspaces/gclient/src/electron",
|
|
"forwardPorts": [6080, 5901],
|
|
"portsAttributes": {
|
|
"6080": {
|
|
"label": "VNC web client (noVNC)",
|
|
"onAutoForward": "silent"
|
|
},
|
|
"5901": {
|
|
"label": "VNC TCP port",
|
|
"onAutoForward": "silent"
|
|
}
|
|
},
|
|
"hostRequirements": {
|
|
"storage": "128gb",
|
|
"cpus": 16
|
|
},
|
|
"remoteUser": "builduser",
|
|
"customizations": {
|
|
"codespaces": {
|
|
"openFiles": [
|
|
".devcontainer/README.md"
|
|
]
|
|
},
|
|
"vscode": {
|
|
"extensions": [
|
|
"joeleinbinder.mojom-language",
|
|
"rafaelmaiolla.diff",
|
|
"surajbarkale.ninja",
|
|
"ms-vscode.cpptools",
|
|
"mutantdino.resourcemonitor",
|
|
"dsanders11.vscode-electron-build-tools",
|
|
"oxc.oxc-vscode",
|
|
"shakram02.bash-beautify",
|
|
"marshallofsound.gnls-electron"
|
|
],
|
|
"settings": {
|
|
"editor.tabSize": 2,
|
|
"bashBeautify.tabSize": 2,
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"javascript.preferences.quoteStyle": "single",
|
|
"typescript.preferences.quoteStyle": "single"
|
|
}
|
|
}
|
|
}
|
|
} |