.eslintrc

Summary

Maintainability
Test Coverage
{
  "extends": ["./node_modules/@waveshq/standard-web-linter"],
  "rules": {
    // Temporary warning as moving from Standard to Airbnb
    "react/destructuring-assignment": "off",
    "react/no-unused-prop-types": "warn",
    "@typescript-eslint/no-use-before-define": "off",
    "react-hooks/exhaustive-deps": "off",
    "react/jsx-no-constructed-context-values": "off",
    "jsx-a11y/click-events-have-key-events": "off",
    "jsx-a11y/no-static-element-interactions": "off",
    "no-nested-ternary": "off",
    "arrow-body-style": "off",
    "no-restricted-syntax": "off",
    "import/prefer-default-export": "off",
    "no-param-reassign": "off",
    "prefer-destructuring": "off",
    "react/jsx-no-useless-fragment": "off",
    "object-shorthand": "off",
    "@typescript-eslint/no-shadow": "off",
    "no-else-return": "off",
    "react/no-unescaped-entities": "off",
    "default-case": "off",
    "no-unsafe-optional-chaining": "off",
    "react/no-array-index-key": "off",
    "no-restricted-globals": "off",
    "no-await-in-loop": "off",
    "consistent-return": "off",
    "react/no-unstable-nested-components": "off",
    "react/jsx-no-bind": "off",
    "no-restricted-properties": "off",
    "prefer-exponentiation-operator": "off",
    "@typescript-eslint/return-await": "off",
    "import/no-cycle": "off",
    "@typescript-eslint/naming-convention": "off",
    "@typescript-eslint/no-unused-expressions": "off",
    "no-underscore-dangle": "off",
    "global-require": "off",
    "curly": ["error", "all"],
    "brace-style": ["error", "1tbs"],
    "func-style": [2, "declaration"],
    "no-void": "off",
    "import/no-default-export": "error",
    "multiline-ternary": "off",
    "jsx-a11y/mouse-events-have-key-events": "off",
    "no-restricted-imports": [
      "error",
      {
        "name": "next/link",
        "message": "Please use @components/commons/Link instead."
      },
      {
        "name": "next/head",
        "message": "Please use @components/commons/Head instead."
      }
    ]
  },
  "overrides": [
    {
      "files": ["src/pages/**/*.page.tsx"],
      "rules": {
        "import/no-default-export": "off"
      }
    }
  ]
}