Skip to content

Instantly share code, notes, and snippets.

@mradbourne
Created November 26, 2016 14:42
Show Gist options
  • Save mradbourne/8536e83b4ed1ec1d4e233909e1a772d2 to your computer and use it in GitHub Desktop.
Save mradbourne/8536e83b4ed1ec1d4e233909e1a772d2 to your computer and use it in GitHub Desktop.

Revisions

  1. Matt Radbourne created this gist Nov 26, 2016.
    81 changes: 81 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,81 @@
    {
    "parser": "babel-eslint",
    "extends": "airbnb",
    "env": {
    "browser": true,
    "node": true,
    "mocha": true,
    "es6": true
    },
    "plugins": [
    "react",
    "jsx-a11y"
    ],
    "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module",
    "ecmaFeatures": {
    "jsx": true
    }
    },
    "rules": {
    "arrow-parens": [
    "error",
    "always"
    ],
    "arrow-body-style": [
    2,
    "as-needed"
    ],
    "comma-dangle": [
    0,
    "always-multiline"
    ],
    "no-underscore-dangle": [
    0
    ],
    "import/imports-first": 0,
    "import/newline-after-import": 0,
    "import/no-extraneous-dependencies": 0,
    "import/no-named-as-default": 0,
    "import/no-unresolved": 2,
    "import/prefer-default-export": 0,
    "indent": [
    2,
    2,
    {
    "SwitchCase": 1
    }
    ],
    "jsx-a11y/aria-props": 2,
    "jsx-a11y/heading-has-content": 0,
    "jsx-a11y/href-no-hash": 2,
    "jsx-a11y/label-has-for": 2,
    "jsx-a11y/mouse-events-have-key-events": 2,
    "jsx-a11y/role-has-required-aria-props": 2,
    "jsx-a11y/role-supports-aria-props": 2,
    "max-len": 0,
    "newline-per-chained-call": 0,
    "no-console": 1,
    "no-use-before-define": 0,
    "prefer-template": 2,
    "class-methods-use-this": 0,
    "react/forbid-prop-types": 0,
    "react/jsx-first-prop-new-line": [
    2,
    "multiline"
    ],
    "react/jsx-filename-extension": 0,
    "react/jsx-no-target-blank": 0,
    "react/require-extension": 0,
    "react/self-closing-comp": 0,
    "require-yield": 0
    },
    "settings": {
    "import/resolver": {
    "webpack": {
    "config": "./internals/webpack/webpack.test.js"
    }
    }
    }
    }