Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: convert to ESLint Flat config #845

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

MikeMcC399
Copy link
Contributor

Current situation

eslint.config.mjs relies on using import { FlatCompat } from '@eslint/eslintrc' to run eslint-plugin-cypress.

Starting with eslint-plugin-cypress@3.3.0 the plugin has full support for Flat config files using:

import pluginCypress from 'eslint-plugin-cypress/flat'
export default [
  pluginCypress.configs.recommended
]

Change

  1. Remove @eslint/eslintrc
  2. Add eslint-plugin-cypress/flat

Verification

npm ci
npm run lint

@MikeMcC399 MikeMcC399 marked this pull request as ready for review June 3, 2024 17:36
@cypress-app-bot
Copy link
Collaborator

@jennifer-shehane jennifer-shehane merged commit 2edbecc into cypress-io:master Jun 3, 2024
12 checks passed
@MikeMcC399 MikeMcC399 deleted the migrate/eslint-flat branch June 3, 2024 18:00
@cypress-app-bot
Copy link
Collaborator

🎉 This PR is included in version 3.1.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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants