eslint-plugin-ember icon indicating copy to clipboard operation
eslint-plugin-ember copied to clipboard

`no-test-import-export` false-positive with `@glint/type-test`

Open boris-petrov opened this issue 3 years ago • 1 comments

Doing:

import { typeTest } from '@glint/type-test';

In a test file leads to an ember/no-test-import-export warning probably because of this line. However, that's the way to do type-tests for templates so there should be an exception.

boris-petrov avatar Dec 14 '22 14:12 boris-petrov

The rule only intends to disallow importing from test file paths (ending in -test). It looks like we can just add an allowlist to the rule of common package names that are mistaken as test paths.

bmish avatar Dec 15 '22 03:12 bmish