-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
71 lines (69 loc) · 1.71 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: 'babel-eslint',
},
extends: [
'standard',
'eslint:recommended',
'plugin:vue/recommended',
],
globals: {
cloudinary: 'readonly',
},
// required to lint *.vue files
plugins: ['vue', 'vuetify'],
// add your custom rules here
rules: {
semi: [2, 'always'],
'no-console': 'off',
'arrow-parens': ['error', 'as-needed'],
camelcase: 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-return-await': 'warn',
'no-template-curly-in-string': 'warn',
'no-undef': 'error',
'no-unreachable': 'error',
'newline-after-var': ['error', 'always'],
'import/newline-after-import': 'error',
'space-infix-ops': 'error',
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'always',
asyncArrow: 'always',
},
],
'vue/max-attributes-per-line': 'off',
'vue/require-default-prop': 'off',
'vue/no-v-html': 'off',
'vue/prop-name-casing': 'error',
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/attributes-order': ['error', {
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
'UNIQUE',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT',
],
alphabetical: true,
}],
'vue/padding-line-between-blocks': ['error', 'always'],
'vuetify/no-deprecated-classes': 'error',
},
}
;