-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.cjs
66 lines (59 loc) · 1.45 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
57
58
59
60
61
62
63
64
65
66
// @ts-nocheck
const restrictedGlobals = require('confusing-browser-globals');
module.exports = {
root: true,
parserOptions: {
ecmaVersion: '2020',
sourceType: 'module',
},
extends: [
// Syntax and ~
'eslint:recommended',
'plugin:node/recommended',
'standard-jsdoc',
'plugin:json/recommended',
// Funny
'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,
'max-len': 0,
'import/no-unresolved': 0,
'jsdoc/require-returns-description': 0,
'jsdoc/require-param-description': 0,
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
},
};