diff --git a/eslint.config.mjs b/eslint.config.mjs index c4f0d53..0449206 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,2 +1,8 @@ +import pluginChaiFriendly from 'eslint-plugin-chai-friendly'; import pluginCypress from 'eslint-plugin-cypress/flat'; -export default [pluginCypress.configs.globals, pluginCypress.configs.recommended]; + +export default [ + pluginCypress.configs.globals, + pluginCypress.configs.recommended, + pluginChaiFriendly.configs.recommendedFlat +]; diff --git a/package-lock.json b/package-lock.json index cacc6ad..3045ede 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@types/node": "^20.14.2", "cypress": "^13.15.0", "eslint": "^9.4.0", + "eslint-plugin-chai-friendly": "^1.0.1", "eslint-plugin-cypress": "^4.0.0", "prettier": "3.3.3", "typescript": "^5.4.5" @@ -1113,6 +1114,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-plugin-chai-friendly": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-chai-friendly/-/eslint-plugin-chai-friendly-1.0.1.tgz", + "integrity": "sha512-dxD/uz1YKJ8U4yah1i+V/p/u+kHRy3YxTPe2nJGqb5lCR+ucan/KIexfZ5+q4X+tkllyMe86EBbAkdlwxNy3oQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "eslint": ">=3.0.0" + } + }, "node_modules/eslint-plugin-cypress": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-4.0.0.tgz", diff --git a/package.json b/package.json index c984173..57d0ea7 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@types/node": "^20.14.2", "cypress": "^13.15.0", "eslint": "^9.4.0", + "eslint-plugin-chai-friendly": "^1.0.1", "eslint-plugin-cypress": "^4.0.0", "prettier": "3.3.3", "typescript": "^5.4.5"