forked from video-dev/hls.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 819 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
env: {
node: true,
commonjs: true,
es6: true,
mocha: true,
},
plugins: ['mocha', 'node'],
globals: {
// Test globals
after: false,
afterEach: false,
assert: false,
before: false,
beforeEach: false,
describe: false,
expect: true,
sinon: false,
xit: false,
},
rules: {
'one-var': 0,
'no-undefined': 0,
'no-unused-expressions': 0,
'no-restricted-properties': [
2,
{ property: 'findIndex' }, // Intended to block usage of Array.prototype.findIndex
{ property: 'find' }, // Intended to block usage of Array.prototype.find
{ property: 'only' }, // Intended to block usage of it.only in commits
],
'node/no-restricted-require': ['error', ['assert']],
'mocha/no-mocha-arrows': 2,
},
};