-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
.eslintrc.js
41 lines (41 loc) · 949 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
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: true
}
],
'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]
}
}