Skip to content

Bug 馃悰: node/no-missing-imports fails聽#2864

Closed

Description

@jasikpark

Please provide details about:

  • What you're trying to do
  • What happened
  • What you expected to happen

Please share relevant sample code. Or better yet, provide a link to a minimal reproducible example.

We'll also need your AVA configuration (in package.json or ava.config.* configuration files) and how you're invoking AVA. Share the installed AVA version (get it by running npx ava --version).

yarn ava --version returns 0.0.8 though I have "ava": "^4.0.0-alpha.2", listed in my devDependencies

I'm using ava for prettier-plugin-astro, and I've run into a problem where eslint:node/no-missing-imports is failing for me, I believe because ava 4 does not define a main key? I'm not quite sure though. If I use import test from 'ava/entrypoints/main.mjs'; the lint is happy though.

Is there something I can improve with my setup to fix this rule other than hardcoding the file import / disabling the rule for that line?

Activity

  1. changed the title [-]`node/no-missing-imports` fails[/-] [+]Bug 馃悰: `node/no-missing-imports` fails[/+] on Oct 8, 2021
  2. locked and limited conversation to collaborators on Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions