-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
116 lines (110 loc) · 2 KB
/
.eslintrc.yml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
root: true
env:
browser: true
node: true
es6: true
parser: vue-eslint-parser
parserOptions:
ecmaVersion: 2018
sourceType: module
parser: babel-eslint
extends:
- plugin:vue/vue3-recommended
- eslint:recommended
# TODO: enable when eslint-import-resolver-webpack is fixed
# - plugin:import/errors
# - plugin:import/warnings
plugins:
- vue
globals:
I18n: true
describe: true
it: true
rules:
quotes:
- error
- single
- avoidEscape: true
object-curly-spacing:
- error
- always
space-before-function-paren:
- error
- never
semi:
- error
- always
object-curly-newline: 0
arrow-body-style:
- 2
- as-needed
arrow-parens:
- 0
- as-needed
no-console: 1
no-alert: 0
no-debugger: 1
no-trailing-spaces:
- error
no-return-assign: 0
no-param-reassign:
- 2
- props: false
no-underscore-dangle: 0
no-unused-vars:
- warn
- argsIgnorePattern: ^_
varsIgnorePattern: ^_
no-use-before-define: 0
no-mixed-operators: 0
no-new: 0
function-paren-newline: 0
comma-dangle:
- warn
- never
max-len:
- warn
- 100
- ignoreComments: true
ignoreUrls: true
ignorePattern: "^\\s*<|^\\$|\\s*background|\\s*transition|\\s*\\+|\\s*\\$"
indent:
- error
- 2
- ignoreComments: true
SwitchCase: 1
linebreak-style:
- error
- unix
func-names: 0
implicit-arrow-linebreak: 0
prefer-template: 0
class-methods-use-this: 0
radix: 0
operator-linebreak:
- 2
- after
- overrides:
'|>': 'before'
keyword-spacing:
- error
- after: true
before: true
lines-between-class-members: 0
vue/max-attributes-per-line:
- error
- singleline: 3
multiline:
max: 1
allowFirstLine: false
vue/singleline-html-element-content-newline: 0
vue/html-quotes: 0
# - 1
# - single
vue/component-name-in-template-casing:
- 2
- PascalCase
- ignores:
- router-view
- router-link
vue/no-v-html: 0