-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
35 lines (35 loc) · 900 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
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
parser: '@typescript-eslint/parser',
sourceType: 'module',
impliedStrict: true,
},
plugins: [
'@typescript-eslint',
'prettier',
],
rules: {
'no-unused-vars': 0,
'complexity': ['error', 15],
eqeqeq: ['error', 'always'],
'no-var': 2,
'prefer-spread': 2,
'prefer-template': 2,
'no-duplicate-imports': 1,
'prefer-rest-params': 2,
'prefer-arrow-callback': 2,
'no-const-assign': 2,
'no-multiple-empty-lines': 2,
},
};