Use eslint-config-koa (#1105)
This commit is contained in:
parent
9068316fc7
commit
53bea20e79
2 changed files with 2 additions and 17 deletions
|
@ -1,16 +1 @@
|
|||
# Support ES2016 features
|
||||
parser: babel-eslint
|
||||
|
||||
extends: standard
|
||||
|
||||
rules:
|
||||
arrow-parens: [2, as-needed]
|
||||
eqeqeq: 0
|
||||
no-return-assign: 0 # fails for arrow functions
|
||||
no-var: 2
|
||||
semi: [2, always]
|
||||
space-before-function-paren: [2, never]
|
||||
yoda: 0
|
||||
arrow-spacing: 2
|
||||
dot-location: [2, "property"]
|
||||
prefer-arrow-callback: 2
|
||||
extends: koa
|
||||
|
|
|
@ -48,8 +48,8 @@
|
|||
"vary": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^7.1.1",
|
||||
"eslint": "^3.17.1",
|
||||
"eslint-config-koa": "^2.0.0",
|
||||
"eslint-config-standard": "^7.0.1",
|
||||
"eslint-plugin-promise": "^3.5.0",
|
||||
"eslint-plugin-standard": "^2.1.1",
|
||||
|
|
Loading…
Reference in a new issue