You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an `.eslintrc` file to your `cypress` directory with the following:
15
+
Add an `.eslintrc.json` file to your `cypress` directory with the following:
16
16
17
17
```json
18
-
// my-project/cypress/.eslintrc
18
+
// my-project/cypress/.eslintrc.json
19
19
20
20
{
21
21
"plugins": [
@@ -26,3 +26,26 @@ Add an `.eslintrc` file to your `cypress` directory with the following:
26
26
}
27
27
}
28
28
```
29
+
30
+
## Chai and `no-unused-expressions`
31
+
32
+
Using an assertion such as `expect(value).to.be.true` can fail the ESLint rule `no-unused-expressions` even though it's not an error in this case. To fix this, you can install and use [eslint-plugin-chai-friendly](https://www.npmjs.com/package/eslint-plugin-chai-friendly).
0 commit comments