aboutsummaryrefslogtreecommitdiff
path: root/packages/client/.eslintrc.js
blob: a7f72859345c53c5e94c476afa0aac1e05d5f9e6 (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
module.exports = {
	root: true,
	env: {
		node: true
	},
	extends: [
		"plugin:vue/vue3-strongly-recommended",
		"@vue/standard"
	],
	parserOptions: {
		parser: "babel-eslint"
	},
	ignorePatterns: [ "/src/util/*" ],
	rules: {
		"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
		"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
		curly: "warn",
		"array-bracket-newline": [ "warn", "consistent" ],
		"array-bracket-spacing": [ "warn", "always" ],
		"capitalized-comments": [ "warn", "always" ],
		"implicit-arrow-linebreak": [ "warn", "beside" ],
		indent: [ "warn", "tab" ],
		"linebreak-style": [ "warn", "unix" ],
		"comma-dangle": [ "error", "never" ],
		semi: [ "error", "always" ],
		"no-var": "error",
		quotes: [ "error", "double" ],
		"quote-props": [ "error", "as-needed" ],
		"space-before-function-paren": [ "error", "never" ],
		camelcase: "off",
		"no-tabs": "off",
		"keyword-spacing": [ "error", {
			overrides: {
				if: { after: false },
				for: { after: false },
				while: { after: false }
			}
		} ],
		"vue/max-attributes-per-line": [ "warn", {
			singleline: {
				max: 2,
				allowFirstLine: true
			},
			multiline: {
				max: 2,
				allowFirstLine: false
			}
		} ],
		"vue/html-closing-bracket-newline": [ "error", {
			singleline: "never",
			multiline: "never"
		} ],
		"vue/html-indent": [ "error", "tab" ]
	}
};