-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: add flat configurations #212
feat: add flat configurations #212
Conversation
|
fc24f35
to
6ed8cd5
Compare
Documentation Preview |
|
c4e322b
to
4d9b581
Compare
@MikeMcC399 Is this ready for review? It is still marked as draft. |
I just realized that the import statements in the documentation are inconsistent, so I wanted to go back and rework to avoid that confusion. Unfortunately there is no consistency in the ESLint ecosystem about this. |
4d9b581
to
edb90e0
Compare
The commits are squashed and the PR is ready for review. |
convert globals test to use legacy config
edb90e0
to
0e434c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to hit the approve button on this one
🎉 This PR is included in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Issue
eslint-plugin-cypress@3.2.0 added support for the use of Flat config files with ESLint
8.57.0
and above through the compatibility utility @eslint/eslintrc.To fully support Flat config files the plugin needs to provide corresponding configurations which do not rely on any compatibility utility.
Goals
eslint.config.*.js
). The new configurations should be based on the existing.eslintrc.*
configurations..eslintrc.*
)Changes
eslint-plugin-cypress/flat
:configs.globals
cy
,Cypress
,expect
,assert
andchai
used in Cypress test specs as well asglobals.browser
andglobals.mocha
from globals. Additionally,languageOptions
ofecmaVersion: 2019
andsourceType: 'module'
for backwards compatibility with earlier versions of this plugin are defined. There are no default rules enabled in this configuration.configs.recommended
configs.global
(see above)