-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
90 lines (86 loc) · 1.98 KB
/
index.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
'use strict'
module.exports = {
'root': true,
'env': {
'es2021': true,
'node': true
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'jsx': true,
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint',
'react-hooks'
],
'extends': ['./lib/standard-eslint-ts'],
'settings': {
'import/resolver': {
'typescript': true,
'node': true
}
},
'overrides': [
{
'files': ['*.ts', '*.tsx'],
'rules': {
'no-undef': 'off'
}
},
{
'files': ['*.jsx', '*.tsx'],
'rules': {
'@typescript-eslint/consistent-type-imports': 'off'
}
}
],
'rules': {
'camelcase': 'off',
'multiline-ternary': 'off',
'no-labels': 'off',
'no-useless-return': 'off',
'no-void': 'off',
'quote-props': 'off',
'react/jsx-indent': 'warn',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-extra-parens': 'off',
'@typescript-eslint/quotes': 'off',
'@typescript-eslint/comma-dangle': ['warn', {
'arrays': 'ignore',
'enums': 'ignore',
'exports': 'ignore',
'functions': 'never',
'generics': 'ignore',
'imports': 'ignore',
'objects': 'ignore',
'tuples': 'ignore'
}],
'spaced-comment': 'off',
'react-hooks/rules-of-hooks': 'off',
'react-hooks/exhaustive-deps': 'off',
'@typescript-eslint/consistent-type-imports': [
'error',
{ 'prefer': 'type-imports', 'disallowTypeAnnotations': true }
],
'import/order': [
'warn',
{
'groups': ['builtin', 'external', ['internal', 'parent', 'sibling', 'index'], 'type'],
'pathGroups': [
{
'pattern': 'react',
'group': 'builtin',
'position': 'before'
}
],
'pathGroupsExcludedImportTypes': ['react'],
'newlines-between': 'always',
'alphabetize': {
'order': 'asc'
}
}
]
}
}