-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
160 lines (159 loc) · 4.02 KB
/
.eslintrc.json
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
148
149
150
151
152
153
154
155
156
157
158
159
160
// 20220224195113
// https://raw.githubusercontent.com/Fluorinebot/fluorine/main/.eslintrc.json
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"prettier/prettier",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true,
"es6": true
},
"plugins": ["@typescript-eslint", "prettier"],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
},
{
"usePrettierrc": true
}
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"array-bracket-newline": ["error", "consistent"],
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": ["error", "last"],
"default-case-last": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": ["error", "always"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"keyword-spacing": "error",
"line-comment-position": [
"error",
{
"position": "above"
}
],
"lines-around-comment": "error",
"no-alert": "error",
"no-case-declarations": "off",
"no-confusing-arrow": "error",
"no-duplicate-imports": [
"error",
{
"includeExports": true
}
],
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"no-empty-function": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-lone-blocks": "error",
"no-loss-of-precision": "error",
"no-multi-assign": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-return-await": "error",
"no-sequences": [
"error",
{
"allowInParentheses": false
}
],
"no-shadow": ["off"],
"no-template-curly-in-string": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
"no-unsafe-optional-chaining": [
"error",
{
"disallowArithmeticOperators": true
}
],
"no-useless-backreference": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": [
"error",
{
"consistent": true
}
],
"object-shorthand": "error",
"one-var": ["error", "never"],
"operator-assignment": ["error", "always"],
"prefer-arrow-callback": [
"error",
{
"allowUnboundThis": false
}
],
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-atomic-updates": "error",
"require-unicode-regexp": "error",
"rest-spread-spacing": ["error", "never"],
"semi": "error",
"semi-spacing": "error",
"semi-style": ["error", "last"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": false
}
],
"spaced-comment": "error",
"switch-colon-spacing": "error",
"template-curly-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"yoda": "error"
}
}