C
C
ch-aqwer2017-01-17 14:24:10
JavaScript
ch-aqwer, 2017-01-17 14:24:10

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

2 answer(s)
M
Maxim, 2017-01-17
@ch-aqwer

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,
    ...
  }
}

O
Oleg Gamega, 2017-01-17
@gadfi

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 question

Ask a Question

731 491 924 answers to any question