Last active
January 9, 2022 21:56
-
-
Save rajeshdavidbabu/78059aa9a7acf526319970b0454f84e0 to your computer and use it in GitHub Desktop.
eslintrc.js for React-TS Boilerplate
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
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
plugins: ['@typescript-eslint', 'react-hooks'], | |
extends: [ | |
'plugin:react/recommended', | |
'plugin:react-hooks/recommended', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended', | |
], | |
rules: { | |
'react/prop-types': 'off', | |
'react-hooks/rules-of-hooks': 'error', | |
'react-hooks/exhaustive-deps': [ | |
'warn', | |
{ | |
additionalHooks: '(useRecoilCallback|useRecoilTransaction_UNSTABLE)', | |
}, | |
], | |
}, | |
settings: { | |
react: { | |
pragma: 'React', | |
version: 'detect', | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment