-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
42 lines (42 loc) · 1.04 KB
/
.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
40
41
42
module.exports = {
extends: [
'@nextcloud',
],
// some unused toolgit files
ignorePatterns: [
'src/toolkit/util/file-download.js',
'src/toolkit/util/dialogs.js',
'src/toolkit/util/ajax.js',
'src/toolkit/util/jquery.js',
],
rules: {
'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',
'./',
],
tryExtensions: ['.js', '.json', '.node', '.css', '.scss', '.xml', '.vue'],
},
],
// Do allow line-break before closing brackets
'vue/html-closing-bracket-newline': ['error', { singleline: 'never', multiline: 'always' }],
'n/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
},
overrides: [
{
files: ['*.vue'],
rules: {
semi: ['error', 'never'],
},
},
],
};