-
Notifications
You must be signed in to change notification settings - Fork 105
/
.eslintrc.js
57 lines (57 loc) · 1.54 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
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:vue/essential',
'airbnb-base',
],
parserOptions: {
ecmaVersion: '2020',
sourceType: 'module',
},
plugins: [
'vue',
],
globals: {
atk: true,
$: true,
jQuery: true,
flatpickr: true,
},
rules: {
indent: ['error', 4],
'object-shorthand': ['error', 'never'],
'func-names': ['error', 'never'],
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
'import/no-unresolved': 'off',
'no-plusplus': 'off',
'consistent-return': 'off',
'no-nested-ternary': 'off',
'import/prefer-default-export': 'off',
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-underscore-dangle': ['error', { allow: ['__atkml', '__atkml_action', '__atk_reload'] }],
'max-len': ['error', {
code: 120,
ignoreTemplateLiterals: true,
ignoreComments: true,
ignoreStrings: true,
}],
'prefer-template': ['off'],
'no-unused-vars': ['error', { vars: 'all', args: 'none' }],
'vue/no-unused-components': 'off',
'spaced-comment': ['error', 'always', {
line: {
markers: ['/'],
exceptions: ['-', '+'],
},
block: {
markers: ['!'],
exceptions: ['*'],
balanced: true,
},
}],
},
};