cypress-io / cypress-example-kitchensink

This is an example app used to showcase Cypress.io testing.
https://example.cypress.io/
MIT License
1.2k stars 2.2k forks source link

test: convert to ESLint Flat config #845

Closed MikeMcC399 closed 3 months ago

MikeMcC399 commented 3 months ago

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
cypress-app-bot commented 3 months ago
cypress-app-bot commented 2 months ago

:tada: This PR is included in version 3.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: