-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
59 lines (59 loc) · 1.96 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
54
55
56
57
58
59
module.exports = {
root: true,
env: { es6: true, node: true },
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.eslint.json',
},
plugins: ['import', 'prettier'],
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
globals: {
$log: false,
$info: false,
$option: false,
$http: false,
$file: false,
$data: false,
},
rules: {
'no-var': 'off',
'vars-on-top': 'off',
'prefer-const': 'off',
'no-return-assign': 'off',
'consistent-return': 'off',
'prefer-destructuring': 'off',
'no-underscore-dangle': 'off',
'object-curly-newline': 'off',
// 'import/no-unresolved': 'error',
'import/no-mutable-exports': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-named-as-default-member': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': ['error', { ignoreComments: true, code: 120, ignoreStrings: true }],
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/quotes': ['error', 'single', { allowTemplateLiterals: true }],
},
};