... | ... | @@ -45,8 +45,22 @@ We recommend to use a [JavaScript Standard Style](https://standardjs.com). Just |
|
|
Code quality (ESLint)
|
|
|
=====================
|
|
|
Install a [vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension.
|
|
|
Install **standard** as a dev dependency.
|
|
|
Optionally (if you use Vue - install `eslint-plugin-vue`
|
|
|
```
|
|
|
npm i --save-dev standard eslint-plugin-vue
|
|
|
```
|
|
|
|
|
|
Install a eslint globally `npm i -g eslint`
|
|
|
Create `.eslintrc` file in the root of your project and paste there
|
|
|
|
|
|
```
|
|
|
{
|
|
|
"extends": [
|
|
|
"plugin:vue/recommended",
|
|
|
"standard"
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Code Autocomplete
|
|
|
=====================
|
... | ... | |