-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
147 lines (147 loc) · 3.27 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"prettier",
"google"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"project": "tsconfig.json"
},
"env": {
"node": true
},
"rules": {
"fp/no-events": 0,
"import/no-cycle": 0,
"import/no-named-as-default-member": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"sort-imports": [
1,
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"linebreak-style": 0,
"no-continue": 0,
"no-extra-parens": 0,
"no-restricted-syntax": 0,
"no-unused-expressions": [
2,
{
"allowTaggedTemplates": true
}
],
"require-await": 0,
"unicorn/numeric-separators-style": 0,
"unicorn/prevent-abbreviations": 0,
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", "never"],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"curly": ["error", "all"],
"eol-last": ["error"],
"keyword-spacing": ["error"],
"max-len": [
"error",
{
"code": 120,
"tabWidth": 2,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreRegExpLiterals": true,
"ignoreUrls": true
}
],
"default-param-last": ["error"],
"no-else-return": ["error"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multiple-empty-lines": ["error"],
"no-spaced-func": ["error"],
"no-trailing-spaces": ["error"],
"no-undef": ["error"],
"no-unexpected-multiline": ["error"],
"no-empty-function": ["error"],
"no-useless-catch": 0,
"no-unused-vars": [
"error",
{
"args": "after-used",
"vars": "all",
"ignoreRestSiblings": true
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-unary-ops": [
"error",
{
"nonwords": false,
"overrides": {}
}
],
// ECMAScript 6 rules
"arrow-body-style": [
"error",
"as-needed",
{
"requireReturnForObjectLiteral": false
}
],
"arrow-parens": ["error", "always"],
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"no-class-assign": ["error"],
"no-const-assign": ["error"],
"no-dupe-class-members": ["error"],
"no-duplicate-imports": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"object-shorthand": [
"error",
"always",
{
"avoidQuotes": true,
"ignoreConstructors": false
}
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": false,
"allowUnboundThis": true
}
],
"prefer-const": ["error"],
"prefer-rest-params": ["error"],
"prefer-template": ["error"],
"template-curly-spacing": ["error", "never"],
// Custom rules here
"require-jsdoc": "off",
"new-cap": "off"
}
}