Skip to content

Fix rule merging #55

@dubiousdavid

Description

@dubiousdavid

The following doesn't work as _.extend only accepts two args when using lodash/fp:

rules: _.extend(
    eslintBuiltinRules,
    reactRules,
    lodashFpRules,
    lodashRules,
    importRules,
    mochaRules,
    jestRules
  )

The fix is to do:

_.mergeAll(
[
    eslintBuiltinRules,
    reactRules,
    lodashFpRules,
    lodashRules,
    importRules,
    mochaRules,
    jestRules
]
  )

However, this could be dangerous because there are a ton of rules not currently being applied that could cause things to break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions