I\'m using React
and ESLint
with eslint-plugin-react
.
I want to disable
the prop-types
rule in one f
I had to do:
/* eslint react/forbid-prop-types: 0 */
this did not work for me:
/* eslint react/prop-types: 0 */
To disable globally in your .eslintrc file (old version v6.0 or below):
{
"rules": {
"react/forbid-prop-types": 0
}
}
To disable globally in your .eslintrc file (new version above v6.0):
{
"rules": {
"react/prop-types": 0
}
}