-
When scaffolding with Should we add it? If we decide to go for it, here is what is needed:
{
"root": true,
"parser": "@typescript-eslint/parser",
- "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
+ "extends": [
+ "eslint:recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:react/recommended"
+ ],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
+ },
+ "settings": {
+ "react": {
+ "version": "detect"
+ }
}
} (you get a warning when running eslint if you don't add the react version settings, pointing you at https://github.com/jsx-eslint/eslint-plugin-react#configuration ) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
👍 yes we probably should! |
Beta Was this translation helpful? Give feedback.
-
Fixed by #204 |
Beta Was this translation helpful? Give feedback.
Fixed by #204