From 91784682a240af0407fca7cf711c825ef5aa4910 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Thu, 31 May 2018 17:27:04 -0400 Subject: [PATCH] add eslint --- .eslintrc.json | 3 +++ package.json | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..44cbe88 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "airbnb" +} \ No newline at end of file diff --git a/package.json b/package.json index fb83081..9bf0572 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "", "scripts": { "solidity-coverage": "./node_modules/.bin/solidity-coverage", - "test": "embark test" + "test": "embark test", + "lint": "eslint" }, "repository": { "type": "git", @@ -21,5 +22,12 @@ "react-blockies": "^1.3.0", "react-bootstrap": "^0.32.1", "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" } }