summaryrefslogtreecommitdiffstats
path: root/.eslintrc.json
blob: de86bdaeb3116c23735ebf84beef1552e00e6796 (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
{
	"extends": "eslint:recommended",
	"rules": {
		"eqeqeq": ["warn", "smart"],
		"no-console": "warn",
		"no-loop-func": "warn",
		"no-unused-vars": "warn",

		"block-spacing": "error",
		"camelcase": "error",
		"comma-spacing": "error",
		"comma-style": "error",
		"curly": ["error", "multi-line", "consistent"],
		"indent": ["error", "tab"],
		"no-alert": "error",
		"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
		"no-trailing-spaces": "error",
		"quotes": ["error", "single", "avoid-escape"],
		"semi": "error",
		"space-before-blocks": "error"
	},
	"env": {
		"browser": true,
		"jquery": true
	},
	"globals": {
		"angular": false,
		"vCard": false,
		"_": false,
		"OC": false,
		"t": false,
		"n": false,
		"dav": false,
		"OCA": false
	}
}