-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.cjs
59 lines (59 loc) · 1.35 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.eslint.json',
},
plugins: [
'@stylistic',
'@typescript-eslint',
'simple-import-sort',
'sort-destructure-keys',
'typescript-sort-keys',
],
rules: {
'max-len': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'object-curly-newline': 'off',
'typescript-sort-keys/interface': ['error', 'asc', {
caseSensitive: false,
natural: true,
requiredFirst: false,
}],
'typescript-sort-keys/string-enum': ['error', 'asc', {
caseSensitive: false,
natural: true,
}],
'@stylistic/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'comma',
requireLast: false,
},
},
],
'@stylistic/type-annotation-spacing': 'error',
'@stylistic/type-generic-spacing': ['error'],
'@stylistic/type-named-tuple-spacing': ['error'],
'sort-destructure-keys/sort-destructure-keys': [
2, {
caseSensitive: false,
},
],
},
};