/* # Airbnb is putting everything on error which makes it hard to spot JavaScript errors: https://github.com/airbnb/javascript/issues/853 # Work-around, move everything from error to warn: find node_modules/eslint-config-airbnb -name '*.js'|xargs sed -i 's/\[2,/\[1,/' find node_modules/eslint-config-airbnb -name '*.js'|xargs sed -i "s/': 2/': 1/" */ { "extends": "airbnb", "parser": "babel-eslint", "env": { "browser": true, "node": true, "es6": true, "jest": true }, "rules": { "max-len": 0, /*[1, 160, 4],*/ "comma-dangle": 0, "semi": [ 2 ], "curly": [ 1 ], "one-var": [ 0 ], "eqeqeq": 0, "no-cond-assign": 0, "react/wrap-multilines": [ 0 ], "one-var-declaration-per-line": [ 0 ], "no-param-reassign": [ 0 ], "no-nested-ternary": [ 0 ], "import/no-dynamic-require": 1, "global-require": 1, "prefer-destructuring": 0, "react/no-unused-state": 1, "no-unused-expressions": 1, "react/no-string-refs": 1, "no-restricted-syntax": 0, "no-undef": 2, "no-case-declarations": 0, "no-underscore-dangle": 0, "no-inner-declarations": 1, "camelcase": [ 0 ], "no-console": [ 0 ], "padded-blocks": 0, "object-curly-spacing": [ 0 ], "class-methods-use-this": 0, "react/no-array-index-key": 1, "react/no-find-dom-node": 1, "react/jsx-props-no-spreading": 1, "react/static-property-placement": 1, "react/forbid-prop-types": 1, "react/require-default-props": 1, "react/destructuring-assignment": 0, "react/jsx-indent": [ 1, 4 ], "react/jsx-indent-props": [ 1, 4 ], "react/jsx-closing-bracket-location": [ 0 ], "jsx-a11y/no-noninteractive-element-interactions": 1, "jsx-a11y/accessible-emoji": 0, "jsx-a11y/click-events-have-key-events": 0, "jsx-a11y/label-has-associated-control": 0, "consistent-return": 1, "no-use-before-define": [ 0, { "functions": false, "classes": false } ], "spaced-comment": [ 0 ], "prefer-template": [ 0 ], "new-cap": [ 0 ], "arrow-body-style": [ 0 ], "func-names": [ 0 ], "no-return-assign": 0, "no-redeclare": 1, "eol-last": 0, "no-loop-func": 0, "no-unneeded-ternary": 0, // false trigger const b = b ? b : a /* Nice to haves */ /*"quotes": [1, "single", "avoid-escape"],*/ "quotes": 0, /*"indent", [1,4], */ "indent": 0, "brace-style": 0, "space-infix-ops": 0, "keyword-spacing": 0, "no-confusing-arrow": 0, "space-in-parens": 0, "no-throw-literal": 0, "react/sort-comp": [ 1, { "order": [ "lifecycle" ] } ], "react/prefer-stateless-function": 0, "react/prop-types": 0, "radix": 0, "jsx-a11y/href-no-hash": "off", "jsx-a11y/anchor-is-valid": [ "warn", { "aspects": [ "invalidHref" ] } ], "import/no-extraneous-dependencies": 0, "import/no-unresolved": 0, "import/extensions": 0 }, "overrides": [ { "files": [ "**/*.test.js", "**/*.test.jsx" ], "env": { "jest": true } } ] }