-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 885 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
35
36
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
},
extends: ['eslint:recommended', 'prettier'],
plugins: ['prettier', 'import'],
parserOptions: {
ecmaVersion: 12,
},
rules: {
'prettier/prettier': 'error',
'no-tabs': 2,
'arrow-parens': ['error', 'always'],
'arrow-body-style': [1, 'as-needed'],
'array-callback-return': 2,
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'import/no-unresolved': 2,
'import/imports-first': ['error', 'absolute-first'],
'import/newline-after-import': 'error',
indent: [2, 2, { SwitchCase: 1 }],
'no-console': 1,
'prefer-template': 2,
'prefer-destructuring': 1,
},
};