aboutsummaryrefslogtreecommitdiff
path: root/packages/server/.eslintrc.js
blob: df161ad41aee8f09b7aaebdd5e4dacc944d9a040 (plain)
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
module.exports = {
	env: {
		commonjs: true,
		es2021: true,
		node: true
	},
	extends: [ "standard", "plugin:@typescript-eslint/recommended" ],
	parser: "@typescript-eslint/parser",
	parserOptions: {
		ecmaVersion: 12
	},
	plugins: [ "@typescript-eslint" ],
	rules: {
		"array-bracket-spacing": [
			"error",
			"always"
		],
		"array-element-newline": "off",
		"arrow-body-style": "off",
		"arrow-parens": [
			"error",
			"as-needed"
		],
		"arrow-spacing": [
			"error",
			{
				after: true,
				before: true
			}
		],
		"brace-style": [ "error", "stroustrup", { "allowSingleLine": false } ],
		camelcase: "off",
		"capitalized-comments": [
			"error",
			"always"
		],
		"comma-spacing": [
			"error",
			{
				after: true,
				before: false
			}
		],
		"comma-style": [
			"error",
			"last"
		],
		"computed-property-spacing": [
			"error",
			"never"
		],
		curly: [ "error", "all" ],
		"dot-notation": "off",
		"eol-last": [
			"error",
			"never"
		],
		eqeqeq: "error",
		"func-names": "off",
		"func-style": [ "error", "declaration" ],
		"id-length": "off",
		"implicit-arrow-linebreak": [
			"error",
			"beside"
		],
		indent: [ "warn", "tab" ],
		"keyword-spacing": "off",
		"linebreak-style": [
			"error",
			"unix"
		],
		"max-len": "off",
		"max-lines": [ "error", 600 ],
		"max-params": [ "error", 6 ],
		"max-statements": "off",
		"multiline-comment-style": [ "error", "bare-block" ],
		"no-await-in-loop": "off",
		"no-console": "off",
		"no-else-return": [
			"error",
			{
				allowElseIf: true
			}
		],
		"no-extra-parens": "off",
		"no-magic-numbers": "off",
		"no-tabs": "off",
		"no-ternary": "off",
		"no-underscore-dangle": [ "error", { "allowAfterThis": true } ],
		"object-curly-spacing": [
			"error",
			"always"
		],
		"object-shorthand": "off",
		"one-var": "off",
		"padded-blocks": "off",
		"prefer-arrow-callback": "off",
		"prefer-const": "off",
		"prefer-destructuring": "off",
		"prefer-template": "off",
		"quote-props": "off",
		quotes: [ "error", "double" ],
		semi: [ "error", "always" ],
		"semi-style": [
			"error",
			"last"
		],
		"sort-keys": "off",
		"space-before-function-paren": [ "error", "never" ],
		"space-in-parens": [
			"error",
			"never"
		],
		"spaced-comment": [
			"error",
			"always"
		],
		strict: [
			"error",
			"never"
		],
		"template-curly-spacing": [
			"error",
			"never"
		],
		"unicode-bom": [
			"error",
			"never"
		],
		yoda: [
			"error",
			"never"
		]
	}
};