-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
69 lines (69 loc) · 1.42 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false,
},
extends: ['@nuxtjs', 'prettier', 'plugin:prettier/recommended', 'plugin:nuxt/recommended'],
plugins: ['prettier'],
// add your custom rules here
rules: {
// '@asbjorn/groq/no-syntax-errors': ['error', { groqs: ['@nuxtjs/sanity'] }],
// '@asbjorn/groq/no-template-expressions': ['error', { groqs: ['@nuxtjs/sanity'] }],
'prettier/prettier': [
'warn',
{
useTabs: true,
printWidth: 9999,
tabWidth: 2,
singleQuote: true,
semi: false,
trailingComma: 'all',
jsxBracketSameLine: false,
bracketSpacing: true,
endOfLine: 'auto',
bracketSameLine: true,
},
],
'no-console': 'off',
'vue/html-indent': [
'warn',
'tab',
{
attribute: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: [],
},
],
'vue/max-attributes-per-line': [
2,
{
singleline: 15,
multiline: {
max: 5,
allowFirstLine: true,
},
},
],
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'never',
},
],
'vue/singleline-html-element-content-newline': [
'error',
{
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['titleBar', 'modal', 'n-link', 'nuxt-link', 'span', 'a', 'label', 'btn', 'h2', 'p', 'div'],
},
],
},
}