Skip to content

Commit b8b45a9

Browse files
committed
Set up eslint
1 parent 830fbc4 commit b8b45a9

File tree

4 files changed

+29
-31
lines changed

4 files changed

+29
-31
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "airbnb-base"
3+
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "JavaScript FBP graph library",
55
"main": "index.js",
66
"scripts": {
7+
"pretest": "eslint *.js lib/*.js spec/*.js",
78
"test": "nyc grunt test"
89
},
910
"repository": {
@@ -29,6 +30,11 @@
2930
"babel-loader": "^8.0.4",
3031
"chai": "^4.0.1",
3132
"coveralls": "^3.0.0",
33+
"eslint": "^7.11.0",
34+
"eslint-config-airbnb-base": "^14.2.0",
35+
"eslint-plugin-chai": "0.0.1",
36+
"eslint-plugin-import": "^2.22.1",
37+
"eslint-plugin-mocha": "^8.0.0",
3238
"fbp-loader": "^0.1.1",
3339
"grunt": "^1.0.1",
3440
"grunt-karma": "^4.0.0",

spec/.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "airbnb-base",
3+
"plugins": [
4+
"chai",
5+
"mocha"
6+
],
7+
"env": {
8+
"node": true,
9+
"mocha": true
10+
},
11+
"rules": {
12+
"func-names": 0
13+
},
14+
"globals": {
15+
"baseDir": false,
16+
"chai": false,
17+
"noflo": false,
18+
"window": false
19+
}
20+
}

spec/runner.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)