Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
vibern0 committed Mar 14, 2019
1 parent 16ec239 commit 4a24f61
Show file tree
Hide file tree
Showing 4 changed files with 1,741 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
node_modules
coverage
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "airbnb",
"rules": {
"indent": [
"error",
4
],
"max-len": [2, 126, 4]
},
"env": {
"mocha": true,
"es6": true
},
"globals": {
"artifacts": true,
"web3": true,
"contract": true,
"assert": true
}
}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"test": "test"
},
"scripts": {
"test": "npx truffle test --network test"
"test": "npx truffle test --network test",
"lint:js": "eslint *.js ."
},
"repository": {
"type": "git",
Expand All @@ -26,6 +27,11 @@
"chai": "4.2.0",
"chai-bignumber": "3.0.0",
"truffle": "5.0.8",
"ganache-cli": "6.4.1"
"ganache-cli": "6.4.1",
"eslint": "^5.13.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4"
}
}
Loading

0 comments on commit 4a24f61

Please sign in to comment.