Skip to content

False positive of no-import-module-exports on module property imported from package #2314

@BarryThePenguin

Description

@BarryThePenguin

Similar to #2181, I'm seeing a false positive when using qunit with ember.

qunit exports a module property that allows tests to be grouped under a module. It also has module.only(), module.skip(), and module.todo() methods that apply behaviour to all tests in that module.

import { module, test } from 'qunit'

module.skip('A module to test', function () {
  test('A test', function () {
    ...
  })
})

The no-import-modules-exports is reporting these methods as errors.

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