add nodeJS guide

main
Yik Teng Hie 5 years ago
parent 73b26d5513
commit d99eb03808

@ -0,0 +1,7 @@
# IntelliJ IDEA Community
Plugins
* Lombok
* Free MyBatis Plugins
* Request Mapper

@ -0,0 +1,26 @@
# Visual Studio Code
Extensions
* [EditorConfig](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig). Sample `.editorconfig`
```ini
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
```
* Code Runner
* Live Server

@ -0,0 +1,44 @@
# Javascript
## Code Style
* [Info](https://javascript.info/coding-style)
* [Google Style](https://google.github.io/styleguide/jsguide.html)
* [StandardJS](https://standardjs.com/)
* General guide
* Indentation : +2 spaces
* A line space between code block
* Column limit : 80
* Use single quote `'` for strings
* Use `===` for equality check
* A space between `:` and value in key-value pair
### [ESLint](https://eslint.org/)
* Install package
```sh
$ npm install -g eslint
```
* Create `.eslintrc` config file
```json
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"no-console": 0,
"indent": 2
}
}
```
*
Loading…
Cancel
Save