add eslint

This commit is contained in:
Barry Gitarts 2018-05-31 17:27:04 -04:00
parent 16c4e342c2
commit 91784682a2
2 changed files with 12 additions and 1 deletions

3
.eslintrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "airbnb"
}

View File

@ -4,7 +4,8 @@
"description": "", "description": "",
"scripts": { "scripts": {
"solidity-coverage": "./node_modules/.bin/solidity-coverage", "solidity-coverage": "./node_modules/.bin/solidity-coverage",
"test": "embark test" "test": "embark test",
"lint": "eslint"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -21,5 +22,12 @@
"react-blockies": "^1.3.0", "react-blockies": "^1.3.0",
"react-bootstrap": "^0.32.1", "react-bootstrap": "^0.32.1",
"react-dom": "^16.3.2" "react-dom": "^16.3.2"
},
"devDependencies": {
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.8.2"
} }
} }