-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
80 lines (80 loc) · 2.2 KB
/
.eslintrc.cjs
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
module.exports = {
plugins: ['@typescript-eslint', 'implicit-dependencies', 'prettier'],
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: './tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: true,
es2021: true,
jest: true,
},
rules: {
'no-debugger': 1,
'no-console': 1,
'no-unused-vars': 0,
'no-restricted-globals': 0,
'no-unused-expressions': 0,
'no-unneeded-ternary': 1,
'no-nested-ternary': 0,
'no-case-declarations': 1,
'import/no-anonymous-default-export': 0,
'import/no-named-as-default': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-dynamic-delete': 0,
'@typescript-eslint/unbound-method': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unnecessary-condition': 1,
'@typescript-eslint/consistent-type-imports': 1,
'@typescript-eslint/no-confusing-non-null-assertion': 0,
'@typescript-eslint/no-unused-vars': [
1,
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'import/order': [
1,
{
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true },
warnOnUnassignedImports: true,
groups: [['builtin', 'external'], 'internal', 'index', ['parent', 'sibling']],
},
],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
},
},
root: true,
};