GSA/code-gov-front-end

View on GitHub
.eslintrc

Summary

Maintainability
Test Coverage
{
  "extends": ["airbnb", "prettier", "prettier/react"],
  "globals": {
    "document": true,
    "window": true
  },
  "env": {
    "jest": true
  },
  "parser": "babel-eslint",
  "plugins": ["prettier"],
  "rules": {
    "camelcase": "warn",
    "class-methods-use-this": "warn",
    "comma-dangle": 0,
    "consistent-return": [
      "warn",
      {
        "treatUndefinedAsUnspecified": true
      }
    ],
    "getter-return": 0,
    "global-require": "warn",
    "guard-for-in": "warn",
    "import/extensions": "ignorePackages",
    "import/imports-first": ["absolute-first", "error"],
    "import/newline-after-import": "error",
    "import/no-dynamic-require": "warn",
    "import/no-unresolved": 0,
    "import/prefer-default-export": false,
    "jsx-a11y/anchor-is-valid": "warn",
    "jsx-a11y/label-has-associated-control": "warn",
    "jsx-a11y/click-events-have-key-events": "warn",
    "jsx-a11y/label-has-for": "warn",
    "jsx-a11y/no-noninteractive-tabindex": "warn",
    "jsx-a11y/no-static-element-interactions": "warn",
    "jsx-a11y/tabindex-no-positive": "warn",
    "no-bitwise": "warn",
    "no-case-declarations": "warn",
    "no-console": "off",
    "no-param-reassign": [
      "warn",
      {
        "props": false
      }
    ],
    "no-plusplus": [
      "error",
      {
        "allowForLoopAfterthoughts": true
      }
    ],
    "no-restricted-syntax": ["error", "BinaryExpression[operator='in']", "WithStatement"],
    "no-script-url": "warn",
    "no-shadow": "warn",
    "no-template-curly-in-string": "warn",
    "no-undef": "warn",
    "no-underscore-dangle": 0,
    "no-useless-constructor": "warn",
    "no-unused-vars": 0,
    "prefer-destructuring": 0,
    "react/button-has-type": "never",
    "react/destructuring-assignment": "never",
    "react/jsx-filename-extension": [
      1,
      {
        "extensions": [".js", ".jsx"]
      }
    ],
    "react/jsx-no-bind": "never",
    "react/prefer-stateless-function": ["warn", { "ignorePureComponents": true }],
    "react/no-access-state-in-setstate": "warn",
    "react/no-did-update-set-state": "never",
    "react/no-string-refs": "warn",
    "react/prop-types": 0,
    "semi": [2, "never"]
  }
}