-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.cjs
56 lines (50 loc) · 1.12 KB
/
.eslintrc.cjs
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
// @ts-nocheck
module.exports = {
root: true,
parserOptions: {
ecmaVersion: '2020',
sourceType: 'module',
},
extends: [
// Syntax and ~
'eslint:recommended',
'plugin:node/recommended',
'standard-jsdoc',
'plugin:json/recommended',
// Funny
'plugin:you-dont-need-lodash-underscore/compatible',
'plugin:unicorn/recommended',
// Global config
'airbnb-base',
],
plugins: [
'json',
'no-loops',
'unicorn',
'async-await',
'prefer-object-spread',
'simple-import-sort',
],
env: {
browser: true,
es6: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
rules: {
'prefer-object-spread/prefer-object-spread': 2,
// 'no-restricted-globals': [2, ...restrictedGlobals],
'mocha/handle-done-callback': 0,
'mocha/no-global-tests': 0,
'mocha/valid-test-description': 0,
'import/extensions': 0,
'import/prefer-default-export': 0,
'import/no-cycle': 0,
'unicorn/no-null': 0,
'no-underscore-dangle': 0,
'unicorn/no-array-reduce': 0,
'unicorn/no-array-callback-reference': 0,
},
};