... | @@ -4,7 +4,7 @@ In this article |
... | @@ -4,7 +4,7 @@ In this article |
|
|
|
|
|
Code settings
|
|
Code settings
|
|
===========
|
|
===========
|
|
In this project we use a ](https://github.com/standard/standard)
|
|
In this project we use a [JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
|
|
|
|
|
|
Install [standard] globally:
|
|
Install [standard] globally:
|
|
```
|
|
```
|
... | @@ -23,10 +23,8 @@ File->Settings->Languages and Frameworks->Node.js and NPM |
... | @@ -23,10 +23,8 @@ File->Settings->Languages and Frameworks->Node.js and NPM |
|
File->Settings->Languages and Frameworks->JavaScript -> Code Quality Tools -> ESLint
|
|
File->Settings->Languages and Frameworks->JavaScript -> Code Quality Tools -> ESLint
|
|
- Click `Enable`
|
|
- Click `Enable`
|
|
- For **WebStorm >= 2017.3** in the combo `ESLint package` select `~\AppData\Roaming\npm\node_modules\standard`
|
|
- For **WebStorm >= 2017.3** in the combo `ESLint package` select `~\AppData\Roaming\npm\node_modules\standard`
|
|
|
|
- For **WebStorm 2017.1** - go to Editor->Code Style->JavaScript and select `Standard` schema
|
|
For other WebStorm versions:
|
|
- For **WebStorm < 2017.1** - see [manual configuration instruction](https://github.com/feross/standard/blob/master/docs/webstorm.md)
|
|
- **WebStorm 2017.1** - go to Editor->Code Style->JavaScript and select `Standard` schema
|
|
|
|
- **WebStorm < 2017.1** - see [manual configuration instruction](https://github.com/feross/standard/blob/master/docs/webstorm.md)
|
|
|
|
|
|
|
|
Editor->File Types
|
|
Editor->File Types
|
|
- Select `Recognized File Types` JavaScript
|
|
- Select `Recognized File Types` JavaScript
|
... | | ... | |