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.
.eslintrc
{
"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"]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment