แก้ coding style ภาค 2
This commit is contained in:
38
.eslintrc
38
.eslintrc
@@ -1,15 +1,41 @@
|
||||
parserOptions:
|
||||
sourceType: module
|
||||
sourceType: module
|
||||
|
||||
extends:
|
||||
"eslint:recommended"
|
||||
|
||||
"standard"
|
||||
rules:
|
||||
no-cond-assign: 0
|
||||
no-console: 0
|
||||
|
||||
no-cond-assign: 0
|
||||
no-console: 0
|
||||
semi:
|
||||
- error
|
||||
- always
|
||||
/*
|
||||
no-extra-parens: 1
|
||||
curly: 0
|
||||
block-scoped-var: 1
|
||||
no-tabs: 1
|
||||
no-negated-condition: 1
|
||||
block-spacing: 1
|
||||
brace-style: 1
|
||||
comma-spacing: 1
|
||||
comma-style: 1
|
||||
eol-last: 1
|
||||
func-call-spacing: 1
|
||||
indent:
|
||||
- error
|
||||
- 2
|
||||
key-spacing: 1
|
||||
linebreak-style: 1
|
||||
no-lonely-if: 1
|
||||
*/
|
||||
env:
|
||||
es6: true
|
||||
|
||||
globals:
|
||||
console: false
|
||||
/*
|
||||
plugins:
|
||||
- import
|
||||
- node
|
||||
- promise
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user