Skip to content

Instantly share code, notes, and snippets.

@lucax88x
Created March 17, 2021 14:56
Show Gist options
  • Save lucax88x/ad667cec2a7a24c15ff17e48e517ca0f to your computer and use it in GitHub Desktop.
Save lucax88x/ad667cec2a7a24c15ff17e48e517ca0f to your computer and use it in GitHub Desktop.

Revisions

  1. lucax88x created this gist Mar 17, 2021.
    51 changes: 51 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    {
    "env": {
    "browser": true,
    "es2021": true,
    "jest": true
    },
    "extends": [
    "plugin:react/recommended",
    "plugin:react-hooks/recommended",
    "airbnb",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier",
    "prettier/react"
    ],
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
    "ecmaFeatures": {
    "jsx": true
    },
    "ecmaVersion": 12,
    "sourceType": "module"
    },
    "plugins": ["react", "react-hooks", "@typescript-eslint"],
    "rules": {
    "react/react-in-jsx-scope": "off",
    "react/jsx-filename-extension": [
    1,
    { "extensions": [".js", ".jsx", ".ts", ".tsx"] }
    ],
    "react/display-name": "off",
    "react/prop-types": "off",
    "react/forbid-prop-types": "off",
    "no-extra-boolean-cast": "off",
    "react/jsx-props-no-spreading": "off",
    "react/require-default-props": "off",
    "@typescript-eslint/no-explicit-any": "error",
    "@typescript-eslint/explicit-function-return-type": "off",
    "@typescript-eslint/explicit-module-boundary-types": "off",
    "import/prefer-default-export": "off",
    "import/no-unresolved": "off",
    "import/extensions": "off",
    "implicit-arrow-linebreak": "off",
    "no-console": [
    "error",
    {
    "allow": ["warn", "error"]
    }
    ]
    }
    }