-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
53 lines (50 loc) · 1.58 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
root: true,
env: {
es6: true,
node: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
tsconfigRootDir: __dirname,
project: ['./tsconfig.json']
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'sort-destructure-keys', 'import-access'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
rules: {
// import
'import-access/jsdoc': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
// prettier
'no-console': [
'error',
{
allow: ['warn', 'error', 'info', 'table']
}
],
'import/no-named-as-default-member': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/no-extra-semi': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-misused-promises': 0,
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unused-vars': [2, { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/await-thenable': 0,
'@typescript-eslint/unbound-method': 0
}
}