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:
Vincent 2024-01-19 16:37:25 +01:00 коммит произвёл Vincent
Родитель 6fb7d8f269
Коммит 98ef2b5654
2 изменённых файлов: 13 добавлений и 23 удалений

2
.vscode/extensions.json поставляемый
Просмотреть файл

@ -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": []

34
.vscode/settings.json поставляемый
Просмотреть файл

@ -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
},
}