summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
blob: 089dca10a047df7b902a6699eae591466d9244ef (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
module.exports = {
	globals: {
		__webpack_nonce__: true,
		_: true,
		$: true,
		dayNames: true,
		escapeHTML: true,
		firstDay: true,
		moment: true,
		oc_userconfig: true,
		sinon: true,
	},
	plugins: [
		'cypress',
	],
	extends: [
		'@nextcloud/eslint-config/typescript',
		'plugin:cypress/recommended',
	],
	rules: {
		'no-tabs': 'warn',
		// TODO: make sure we fix this as this is bad vue coding style.
		// Use proper sync modifier
		'vue/no-mutating-props': 'warn',
		'vue/custom-event-name-casing': ['error', 'kebab-case', {
			// allows custom xxxx:xxx events formats
			ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'],
		}],
	},
	settings: {
		jsdoc: {
			mode: 'typescript',
		},
	},
}