Skip to content

Commit fbf80d8

Browse files
add lint
1 parent 89ed3bb commit fbf80d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"build": "babel src --out-dir lib",
8-
"example": "npm run build && webpack --config example/webpack.config.js",
98
"prepublish": "npm run build",
10-
"test": "mocha --compilers js:babel-core/register"
9+
"test": "mocha --compilers js:babel-core/register",
10+
"lint": "eslint src/ test/"
1111
},
1212
"keywords": [
1313
"optimize",

test/.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
},
66
"rules": {
77
"no-console": 0,
8-
"brace-style": 0
8+
"brace-style": 0,
9+
"no-unused-vars": 0
910
},
1011
"globals": {
1112
"Promise": true,

0 commit comments

Comments
 (0)