-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
64 lines (64 loc) · 1.88 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
module.exports = {
'env': {
'es2021': true,
'node': true,
},
'extends': 'eslint:recommended',
'parserOptions': {
'sourceType': 'module',
'ecmaVersion': 13,
},
'rules': {
'max-len': ['error', {
'code': 120,
'ignoreTemplateLiterals': true,
'ignoreRegExpLiterals': true,
}],
'indent': ['error', 4, {
'SwitchCase': 1,
}],
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'curly': ['error'],
'keyword-spacing': ['error'],
'no-multiple-empty-lines': ['error'],
'no-unused-vars': ['error', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}],
'dot-location': ['error', 'property'],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'new-parens': 'error',
'eqeqeq': 'error',
'no-var': 'error',
'no-promise-executor-return': 'error',
'no-template-curly-in-string': 'error',
'no-constructor-return': 'error',
'no-useless-constructor': 'error',
'no-eq-null': 'error',
'no-invalid-this': 'error',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-lonely-if': 'error',
'no-else-return': 'error',
'no-unused-expressions': 'error',
'no-multi-spaces': 'error',
'no-duplicate-imports': ['error'],
'consistent-return': ['error'],
'default-case-last': 'error',
'func-call-spacing': ['error', 'never'],
'camelcase': ['error'],
'yoda': 'error',
'prefer-template': 'error',
'class-methods-use-this': ['warn', {
'exceptMethods': [],
}],
},
'ignorePatterns': [
'dist',
'examples',
'tests',
'documentation',
'*.gushio.js'
],
}