Skip to content

Instantly share code, notes, and snippets.

@hericke47
Created June 30, 2021 14:45
Show Gist options
  • Save hericke47/5a4fd5a83abd4863d012ba7cc113e81a to your computer and use it in GitHub Desktop.
Save hericke47/5a4fd5a83abd4863d012ba7cc113e81a to your computer and use it in GitHub Desktop.
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"__DEV__": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
"rules": {
"import/no-unresolved": "off",
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "~/**",
"group": "external"
}
]
}
],
"no-unused-expressions": "off",
"@typescript-eslint/no-use-before-define": "off",
"camelcase": "off",
"react/jsx-props-no-spreading": "off",
"no-shadow": "off",
"react/prop-types": "off",
"no-use-before-define": "off",
"react-hooks/rules-of-hooks": "error",
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment