-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
39 lines (39 loc) · 941 Bytes
/
.eslintrc.js
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
38
39
module.exports = {
extends: [
'@nextcloud',
],
globals: {
__webpack_nonce__: true,
__webpack_public_path__: true,
},
rules: {
'import/extensions': 'off',
'no-tabs': ['error', { allowIndentationTabs: false }],
indent: ['error', 2],
'no-mixed-spaces-and-tabs': 'error',
'vue/html-indent': ['error', 2],
semi: ['error', 'always'],
'no-console': 'off',
'n/no-missing-require': [
'error', {
resolvePaths: [
'./src',
'./style',
'./',
'./img',
],
tryExtensions: ['.js', '.ts', '.json', '.node', '.css', '.scss', '.xml', '.vue', '.svg'],
},
],
// Do allow line-break before closing brackets
'vue/html-closing-bracket-newline': ['error', { singleline: 'never', multiline: 'always' }],
},
overrides: [
{
files: ['*.vue'],
rules: {
semi: ['error', 'never'],
},
},
],
};