0

I had to add two new rules prefer-const and prefer-arrow-callback, disable them. So add inside rules, but looks like the eslint stop to work, it does not format the document.

{
    "env": {
        "browser": true,
        "commonjs": true,
        "es2021": true
    },
    "extends": [
        "airbnb-base"
    ],
    "parserOptions": {
        "ecmaVersion": 12
    },
    "rules": {
        "prefer-const": false,
        "prefer-arrow-callback":false

        }
}

Did I do it right or forget anything?

Hasunohana
  • 565
  • 8
  • 22

1 Answers1

1

That's because the way you've disabled the rules is wrong i.e. you should not use false but instead use "off".

Documentation

"rules": {
    "prefer-const": "off",
    "prefer-arrow-callback": "off"
}
hendrixchord
  • 4,662
  • 4
  • 25
  • 39