eslint-plugin-ember
eslint-plugin-ember copied to clipboard
`no-test-import-export` false-positive with `@glint/type-test`
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.
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.