Skip to content

Commit 1534531

Browse files
author
Josh Dover
committed
Get eslint going
1 parent abc88af commit 1534531

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.eslintrc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"plugins": [],
3+
"extends": ["eslint:recommended"],
4+
"env": {
5+
"mocha": true,
6+
"es6": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 6,
10+
"sourceType": "module",
11+
"ecmaFeatures": {
12+
"impliedStrict": true,
13+
"modules": true
14+
}
15+
},
16+
"rules": {
17+
"indent": [2, "tab"],
18+
"no-console": [0],
19+
"no-unused-vars": [1]
20+
}
21+
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"build": "rm -rf lib/ && babel src -d lib",
8+
"lint": "eslint src/",
89
"test": "mocha --compilers js:babel-register test/**/*.test.js"
910
},
1011
"repository": {
@@ -30,6 +31,7 @@
3031
"babel-core": "^6.13.2",
3132
"babel-preset-es2015": "^6.13.2",
3233
"chai": "^3.5.0",
34+
"eslint": "^3.2.2",
3335
"mocha": "^3.0.2"
3436
}
3537
}

0 commit comments

Comments
 (0)