diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index e67102ed4..000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = { - "extends": "airbnb", - "plugins": [ - "react", - "jsx-a11y", - "import" - ], - "rules" : { - "max-len": [2, 120, 2], - "no-underscore-dangle": 0, - "global-require": 0, - "guard-for-in": 0, - "no-restricted-syntax": 0, - "no-param-reassign": 0, - "consistent-return": 0, - "import/no-extraneous-dependencies": 0, - "no-continue": 0, - "no-confusing-arrow" : 0 - } -}; \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..4312e2c44 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,20 @@ +{ + "extends": "airbnb", + "plugins": [ + "import", + "react", + "jsx-a11y" + ], + "rules": { + "max-len": [2, 120, 2], + "no-underscore-dangle": 0, + "global-require": 0, + "guard-for-in": 0, + "no-restricted-syntax": 0, + "no-param-reassign": 0, + "consistent-return": 0, + "import/no-extraneous-dependencies": 0, + "no-continue": 0, + "no-confusing-arrow" : 0 + } +} diff --git a/package.json b/package.json index f974f5b2a..3f1c7148e 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,12 @@ }, "devDependencies": { "fs-extra": "^0.30.0", - "jsdoc-parse": "^1.2.7" + "jsdoc-parse": "^1.2.0", + "eslint": "^3.4.0", + "eslint-config-airbnb": "^10.0.0", + "eslint-plugin-import": "^1.14.0", + "eslint-plugin-react": "^6.2.0", + "eslint-plugin-jsx-a11y": "^2.2.0" }, "optionalDependencies": { "node-opus": "^0.1.13"