forked from mariadb-corporation/MaxScale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
97 lines (96 loc) · 2.74 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
* Copyright (c) 2020 MariaDB Corporation Ab
* Copyright (c) 2023 MariaDB plc, Finnish Branch
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2024-06-03
*
* On the date above, in accordance with the Business Source License, use
* of this software will be governed by version 2 or later of the General
* Public License.
*/
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
parserOptions: {
parser: 'babel-eslint',
},
plugins: ['vuetify'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': 'error',
'comma-dangle': 0,
'no-tabs': 2,
'no-var': 2,
'no-template-curly-in-string': 1,
'no-alert': 2,
'no-eval': 2,
camelcase: 0,
'vue/max-len': [
'error',
{
code: 100,
template: 120,
tabWidth: 4,
comments: 120,
ignorePattern: '',
ignoreComments: false,
ignoreTrailingComments: false,
ignoreUrls: false,
ignoreStrings: false,
ignoreTemplateLiterals: false,
ignoreRegExpLiterals: false,
ignoreHTMLAttributeValues: true,
ignoreHTMLTextContents: false,
},
],
indent: [
'error',
4,
{
SwitchCase: 1,
},
],
'vue/this-in-template': 'error',
'vue/order-in-components': 'error',
'vue/no-unused-components': 'error',
'vuetify/no-deprecated-classes': 'error',
'vuetify/no-legacy-grid': 'error',
'vue/attribute-hyphenation': 0,
'vue/require-default-prop': 0,
'vue/no-template-shadow': 0,
'vue/name-property-casing': ['error', 'kebab-case'],
'vue/no-v-html': 0,
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
},
},
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
'**/src/*/**/*.spec.{j,t}s?(x)',
'**/tests/unit/bootstrap.js',
],
env: {
mocha: true,
},
globals: {
expect: true,
chai: true,
sinon: true,
},
},
],
}