Created
March 11, 2020 15:44
-
-
Save gabrielsaints/3665a719c8c62cb71a1066547e4091a8 to your computer and use it in GitHub Desktop.
eslint for react - typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"parser": "@typescript-eslint/parser", | |
"plugins": ["@typescript-eslint", "react", "prettier", "babel"], | |
"extends": [ | |
"airbnb/hooks", | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint" | |
], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"env": { | |
"browser": true, | |
"jest": true | |
}, | |
"settings": { | |
"react": { | |
"version": "detect" | |
} | |
}, | |
"rules": { | |
"@typescript-eslint/no-explicit-any": "off", | |
"@typescript-eslint/no-non-null-assertion": "off", | |
"@typescript-eslint/no-unused-vars": [ | |
"error", | |
{ "argsIgnorePattern": "^_" } | |
], | |
"react/jsx-uses-react": "error", | |
"react/jsx-uses-vars": "error", | |
"@typescript-eslint/interface-name-prefix": [ | |
"error", | |
{ "prefixWithI": "always" } | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment