forked from chronotruck/vue-ctk-date-time-picker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
52 lines (46 loc) · 1.11 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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/strongly-recommended',
'eslint:recommended',
'plugin:vue/essential',
'@vue/standard'
],
rules: {
'generator-star-spacing': 0,
'arrow-parens': 0,
'prefer-const': 2,
'no-trailing-spaces': 'error',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-extra-semi': 'error',
semi: [
'error',
'never'
],
'no-var': 'error',
'vue/attributes-order': 'error',
'vue/no-confusing-v-for-v-if': 'error',
'vue/no-v-html': 'error',
'vue/order-in-components': 'error',
'vue/this-in-template': 'error',
'vue/script-indent': 'error',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
'vue/script-indent': ['error', 2, { baseIndent: 1 }],
'vue/component-name-in-template-casing': ['error', 'PascalCase']
}
}
]
}