C
C
cester2018-02-26 18:12:23
JavaScript
cester, 2018-02-26 18:12:23

How to remove eslint warnings with one command?

Good afternoon! Please tell me who knows how to fix this with the team?
for example, such yarn run eslint -- --fix
5a942337e1a6e724580643.png
an Ono, in principle, does not interfere, but I would like to take it away.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-02-26
@cester

Install prettier .
Add it to .eslintrc :

{
  "extends": [
    "airbnb",
    "prettier",
  ],
  "plugins": [
    "prettier"
  ],
  "parser": "babel-eslint"
}

You can fix the code with the command:
prettier --write

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question