-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
67 lines (67 loc) · 1.78 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
60
61
62
63
64
65
66
67
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'unused-imports'],
settings: {
'import/resolver': {
'babel-module': {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.ios.js', '.android.js'],
},
},
},
extends: [
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-non-null-assertion': ['off'],
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/type-annotation-spacing': ['error', { 'after': true }],
'key-spacing': ['error', { 'afterColon': true }],
'space-infix-ops': ['error'],
'no-multi-spaces': 'error',
'object-curly-spacing': 'off',
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
'indent': 'off',
'arrow-spacing': ['error', { 'before': true, 'after': true }],
'@typescript-eslint/indent': ['error', 2],
'keyword-spacing': ['error', { 'after': true }],
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/quotes': [
'error',
'single',
{
'avoidEscape': true,
'allowTemplateLiterals': true
}
],
'import/order': [
'error',
{
'newlines-between': 'always',
pathGroups: [
{
pattern: '@/**',
group: 'parent',
},
],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'react-hooks/exhaustive-deps': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
'react-native/no-inline-styles': 'off',
},
},
],
};