summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorAdam Harvey <adam@ahprojects.com>2018-12-23 01:37:03 +0100
committerAdam Harvey <adam@ahprojects.com>2018-12-23 01:37:03 +0100
commit4452e02e8b04f3476273574a875bb60cfbb4568b (patch)
tree3ffa44f9621b736250a8b94da14a187dc785c2fe /.eslintrc.js
parent2a65f7a157bd4bace970cef73529867b0e0a374d (diff)
parent5340bee951c18910fd764241945f1f136b5a22b4 (diff)
.
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 00000000..364bcad6
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,49 @@
+module.exports = {
+ "extends": [
+ "airbnb-base",
+ "plugin:react/recommended"
+ ],
+ "plugins": [
+ "import",
+ "react",
+ "class-property"
+ ],
+ "parser": "babel-eslint",
+ "parserOptions": {
+ "ecmaFeatures": {
+ "jsx": true,
+ "classes": true,
+ }
+ },
+ "rules": {
+ "react/prop-types": 1,
+ "react/jsx-uses-vars": 2,
+ "no-underscore-dangle": 0,
+ "comma-dangle": ["error", "only-multiline"],
+ "semi": ["error", "never"],
+ "prefer-const": "off",
+ "no-plusplus": "off",
+ "no-param-reassign": 0,
+ "no-return-assign": 0,
+ "global-require": 0,
+ "arrow-parens": 0,
+ "prefer-template": 0,
+ "no-nested-ternary": 0,
+ "no-mixed-operators": 0,
+ "no-confusing-arrow": 0,
+ "prefer-arrow-callback": 0,
+ "prefer-arrow-callback": 0,
+ "func-names": 0,
+ "object-curly-newline": 0,
+ "class-methods-use-this": 0,
+ "quotes": "off",
+ },
+ "env": {
+ "browser": true,
+ "mocha": true,
+ },
+ "globals" : {
+ "assert": false,
+ "web3": false
+ },
+};