Answer the question
In order to leave comments, you need to log in
Eslint best practices?
Good afternoon! Please tell me if there is any .eslintrc file that would describe Best practices or set recommended settings? Or suggest something better.
Thank you)
Answer the question
In order to leave comments, you need to log in
In many articles I see the config from airbnb, the list of rules is here
In .eslintrc there is an opportunity to "inherit the config". For example,
{
"extends": "eslint:recommended", // унаследовали от eslint:recommended
...
"rules": { // переопределили/добавили свои правила
"no-debugger": 0,
"no-console": 0,
...
}
}
maybe not the best advice but works for me https://github.com/facebookincubator/create-react-app
there and webpack is configured and eslint and more.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question