-
Notifications
You must be signed in to change notification settings - Fork 156
/
.eslintrc.js
57 lines (57 loc) · 1.5 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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
plugins: ['prettier'],
extends: [
'@nuxtjs',
'prettier',
'plugin:prettier/recommended',
'plugin:nuxt/recommended',
'@nuxtjs/eslint-config-typescript'
],
rules: {
// Vue rules
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false
}
],
'vue/singleline-html-element-content-newline': [0],
'vue/multiline-html-element-content-newline': [0],
'vue/html-self-closing': [0],
'vue/no-v-html': [0],
'vue/max-attributes-per-line': [0],
'vue/html-closing-bracket-newline': [0],
'vue/html-indent': [0],
// Prettier rules
'max-len': [0, 120],
code: [0, 120],
'print-width': [0, 120],
'no-console': [1],
'space-before-function-paren': [0],
'arrow-parens': [0],
curly: [0],
'keyword-spacing': [0],
// TODO: Remove all configs below
//
// This is done in order to avoid src/admin/app
// Errors on multiple roots, as this is a Vue 3 project
// And Vue 3 allows multiple roots.
//
// Note:
// If you still have the error displayed, it means Vetur is trying
// To lint your file with Vue 2 configuration, to avoid that
// Add:
// 'vetur.validation.template': false,
// 'vetur.validation.script': false,
// 'vetur.validation.style': false,
// To your `settings.json`, from VSCode.
//
'vue/no-multiple-template-root': 0
}
}