UNPKG

469 BJavaScriptView Raw
1module.exports = {
2 env: {
3 mocha: true,
4 },
5 plugins: ['chai-friendly'],
6 extends: ['standard', 'prettier', 'prettier/standard'],
7 root: true,
8 rules: {
9 'no-use-before-define': 'off',
10 'no-unused-vars': [
11 'error',
12 {
13 varsIgnorePattern: 'should|expect',
14 },
15 ],
16 // disable the original no-unused-expressions use chai-friendly
17 'no-unused-expressions': 'off',
18 'chai-friendly/no-unused-expressions': 'error',
19 },
20};