Refine setup for VSCode users
This primarily ensures that people automatically remove trailing whitespaces for Fluent files, which fail the linter. Additionally, it adds two relevant recommended extensions, and aligned settings for different languages.
This commit is contained in:
Родитель
6fb7d8f269
Коммит
98ef2b5654
|
@ -8,6 +8,8 @@
|
|||
"stylelint.vscode-stylelint",
|
||||
"esbenp.prettier-vscode",
|
||||
"eamodio.gitlens",
|
||||
"Orta.vscode-jest",
|
||||
"macabeus.vscode-fluent",
|
||||
],
|
||||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
||||
"unwantedRecommendations": []
|
||||
|
|
|
@ -7,36 +7,24 @@
|
|||
"eslint.validate": [
|
||||
"javascript"
|
||||
],
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
}
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
}
|
||||
},
|
||||
"[typescriptreact]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
}
|
||||
},
|
||||
"[css]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.stylelint": "explicit"
|
||||
}
|
||||
},
|
||||
"gitlens.advanced.blame.customArguments": [
|
||||
"--ignore-revs-file",
|
||||
".git-blame-ignore-revs"
|
||||
],
|
||||
"[css][scss]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.stylelint": "explicit"
|
||||
}
|
||||
},
|
||||
"[javascript][typescript][typescriptreact]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit"
|
||||
}
|
||||
},
|
||||
"[javascript][typescript][typescriptreact][markdown][html][css][scss]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
},
|
||||
"[fluent]": {
|
||||
"files.trimTrailingWhitespace": true
|
||||
},
|
||||
}
|
Загрузка…
Ссылка в новой задаче