Skip to content

import/order with named fails when exporting uses spread operator. #3145

Description

@UnderKoen

Rule:

'import/order': [
  'warn',
  {
    named: true,
  },
],

minimal repro case:

const test = {
  a: 1,
  browser: 2,
};

module.exports = {
  ...test,
  target: 'node',
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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