-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.js
44 lines (41 loc) · 1.15 KB
/
.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
35
36
37
38
39
40
41
42
43
44
'use strict';
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 9
},
env: {
node: true,
es6: true,
},
// plugins: ['node', 'promise', 'unicorn'],
extends: 'pedant',
overrides: [
{
files: ['*.test.js'],
env: { mocha: true },
globals: { 'utils': true },
rules: {
'no-unused-expressions': 0
}
},
{
files: ['*.spec.js'],
globals: { 'lib': true, 'utils': true },
rules: {
'no-unexpected-multiline': 'no',
'no-unused-expressions': 0
}
},
{
files: ['*.bench.js'],
globals: { 'suite': true, 'set': true, 'bench': true }
}
],
rules: {
/* Strict Mode ========================================================================= */
/* http://eslint.org/docs/rules/#strict-mode */
/* ===================================================================================== */
'strict': ['error', 'safe']
}
};