Last active
January 7, 2021 02:07
-
-
Save danieljpgo/f158b2300616ef1d9ded512d5f07ac3c to your computer and use it in GitHub Desktop.
Eslint Config - Airbnb Style Guide - React 17
This file contains 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
{ | |
"env": { | |
"browser": true, | |
"es2021": true, | |
"jest": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"airbnb" | |
], | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 12, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react", | |
"@typescript-eslint" | |
], | |
"rules": { | |
"no-unused-vars": "off", | |
"@typescript-eslint/no-unused-vars": [ | |
"error" | |
], | |
"import/prefer-default-export": "off", | |
"import/extensions": "off", | |
"react/jsx-uses-react": "off", | |
"react/react-in-jsx-scope": "off", | |
"react/require-default-props": "off", | |
"react/jsx-props-no-spreading": "off", | |
"react/prop-types": "off", | |
"react/jsx-filename-extension": [ | |
"error", | |
{ | |
"extensions": [ | |
".jsx", | |
".tsx" | |
] | |
} | |
] | |
}, | |
"settings": { | |
"import/resolver": { | |
"node": { | |
"extensions": [ | |
".js", | |
".jsx", | |
".ts", | |
".tsx", | |
".json" | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment