summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
blob: 53abb5d1fbbc33e5f2a4766f253b0821687db9f9 (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
module.exports = {
	root: true,
	parser: 'vue-eslint-parser',
	parserOptions: {
		parser: {
			ts: '@typescript-eslint/parser',
		},
		ecmaVersion: 2020,
	},
	env: {
		jest: true,
	},
	extends: [
		'eslint:recommended',
		'plugin:vue/base',
		'plugin:vue/essential',
		'@vue/standard',
		'@vue/typescript/recommended',
		'@nextcloud',
		'plugin:@typescript-eslint/recommended',
	],
	ignorePatterns: ['*.d.ts'],
	rules: {
		'no-console': ['warn'],
		'@typescript-eslint/no-var-requires': 'off',
		// TODO: Trouble importing .ts files into .vue files for some reason?
		'import/extensions': 'off',
		'n/no-missing-import': 'off',
	},
	settings: {
		'import/resolver': {
			node: {
				extensions: ['.ts'],
			},
		},
	},
}