update README for "Code style"

This commit is contained in:
Amri Toufali 2022-06-21 11:08:31 -07:00
Родитель abbb438e07
Коммит fd6f1a9a45
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 75269D7487754F5D
1 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -29,7 +29,22 @@ ESLint rules are based on [eslint-config-standard](https://github.com/standard/e
Stylelint rules are based on [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard). To fix all auto-fixable problems, run `npx stylelint public/css/ --fix`
To run linting/formatting as you type or upon save, add the ESLint and Stylelint extensions and configure both to be the default formatter for this repo. See here for more on Stylelint config with VSCode: https://github.com/stylelint/vscode-stylelint#editorcodeactionsonsave
To run linting/formatting as you type or upon save, add the ESLint and Stylelint extensions and configure both to be the default formatter. For VS Code, you may want to add properties to your personal settings.json file, similar to:
```
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
},
"[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint",
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
}
}
```
See here for more on Stylelint config with VSCode: https://github.com/stylelint/vscode-stylelint#editorcodeactionsonsave
### Install