-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
34 lines (34 loc) · 919 Bytes
/
.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
module.exports = {
env: {
es2021: true,
node: true,
jest: true,
},
extends: [
'airbnb-base',
],
plugins: [
'import',
],
rules: {
'newline-before-return': 'error',
'consistent-return': 'error',
'no-else-return': ['error', { allowElseIf: false }],
'class-methods-use-this': 'off',
indent: ['error', 4, { SwitchCase: 1 }],
semi: ['error', 'never'],
'no-multiple-empty-lines': ['error', { max: 1 }],
'max-len': 'off',
'new-cap': ['error', {
newIsCap: false,
capIsNew: false,
properties: true,
}],
'padded-blocks': ['error', 'never', { allowSingleLineBlocks: true }],
quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true,
}],
'prefer-const': 'error',
},
}