summaryrefslogtreecommitdiff
path: root/frontend/eslint.config.js
blob: 0245ab85727a7751b53498e4173bc7d85ebbada4 (plain) (blame)
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
export default [
	{
		files: ["*.js"],
		languageOptions: {
			globals: {
				document: "readonly",
				alert: "readonly",
				WebSocket: "readonly"
			}
		}
	},
	{
		rules: {
			indent: ["error", "tab"],
			"no-negated-in-lhs": "error",
			"no-cond-assign": ["error", "except-parens"],
			curly: ["error", "all"],
			"object-curly-spacing": ["error", "always"],
			"computed-property-spacing": ["error", "never"],
			"array-bracket-spacing": ["error", "never"],
			eqeqeq: ["error", "smart"],
			"no-unused-expressions": "error",
			"no-sequences": "error",
			"no-nested-ternary": "error",
			"no-unreachable": "error",
			"wrap-iife": ["error", "inside"],
			"no-caller": "error",
			quotes: ["error", "double"],
			"no-undef": "error",
			"no-unused-vars": [
				"error",
				{
					args: "all",
					argsIgnorePattern: "^_"
				}
			],
			"operator-linebreak": ["error", "after"],
			"comma-style": ["error", "last"],
			camelcase: [
				"error",
				{
					properties: "never"
				}
			],
			"dot-notation": [
				"error",
				{
					allowPattern: "^[a-z]+(_[a-z]+)+$"
				}
			],
			"max-len": [
				"error",
				{
					code: 200,
					ignoreComments: true,
					ignoreUrls: true,
					ignoreRegExpLiterals: true
				}
			],
			"no-mixed-spaces-and-tabs": "error",
			"no-trailing-spaces": "error",
			"no-irregular-whitespace": "error",
			"no-multi-str": "error",
			"comma-dangle": ["error", "never"],
			"comma-spacing": [
				"error",
				{
					before: false,
					after: true
				}
			],
			"space-before-blocks": ["error", "always"],
			"space-in-parens": ["error", "never"],
			"keyword-spacing": [2],
			"template-curly-spacing": ["error", "always"],
			semi: ["error", "never"],
			"semi-spacing": [
				"error",
				{
					before: false,
					after: true
				}
			],
			"no-extra-semi": "error",
			"space-infix-ops": "error",
			"eol-last": "error",
			"lines-around-comment": [
				"error",
				{
					beforeLineComment: true
				}
			],
			"linebreak-style": ["error", "unix"],
			"no-with": "error",
			"brace-style": "error",
			"space-before-function-paren": ["error", "never"],
			"no-loop-func": "error",
			"no-spaced-func": "error",
			"key-spacing": [
				"error",
				{
					beforeColon: false,
					afterColon: true
				}
			],
			"space-unary-ops": [
				"error",
				{
					words: false,
					nonwords: false
				}
			],
			"no-multiple-empty-lines": 2
		}
	}
]