B
B
bpGusar2019-10-09 16:40:47
JavaScript
bpGusar, 2019-10-09 16:40:47

What could happen to eslint that it went crazy and started showing errors where everything was normal 5 minutes ago?

What could happen to eslint that it went crazy and started showing errors where everything was normal 5 minutes ago?
I didn’t touch anything, I just wrote the code and then, after the next rebuild, he just went berserk and started showing errors where they never were.
My config:

{
  "extends": ["airbnb", "plugin:prettier/recommended", "prettier/react"],
  "plugins": ["react", "prettier"],
  "rules": {
    "react/jsx-props-no-spreading": "off",
    "no-underscore-dangle": "off",
    "consistent-return": "off",
    "array-callback-return": "off",
    "func-names": "off",
    "react/jsx-filename-extension": [
      1,
      {
        "extensions": [".js", "jsx"]
      }
    ],
    "prettier/prettier": "error",
    "max-len": ["error", 9999],
    "react/prop-types": [0],
    "import/no-unresolved": "off",
    "no-console": "warn",
    "no-param-reassign": 0
  },
  "env": {
    "browser": true,
    "commonjs": true,
    "es6": true,
    "jest": true,
    "node": true
  }
}

Again, I didn't touch anything. The config was like this a week ago, the last change was 6 days ago, and everything worked and then it just stopped.
I am using VS Code. Maybe because of him? What a nonsense!
5d9deecc58663274532462.jpeg
5d9deed16a4e2071299318.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bpGusar, 2019-10-11
@bpGusar

The problem was solved by adding babel-eslint to the .eslintrc file

S
Sunflowerz, 2019-10-11
@Sunflowerz

Update webstorm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question