mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
Stylelint is a css linter: https://stylelint.io/ As part of this change we have added two javascript scripts: ``` pnpm lint:css pnpm lint:css:fix ``` Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for configuration in VSCode. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
{
|
|
// Enable gjs support for eslint
|
|
"eslint.validate": [
|
|
"glimmer-js",
|
|
],
|
|
|
|
// Formatter configuration:
|
|
"[scss]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[glimmer-js]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[ruby]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "Shopify.ruby-lsp"
|
|
},
|
|
"[handlebars]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
|
|
// eslint fix on save
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll": "explicit"
|
|
},
|
|
|
|
"task.autoDetect": "off",
|
|
"eslint.debug": false,
|
|
"rubyLsp.formatter": "syntax_tree",
|
|
|
|
// stylelint scss support
|
|
"stylelint.validate": ["css", "postcss", "scss"],
|
|
|
|
// disable other stylesheet linters
|
|
"css.validate": false,
|
|
"less.validate": false,
|
|
"scss.validate": false
|
|
}
|