forked from LouisMazel/vue-phone-number-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (41 loc) · 934 Bytes
/
.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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/strongly-recommended',
'eslint:recommended'
],
rules: {
'generator-star-spacing': 0,
'arrow-parens': 0,
'prefer-const': 2,
'no-trailing-spaces': 'error',
'no-debugger': 0,
'no-extra-semi': 'error',
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-var': 'error',
'vue/attributes-order': 'error',
'vue/no-confusing-v-for-v-if': 'error',
'no-unused-vars': 'error',
'vue/no-v-html': 'error',
'vue/order-in-components': 'error',
'vue/this-in-template': 'error',
'vue/script-indent': 'error'
},
parserOptions: {
parser: 'babel-eslint'
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
'vue/script-indent': ['error', 2, { baseIndent: 1 }]
}
}
]
}