This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
forked from Kong/konnect-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.client.eslintrc.js
72 lines (72 loc) · 1.69 KB
/
.client.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
65
66
67
68
69
70
71
72
module.exports = {
root: true,
env: {
es2021: true,
},
globals: {
analytics: 'readonly',
konnect: 'readonly'
},
extends: [
'plugin:vue/recommended',
'@vue/standard',
'@vue/typescript'
],
rules: {
"vue/no-bare-strings-in-template": ["error"],
'arrow-parens': 'off',
'generator-star-spacing': 'off',
'object-property-newline': 'error',
'lines-between-class-members': ['error', 'always'],
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: ['block', 'block-like'],
next: '*'
},
{
blankLine: 'always',
prev: '*',
next: 'return'
},
{
blankLine: 'always',
prev: ['const', 'let', 'var'],
next: '*'
},
{
blankLine: 'any',
prev: ['const', 'let', 'var'],
next: ['const', 'let', 'var', 'if']
},
{
blankLine: 'always',
prev: 'directive',
next: '*'
},
{
blankLine: 'any',
prev: 'directive',
next: 'directive'
}
],
curly: 'error',
camelcase: 'off',
'eol-last': 'error',
'no-mixed-operators': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'@typescript-eslint/no-unused-vars': 'error',
'vue/custom-event-name-casing': 'off',
'vue/html-indent': 'error',
'no-trailing-spaces': 'error',
'vue/multiline-html-element-content-newline': ['error', {
ignoreWhenEmpty: true,
ignores: ['CodeContent', 'pre', 'textarea', 'a']
}]
},
overrides: [
]
}