-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 853 Bytes
/
.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
module.exports = {
extends: ['prettier', 'plugin:@typescript-eslint/recommended'],
plugins: ['prettier', 'import'],
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'lf',
printWidth: 100,
semi: false,
singleQuote: true,
jsxSingleQuote: true,
trailingComma: 'all',
},
],
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-unused-vars': 'off',
'no-debugger': 'error',
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'no-unreachable': 'error',
'import/order': [
'warn',
{
groups: ['builtin', 'external'],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
}