Skip to content

Commit 260e454

Browse files
committed
chore: disable no-unused-expressions for test files
Chai expect() triggers no-unused-expressions in Standard. Override for test/**/*.js so test files don't need eslint-disable on every expect().
1 parent ade22b1 commit 260e454

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,13 @@ module.exports = {
2020
'promise'
2121
],
2222
rules: {
23-
}
23+
},
24+
overrides: [
25+
{
26+
files: ['test/**/*.js'],
27+
rules: {
28+
'no-unused-expressions': 'off'
29+
}
30+
}
31+
]
2432
}

0 commit comments

Comments
 (0)