Nice way to get rid of no-unused-expressions linter error with chai
You can disable the rule for the entire file using eslint-disable at the top of the file in question: /* eslint-disable no-unused-expressions */ expect(someTrueValue).to.be.true; However, adding this at the top of every test file can be tedious. To disable this rule for all relevant files, you can: Put a new .eslintc configuration file in the … Read more