Skip to content

Commit 6f45bc5

Browse files
committed
add root:true to eslint config
1 parent b69fdd0 commit 6f45bc5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.eslintrc.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
module.exports = {
22
env: {
3-
mocha: true
3+
mocha: true,
44
},
55
plugins: ['chai-friendly'],
66
extends: ['standard', 'prettier', 'prettier/standard'],
7+
root: true,
78
rules: {
89
'no-use-before-define': 'off',
910
'no-unused-vars': [
1011
'error',
1112
{
12-
varsIgnorePattern: 'should|expect'
13-
}
13+
varsIgnorePattern: 'should|expect',
14+
},
1415
],
1516
// disable the original no-unused-expressions use chai-friendly
1617
'no-unused-expressions': 'off',
17-
'chai-friendly/no-unused-expressions': 'error'
18-
}
18+
'chai-friendly/no-unused-expressions': 'error',
19+
},
1920
};

0 commit comments

Comments
 (0)