Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.eslintrc.js - github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 538c0222f0ea97f85fd48aa1df6d037134936839 (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,
	env: {
		node: true,
		amd: true,
		mocha: true,
	},
	plugins: [
		'nextcloud',
	],
	extends: [
		'plugin:vue/recommended',
		'plugin:prettier/recommended',
		'prettier/vue',
		'eslint:recommended',
	],
	rules: {
		'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
		'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
		'no-unused-vars': 'off',
		'vue/no-v-html': 'off',
		'no-case-declarations': 'off',
		'nextcloud/no-deprecations': 'warn',
		'nextcloud/no-removed-apis': 'error',
	},
	parserOptions: {
		parser: 'babel-eslint',
	},
	globals: {
		expect: true,
		OC: true,
		OCA: true,
		t: true,
		__webpack_public_path__: true,
		__webpack_nonce__: true,
	}
}