Use eslint-config-koa (#1105)

This commit is contained in:
Nick McCurdy 2017-12-24 02:01:01 -05:00 committed by Yiyu He
parent 9068316fc7
commit 53bea20e79
2 changed files with 2 additions and 17 deletions

View file

@ -1,16 +1 @@
# Support ES2016 features extends: koa
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

View file

@ -48,8 +48,8 @@
"vary": "^1.0.0" "vary": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^7.1.1",
"eslint": "^3.17.1", "eslint": "^3.17.1",
"eslint-config-koa": "^2.0.0",
"eslint-config-standard": "^7.0.1", "eslint-config-standard": "^7.0.1",
"eslint-plugin-promise": "^3.5.0", "eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^2.1.1", "eslint-plugin-standard": "^2.1.1",