update README for "Code style"
This commit is contained in:
Родитель
abbb438e07
Коммит
fd6f1a9a45
17
README.md
17
README.md
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче