-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
61 lines (57 loc) · 1.61 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const OFF = 0;
const ERROR = 2;
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
},
extends: [
'airbnb-base',
'plugin:eslint-comments/recommended',
'plugin:node/recommended-script',
'plugin:promise/recommended',
'plugin:mocha/recommended',
'prettier',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
rules: {
'eslint-comments/disable-enable-pair': [ERROR, { allowWholeFile: true }],
'mocha/no-mocha-arrows': OFF,
'promise/always-return': OFF,
'promise/catch-or-return': OFF,
'array-callback-return': OFF,
'consistent-return': OFF,
'func-names': OFF,
'global-require': OFF,
'import/newline-after-import': OFF,
'import/no-dynamic-require': OFF,
'lines-between-class-members': OFF,
'max-classes-per-file': OFF,
'no-bitwise': OFF,
'no-caller': OFF,
'no-console': OFF,
'no-empty': OFF,
'no-eval': OFF,
'no-extend-native': OFF,
'no-multi-assign': OFF,
'no-param-reassign': OFF,
'no-plusplus': OFF,
'no-proto': OFF,
'no-prototype-builtins': OFF,
'no-restricted-globals': OFF,
'no-restricted-properties': OFF,
'no-restricted-syntax': OFF,
'no-shadow': OFF,
'no-underscore-dangle': OFF,
'no-unused-expressions': OFF,
'no-unused-vars': OFF,
eqeqeq: [ERROR, 'smart'],
},
};