Skip to content

Conversation

@MikeMcC399
Copy link
Collaborator

Issue

eslint-plugin-n produces a false positive when executing:

npx eslint

with the error:

cypress-io/eslint-plugin-cypress/eslint.config.mjs
  1:1  error  Parsing error: 'import' and 'export' may appear only with 'sourceType: module'

This is false - see Node.js ESM enabling:

Authors can tell Node.js to interpret JavaScript as an ES module via the .mjs file extension ...

Change

Remove eslint-plugin-n from the linting configuration. It can be re-added if the above issue is resolved.

@MikeMcC399 MikeMcC399 added the bug label Mar 3, 2025
@MikeMcC399 MikeMcC399 self-assigned this Mar 3, 2025
@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 marked this pull request as ready for review March 3, 2025 14:22
@jennifer-shehane jennifer-shehane merged commit 9f2b565 into cypress-io:master Mar 3, 2025
8 checks passed
@MikeMcC399 MikeMcC399 deleted the remove/eslint-plugin-n branch March 3, 2025 14:47
@jennifer-shehane
Copy link
Member

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants