Javascript: latest version of eslint-config-airbnb is not compatible with eslint 7.3.0

Created on 19 Jun 2020  路  7Comments  路  Source: airbnb/javascript

when using latest version of eslint with latest version of eslint-config-airbnb is throwing the following error:

Oops! Something went wrong! :(

ESLint: 7.3.0

Error: .eslintrc.yml 禄 eslint-config-airbnb 禄 /blablabla/node_modules/eslint-config-airbnb-base/index.js 禄 /blablabla/node_modules/eslint-config-airbnb-base/rules/imports.js:
    Configuration for rule "import/no-cycle" is invalid:
    Value null should be integer.

It seems that when parsing the rule configuration, eslint now receives:

[ 'error', { maxDepth: null, ignoreExternal: false } ]

Removing maxDepth from this line fixes the issue.

needs eslint rule changaddition

Most helpful comment

Looks like this is due to an eslint bug: https://github.com/eslint/eslint/issues/13427

I'd suggest downgrading to eslint v7.2 for now.

All 7 comments

I wonder if it has to do with the fact that when you JSON stringify Inifinity it becomes null?

Looks like this is due to an eslint bug: https://github.com/eslint/eslint/issues/13427

I'd suggest downgrading to eslint v7.2 for now.

They reverted this fix in the new [email protected], until they find a nicer solution. So if you get a similar error, try running it in ESLint 7.3.1 for now.

npm i [email protected]

No, they reverted the original config cloning change, not the band-aid hack in v7.3.1. v7.4.0 restores the pre-v7.3.0 behavior, so things should work just fine here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

progre picture progre  路  3Comments

danielfttorres picture danielfttorres  路  3Comments

stephenkingsley picture stephenkingsley  路  3Comments

ar
mbifulco picture mbifulco  路  3Comments

weihongyu12 picture weihongyu12  路  3Comments