aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
blob: 4a59fc503666a977887f3ffb09e1a08faa40045f (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
{
	"root": true,
	"env": {
		"browser": true,
		"es2021": true,
		"node": true
	},
	"extends": ["eslint:recommended", "plugin:vue/vue3-strongly-recommended"],
	"parserOptions": {
		"ecmaVersion": 12,
		"sourceType": "module"
	},
	"plugins": ["vue"],
	"rules": {
		"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"],
		"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"]
	}
}