Customizing the eslint rules for create react app
BlogReactHooksNovember 25, 2018
I have been doing a bit with React Hooks recently, and wanted to enable the ESLint rules. It took a little bit to figure this out because when I added the .eslintrc file to the root of my project I began getting parcer errors.
What I needed to do with add was this to my .eslintrc file: "extends": "react-app"
Like this:
{
"extends": "react-app",
"plugins": [
"react-hooks"
],
"rules":{
"react-hooks/rules-of-hooks": "error"
}
}