summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
blob: 3a85ff92d18fc199999ba26398e419e9e2e27c5b (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
module.exports = {
	root: true,
	parser: 'vue-eslint-parser',
	parserOptions: {
		parser: {
			ts: '@typescript-eslint/parser',
		},
		ecmaVersion: 2020,
	},
	env: {
		jest: true,
	},
	rules: {
		 // frustratingly this seems to error for all imports right now...
		'n/no-missing-import': 'off',

		// need to warn on these because @nextcloud repeats some component names (Button, Content..)
		'vue/no-reserved-component-names': 'warn',
	},
	extends: [
		'eslint:recommended',
		'plugin:vue/base',
		'plugin:vue/essential',
		'@vue/standard',
		'@vue/typescript/recommended',
		'@nextcloud',
	],
	ignorePatterns: ['*.d.ts'],
}