Skip to content

Commit

Permalink
disabled @typescript-eslint/no-unused-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
karmaniverous committed Aug 31, 2024
1 parent 75f0cdf commit 251c86c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default tseslint.config(
},
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'mocha/no-skipped-tests': 'off',
'mocha/no-top-level-hooks': 'off',
Expand Down
6 changes: 4 additions & 2 deletions src/foo.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* eslint-env mocha */

import { expect } from 'chai';

import { foo } from './';

describe('foo', function () {
it('should allow expression assertions', function () {
expect(true).to.be.true;
});

it('should prefix bar', function () {
expect(foo('bar')).to.equal('foo bar');
});
Expand Down

0 comments on commit 251c86c

Please sign in to comment.