B
B
BlondaVera2020-04-28 16:40:55
JavaScript
BlondaVera, 2020-04-28 16:40:55

Why is Eslint not working?

I can't figure out Eslint. I’ll write what I did: I
acted according to the instructions:
https://gist.github.com/bradtraversy/aab26d1e8983d...

1. I installed the Airbnb react snippets, ESLint, Prettier - Code formatter extensions in WE
2. I wrote in cmd: npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
and
npx install-peerdeps --dev eslint-config-airbnb
3. Created an .eslintrc.json file in the data root folder :

{
"extends": ["airbnb", "prettier", "plugin:node/recommended"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "off",
"class-methods-use-this": "off "
}
}

not working, what did I do wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-04-28
@HistoryART

Did you try to find it in plugins? optional - optional.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question