Skip to content

Commit 5210ab9

Browse files
Merge pull request #237 from MikeMcC399/update/chai-friendly-example
docs: update chai-friendly flat example
2 parents 2097c42 + af7ce9e commit 5210ab9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FLAT-CONFIG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,20 @@ export default [
121121

122122
### Cypress and Chai recommended
123123

124-
[eslint-plugin-chai-friendly](https://www.npmjs.com/package/eslint-plugin-chai-friendly) (minimum version [eslint-plugin-chai-friendly@0.8.0](https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v0.8.0) required for ESLint v9 support and flat config support) is combined with the Cypress plugin `eslint-plugin-cypress`.
124+
[eslint-plugin-chai-friendly](https://www.npmjs.com/package/eslint-plugin-chai-friendly) is combined with the Cypress plugin `eslint-plugin-cypress`.
125125

126-
The recommended rules for both plugins are used: `pluginCypress.configs.recommended` and `pluginChaiFriendly.configs.recommended`:
126+
The recommended rules for both plugins are used: `pluginCypress.configs.recommended` and `pluginChaiFriendly.configs.recommendedFlat`:
127127

128128
```shell
129-
npm install eslint-plugin-chai-friendly@^0.8.0 --save-dev
129+
npm install eslint-plugin-chai-friendly@^1.0.1 --save-dev
130130
```
131131

132132
```js
133133
import pluginCypress from 'eslint-plugin-cypress/flat'
134134
import pluginChaiFriendly from 'eslint-plugin-chai-friendly'
135135
export default [
136136
pluginCypress.configs.recommended,
137-
pluginChaiFriendly.configs.recommended,
137+
pluginChaiFriendly.configs.recommendedFlat,
138138
{
139139
rules: {
140140
'cypress/no-unnecessary-waiting': 'off',

0 commit comments

Comments
 (0)