Disable Es-Lint rule
hello how can i disable the following rule?
eslintimport/no-anonymous-default-export
i tried with the following .eslintrc.cjs file:
Solution:Jump to solution
Here's the fix:
i needed to put "off" in an array
+ the correct eslint rule is :
import/no-anonymous-default-export
+ also needed to disable react/display-name
...2 Replies
basically i added this on rules:
"@import/no-anonymous-default-export": "off",
but it didnt disable
Solution
Here's the fix:
i needed to put "off" in an array
+ the correct eslint rule is :
import/no-anonymous-default-export
+ also needed to disable react/display-name
corrected config file :