-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (64 loc) · 1.5 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
env: {
browser: true,
es2015: true,
jquery: true
},
globals: {
wiki: 'writable',
Vue: 'readable',
_t: 'readable',
ace: 'writable',
toastMessage: 'readable'
},
extends: [
'airbnb-base'
],
parserOptions: {
ecmaVersion: 13,
sourceType: 'module'
},
rules: {
semi: ['error', 'never'],
'max-len': ['error', { code: 104 }],
'vars-on-top': 'off',
'class-methods-use-this': 'off',
'import/no-unresolved': 'off',
'import/extensions': ['error', 'always'],
'import/prefer-default-export': ['off'],
'no-use-before-define': ['off'],
eqeqeq: ['error', 'smart'],
'comma-dangle': ['error', 'never'],
'object-curly-newline': ['error', { multiline: true }],
'func-names': ['error', 'never'],
'space-before-function-paren': ['error', 'never'],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'no-new': 'off'
},
ignorePatterns: [
'vendor/',
'custom/',
'!/javascripts',
'javascripts/vendor',
'!/styles',
'!/tools',
'/tools/*',
'!tools/autoupdate',
'!tools/aceditor',
'!tools/attach',
'!tools/bazar',
'!tools/contact',
'!tools/helloworld',
'!tools/lang',
'!tools/login',
'!tools/progressbar',
'!tools/rss',
'!tools/security',
'!tools/syndication',
'!tools/tableau',
'!tools/tags',
'!tools/templates',
'!tools/toc',
'tools/aceditor/presentation/javascripts/ext-searchbox.js'
]
}