Skip to content

Commit 461339b

Browse files
nickservhaoxin
authored and
haoxin
committed
Use eslint-config-koa (#114)
1 parent 3f016b8 commit 461339b

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.eslintrc.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
env:
22
mocha: true
3-
extends: standard
4-
plugins:
5-
- standard
6-
- promise
3+
extends: koa
74
rules:
8-
arrow-parens: 0
9-
eqeqeq: 0
10-
no-return-assign: 0 # fails for arrow functions
11-
semi: [2, always]
12-
space-before-function-paren: [2, never]
13-
yoda: 0
14-
arrow-spacing: 2
15-
dot-location: [2, "property"]
5+
no-var: 0
6+
prefer-arrow-callback: 0

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"devDependencies": {
2424
"eslint": "^3.8.1",
25+
"eslint-config-koa": "^2.0.2",
2526
"eslint-config-standard": "^6.2.0",
2627
"eslint-plugin-promise": "^3.3.0",
2728
"eslint-plugin-standard": "^2.0.1",

0 commit comments

Comments
 (0)