Skip to content

config for rule "arrow-parens" is invalid [v11.1.0] #1085

@smilingpoplar

Description

@smilingpoplar

After updating to eslint-config-airbnb v11.1.0, I encounter error:

Error: <my_dir>/node_modules/eslint-config-airbnb-base/rules/es6.js:
    Configuration for rule "arrow-parens" is invalid:
    Value "as-needed,[object Object]" has more items than allowed.

What's the problem? My .eslintrc:

{
  "extends": "airbnb",
  "parser": "babel-eslint",
  "rules": {
    "eqeqeq": [2, "allow-null"],
    "func-names": 0,
    "no-param-reassign": 0,
    "new-cap": 0,
    "max-len": 0,
    "no-console": 0,
    "no-case-declarations": 0,
    "consistent-return": 0,
    "global-require": 0,

    "react/jsx-indent-props": 0,
    "react/jsx-closing-bracket-location": 0,
    "react/jsx-no-bind": 0,
    "react/sort-comp": 0,
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions