-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
81 lines (81 loc) · 2.28 KB
/
.eslintrc
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
{
"env": {
"es2020": true,
"node": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"plugins": ["@typescript-eslint"],
"rules": {
"indent": "off", // Need this else it clashes with @typescript-eslint/indent
"no-empty": "off",
"no-console": "off",
"no-debugger": "off",
"curly": "off",
"max-len": "off",
"semi": ["error", "always"],
"space-before-function-paren": [
"warn",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"no-trailing-spaces": "off",
"max-classes-per-file": "off",
"no-multiple-empty-lines": "off",
"linebreak-style": ["error", "unix"],
"sort-imports": [
"warn",
{
"ignoreDeclarationSort": true
}
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["interface", "class"],
"format": ["PascalCase"]
}
],
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit"
}
],
"react/react-in-jsx-scope": "off",
"react/no-unknown-property": ["error", { "ignore": ["inert"] }]
}
}