avajs / eslint-plugin-ava

ESLint rules for AVA
https://avajs.dev
MIT License
230 stars 49 forks source link

`use-test`: Allow import statements without default specifier #320

Closed exodustx0 closed 2 years ago

exodustx0 commented 3 years ago

The use-test rule is triggered even if the import statement does not include a default specifier:

import type { TestInterface } from 'ava'; // "AVA should be imported as `test`."

Not a high priority issue I don't think, but it should be a quick fix, and ensure that use-test only concerns itself with test, not anything else.

sindresorhus commented 3 years ago

If anyone wants to work on this, see the initial attempt in https://github.com/avajs/eslint-plugin-ava/pull/321.