@blueking/eslint-config-bk 2.1.0-beta.9 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +30 -27
- package/package.json +21 -21
- package/tencent/base.js +161 -0
- package/tencent/prettier.js +30 -0
- package/tencent/ts.js +76 -0
- package/{vue.rule.js → tencent/vue.common.rule.js} +58 -189
- package/tencent/vue.js +53 -0
- package/tencent/vue.rule.js +75 -0
- package/tencent/vue3.js +53 -0
- package/tencent/vue3.rule.js +96 -0
- package/ts.js +30 -27
- package/vue.js +29 -46
- package/vue3.js +29 -46
- package/vue3ts.js +43 -0
- package/vuets.js +43 -0
- package/bin/index.js +0 -22
- package/tsvue.js +0 -56
- package/tsvue3.js +0 -56
- package/vue3.rule.js +0 -376
package/vue3.rule.js
DELETED
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Tencent is pleased to support the open source community by making
|
|
3
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
|
6
|
-
*
|
|
7
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
8
|
-
*
|
|
9
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
|
10
|
-
*
|
|
11
|
-
* ---------------------------------------------------
|
|
12
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
13
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
|
14
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
|
15
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
16
|
-
*
|
|
17
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
|
18
|
-
* the Software.
|
|
19
|
-
*
|
|
20
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
21
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
23
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
24
|
-
* IN THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
module.exports = {
|
|
27
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/array-bracket-spacing.md
|
|
28
|
-
'vue/array-bracket-spacing': ['error', 'never'],
|
|
29
|
-
|
|
30
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/arrow-spacing.md
|
|
31
|
-
'vue/arrow-spacing': ['error', { before: true, after: true }],
|
|
32
|
-
|
|
33
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/attribute-hyphenation.md
|
|
34
|
-
'vue/attribute-hyphenation': ['error', 'always'],
|
|
35
|
-
|
|
36
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/attributes-order.md
|
|
37
|
-
// 属性顺序,不限制
|
|
38
|
-
'vue/attributes-order': 'off',
|
|
39
|
-
|
|
40
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-spacing.md
|
|
41
|
-
'vue/block-spacing': ['error', 'always'],
|
|
42
|
-
|
|
43
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/brace-style.md
|
|
44
|
-
'vue/brace-style': ['error', '1tbs', { allowSingleLine: false }],
|
|
45
|
-
|
|
46
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/camelcase.md
|
|
47
|
-
// 后端数据字段经常不是驼峰,所以不限制 properties,也不限制解构
|
|
48
|
-
'vue/camelcase': ['error', { properties: 'never', ignoreDestructuring: true }],
|
|
49
|
-
|
|
50
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/comment-directive.md
|
|
51
|
-
// vue 文件 template 中允许 eslint-disable eslint-enable eslint-disable-line eslint-disable-next-line
|
|
52
|
-
// 行内注释启用/禁用某些规则,配置为 1 即允许
|
|
53
|
-
'vue/comment-directive': 1,
|
|
54
|
-
|
|
55
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/component-name-in-template-casing.md
|
|
56
|
-
// 组件 html 标签的形式,连字符形式,所有 html 标签均会检测,如引入第三方不可避免,可通过 ignores 配置,支持正则,不限制
|
|
57
|
-
'vue/component-name-in-template-casing': 'off',
|
|
58
|
-
|
|
59
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/dot-location.md
|
|
60
|
-
// 等待 https://github.com/vuejs/eslint-plugin-vue/pull/794 合入
|
|
61
|
-
// 'vue/dot-location': ['error', 'property'],
|
|
62
|
-
|
|
63
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/eqeqeq.md
|
|
64
|
-
'vue/eqeqeq': ['error', 'always', { null: 'ignore' }],
|
|
65
|
-
|
|
66
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-closing-bracket-newline.md
|
|
67
|
-
// 单行写法不需要换行,多行需要,不限制
|
|
68
|
-
'vue/html-closing-bracket-newline': 'off',
|
|
69
|
-
|
|
70
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-closing-bracket-spacing.md
|
|
71
|
-
'vue/html-closing-bracket-spacing': ['error', {
|
|
72
|
-
startTag: 'never',
|
|
73
|
-
endTag: 'never',
|
|
74
|
-
selfClosingTag: 'always',
|
|
75
|
-
}],
|
|
76
|
-
|
|
77
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-end-tags.md
|
|
78
|
-
'vue/html-end-tags': 'error',
|
|
79
|
-
|
|
80
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-indent.md
|
|
81
|
-
'vue/html-indent': ['error', 2, {
|
|
82
|
-
attribute: 1,
|
|
83
|
-
baseIndent: 1,
|
|
84
|
-
closeBracket: 0,
|
|
85
|
-
alignAttributesVertically: true,
|
|
86
|
-
ignores: [],
|
|
87
|
-
}],
|
|
88
|
-
|
|
89
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-quotes.md
|
|
90
|
-
'vue/html-quotes': ['error', 'double'],
|
|
91
|
-
|
|
92
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
|
|
93
|
-
// html tag 是否自闭和,不限制
|
|
94
|
-
'vue/html-self-closing': 'off',
|
|
95
|
-
|
|
96
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/jsx-uses-vars.md
|
|
97
|
-
// 当变量在 `JSX` 中被使用了,那么 eslint 就不会报出 `no-unused-vars` 的错误。需要开启 eslint no-unused-vars 规则才适用
|
|
98
|
-
'vue/jsx-uses-vars': 1,
|
|
99
|
-
|
|
100
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/key-spacing.md
|
|
101
|
-
'vue/key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
|
102
|
-
|
|
103
|
-
// 关键字周围空格一致性,在关键字前后保留空格,如 if () else {}
|
|
104
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/keyword-spacing.md
|
|
105
|
-
// 等待 https://github.com/vuejs/eslint-plugin-vue/pull/795 合入
|
|
106
|
-
// 'vue/keyword-spacing': ['error', {'before': true, 'after': true}],
|
|
107
|
-
|
|
108
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/match-component-file-name.md
|
|
109
|
-
// 组件名称属性与其文件名匹配,不限制
|
|
110
|
-
'vue/match-component-file-name': 'off',
|
|
111
|
-
|
|
112
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/max-attributes-per-line.md
|
|
113
|
-
// 每行属性的最大个数,不限制
|
|
114
|
-
'vue/max-attributes-per-line': 'off',
|
|
115
|
-
|
|
116
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/multiline-html-element-content-newline.md
|
|
117
|
-
// 在多行元素的内容前后需要换行符,不限制
|
|
118
|
-
'vue/multiline-html-element-content-newline': 'off',
|
|
119
|
-
|
|
120
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/mustache-interpolation-spacing.md
|
|
121
|
-
// template 中 {{var}},不限制
|
|
122
|
-
'vue/mustache-interpolation-spacing': 'off',
|
|
123
|
-
|
|
124
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/name-property-casing.md
|
|
125
|
-
'vue/name-property-casing': 'off',
|
|
126
|
-
|
|
127
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-async-in-computed-properties.md
|
|
128
|
-
'vue/no-async-in-computed-properties': 'error',
|
|
129
|
-
|
|
130
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-boolean-default.md
|
|
131
|
-
'vue/no-boolean-default': 'off',
|
|
132
|
-
|
|
133
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-confusing-v-for-v-if.md
|
|
134
|
-
'vue/no-confusing-v-for-v-if': 'error',
|
|
135
|
-
|
|
136
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-dupe-keys.md
|
|
137
|
-
// 二级属性名禁止重复
|
|
138
|
-
'vue/no-dupe-keys': 'error',
|
|
139
|
-
|
|
140
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-duplicate-attributes.md
|
|
141
|
-
// 禁止 html 元素中出现重复的属性
|
|
142
|
-
'vue/no-duplicate-attributes': 'error',
|
|
143
|
-
|
|
144
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-empty-pattern.md
|
|
145
|
-
// 等待 https://github.com/vuejs/eslint-plugin-vue/pull/798 合入
|
|
146
|
-
// 禁止解构中出现空 {} 或 []
|
|
147
|
-
// 'vue/no-empty-pattern': 'error',
|
|
148
|
-
|
|
149
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-multi-spaces.md
|
|
150
|
-
// 删除 html 标签中连续多个不用于缩进的空格
|
|
151
|
-
'vue/no-multi-spaces': 'error',
|
|
152
|
-
|
|
153
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-parsing-error.md
|
|
154
|
-
// 禁止语法错误
|
|
155
|
-
'vue/no-parsing-error': 'error',
|
|
156
|
-
|
|
157
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-reserved-keys.md
|
|
158
|
-
// 禁止使用保留字
|
|
159
|
-
'vue/no-reserved-keys': 'error',
|
|
160
|
-
|
|
161
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-restricted-syntax.md
|
|
162
|
-
// 禁止使用特定的语法
|
|
163
|
-
'vue/no-restricted-syntax': 'off',
|
|
164
|
-
|
|
165
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-shared-component-data.md
|
|
166
|
-
// data 属性必须是函数
|
|
167
|
-
'vue/no-shared-component-data': 'error',
|
|
168
|
-
|
|
169
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-side-effects-in-computed-properties.md
|
|
170
|
-
// 禁止在计算属性对属性进行修改,不限制
|
|
171
|
-
'vue/no-side-effects-in-computed-properties': 'off',
|
|
172
|
-
|
|
173
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-spaces-around-equal-signs-in-attribute.md
|
|
174
|
-
'vue/no-spaces-around-equal-signs-in-attribute': 'error',
|
|
175
|
-
|
|
176
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-template-key.md
|
|
177
|
-
// 禁止在 <template> 中使用 key 属性,不限制
|
|
178
|
-
'vue/no-template-key': 'off',
|
|
179
|
-
|
|
180
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-template-shadow.md
|
|
181
|
-
'vue/no-template-shadow': 'error',
|
|
182
|
-
|
|
183
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-textarea-mustache.md
|
|
184
|
-
'vue/no-textarea-mustache': 'error',
|
|
185
|
-
|
|
186
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-unused-components.md
|
|
187
|
-
// 禁止 components 中声明的组件在 template 中没有使用
|
|
188
|
-
'vue/no-unused-components': 'error',
|
|
189
|
-
|
|
190
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-unused-vars.md
|
|
191
|
-
'vue/no-unused-vars': 'error',
|
|
192
|
-
|
|
193
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-use-v-if-with-v-for.md
|
|
194
|
-
// 禁止 v-for 和 v-if 在同一元素上使用,不限制
|
|
195
|
-
'vue/no-use-v-if-with-v-for': 'off',
|
|
196
|
-
|
|
197
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-v-html.md
|
|
198
|
-
// 禁止使用 v-html,防止 xss
|
|
199
|
-
'vue/no-v-html': 'error',
|
|
200
|
-
|
|
201
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/object-curly-spacing.md
|
|
202
|
-
// 对象写在一行时,大括号里需要空格
|
|
203
|
-
'vue/object-curly-spacing': ['error', 'always'],
|
|
204
|
-
|
|
205
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/order-in-components.md
|
|
206
|
-
// 官方推荐顺序
|
|
207
|
-
"vue/order-in-components": ["error", {
|
|
208
|
-
"order": [
|
|
209
|
-
"el",
|
|
210
|
-
"name",
|
|
211
|
-
"key",
|
|
212
|
-
"parent",
|
|
213
|
-
"functional",
|
|
214
|
-
["delimiters", "comments"],
|
|
215
|
-
["components", "directives", "filters"],
|
|
216
|
-
"extends",
|
|
217
|
-
"mixins",
|
|
218
|
-
["provide", "inject"],
|
|
219
|
-
"ROUTER_GUARDS",
|
|
220
|
-
"layout",
|
|
221
|
-
"middleware",
|
|
222
|
-
"validate",
|
|
223
|
-
"scrollToTop",
|
|
224
|
-
"transition",
|
|
225
|
-
"loading",
|
|
226
|
-
"inheritAttrs",
|
|
227
|
-
"model",
|
|
228
|
-
["props", "propsData"],
|
|
229
|
-
"emits",
|
|
230
|
-
"setup",
|
|
231
|
-
"asyncData",
|
|
232
|
-
"data",
|
|
233
|
-
"fetch",
|
|
234
|
-
"head",
|
|
235
|
-
"computed",
|
|
236
|
-
"watch",
|
|
237
|
-
"watchQuery",
|
|
238
|
-
"LIFECYCLE_HOOKS",
|
|
239
|
-
"methods",
|
|
240
|
-
["template", "render"],
|
|
241
|
-
"renderError"
|
|
242
|
-
]
|
|
243
|
-
}],
|
|
244
|
-
|
|
245
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/prop-name-casing.md
|
|
246
|
-
// 组件 props 属性名驼峰命名
|
|
247
|
-
'vue/prop-name-casing': ['error', 'camelCase'],
|
|
248
|
-
|
|
249
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-component-is.md
|
|
250
|
-
// <component> 元素必须要有 :is 属性
|
|
251
|
-
'vue/require-component-is': 'error',
|
|
252
|
-
|
|
253
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-default-prop.md
|
|
254
|
-
// props 必须要有默认值,不限制
|
|
255
|
-
'vue/require-default-prop': 'off',
|
|
256
|
-
|
|
257
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-direct-export.md
|
|
258
|
-
// 组件必须要直接被 export。不限制
|
|
259
|
-
'vue/require-direct-export': 'off',
|
|
260
|
-
|
|
261
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-prop-type-constructor.md
|
|
262
|
-
// props 的 type 必须为构造函数,不能为字符串。
|
|
263
|
-
'vue/require-prop-type-constructor': 'error',
|
|
264
|
-
|
|
265
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-prop-types.md
|
|
266
|
-
// props 必须要有 type。
|
|
267
|
-
'vue/require-prop-types': 'error',
|
|
268
|
-
|
|
269
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-render-return.md
|
|
270
|
-
// render 函数必须要有返回值
|
|
271
|
-
'vue/require-render-return': 'error',
|
|
272
|
-
|
|
273
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-v-for-key.md
|
|
274
|
-
// v-for 指令必须要有 key 属性
|
|
275
|
-
'vue/require-v-for-key': 'error',
|
|
276
|
-
|
|
277
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/require-valid-default-prop.md
|
|
278
|
-
// props 默认值必须有效。不限制
|
|
279
|
-
'vue/require-valid-default-prop': 'off',
|
|
280
|
-
|
|
281
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/return-in-computed-property.md
|
|
282
|
-
// 计算属性必须要有返回值
|
|
283
|
-
'vue/return-in-computed-property': 'error',
|
|
284
|
-
|
|
285
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/singleline-html-element-content-newline.md
|
|
286
|
-
// 单行 html 元素后面必须换行。不限制
|
|
287
|
-
'vue/singleline-html-element-content-newline': 'off',
|
|
288
|
-
|
|
289
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/space-infix-ops.md
|
|
290
|
-
// 二元操作符两边要有空格
|
|
291
|
-
'vue/space-infix-ops': 'error',
|
|
292
|
-
|
|
293
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/space-unary-ops.md
|
|
294
|
-
// new, delete, typeof, void, yield 等后面必须有空格,一元操作符 -, +, --, ++, !, !! 禁止有空格
|
|
295
|
-
'vue/space-unary-ops': ['error', { words: true, nonwords: false }],
|
|
296
|
-
|
|
297
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/this-in-template.md
|
|
298
|
-
// 不允许在 template 中使用 this
|
|
299
|
-
'vue/this-in-template': ['error', 'never'],
|
|
300
|
-
|
|
301
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/use-v-on-exact.md
|
|
302
|
-
// 强制使用精确修饰词。不限制
|
|
303
|
-
'vue/use-v-on-exact': 'off',
|
|
304
|
-
|
|
305
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/v-bind-style.md
|
|
306
|
-
// v-bind 指令的写法。不限制
|
|
307
|
-
'vue/v-bind-style': 'off',
|
|
308
|
-
|
|
309
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/v-on-function-call.md
|
|
310
|
-
// 强制或禁止在 v-on 指令中不带参数的方法调用后使用括号。不限制
|
|
311
|
-
'vue/v-on-function-call': 'off',
|
|
312
|
-
|
|
313
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/v-on-style.md
|
|
314
|
-
// v-on 指令的写法。限制简写
|
|
315
|
-
'vue/v-on-style': ['error', 'shorthand'],
|
|
316
|
-
|
|
317
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-template-root.md
|
|
318
|
-
// 根节点必须合法
|
|
319
|
-
'vue/valid-template-root': 'error',
|
|
320
|
-
|
|
321
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-bind.md
|
|
322
|
-
// v-bind 指令必须合法
|
|
323
|
-
'vue/valid-v-bind': 'error',
|
|
324
|
-
|
|
325
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-cloak.md
|
|
326
|
-
// v-cloak 指令必须合法
|
|
327
|
-
'vue/valid-v-cloak': 'error',
|
|
328
|
-
|
|
329
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-else-if.md
|
|
330
|
-
// v-else-if 指令必须合法
|
|
331
|
-
'vue/valid-v-else-if': 'error',
|
|
332
|
-
|
|
333
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-else.md
|
|
334
|
-
// v-else 指令必须合法
|
|
335
|
-
'vue/valid-v-else': 'error',
|
|
336
|
-
|
|
337
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-for.md
|
|
338
|
-
// valid-v-for 指令必须合法
|
|
339
|
-
'vue/valid-v-for': 'error',
|
|
340
|
-
|
|
341
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-html.md
|
|
342
|
-
// v-html 指令必须合法
|
|
343
|
-
'vue/valid-v-html': 'error',
|
|
344
|
-
|
|
345
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-if.md
|
|
346
|
-
// v-if 指令必须合法
|
|
347
|
-
'vue/valid-v-if': 'error',
|
|
348
|
-
|
|
349
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-model.md
|
|
350
|
-
// v-model 指令必须合法
|
|
351
|
-
'vue/valid-v-model': 'error',
|
|
352
|
-
|
|
353
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-on.md
|
|
354
|
-
// v-on 指令必须合法
|
|
355
|
-
'vue/valid-v-on': 'error',
|
|
356
|
-
|
|
357
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-once.md
|
|
358
|
-
// v-once 指令必须合法
|
|
359
|
-
'vue/valid-v-once': 'error',
|
|
360
|
-
|
|
361
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-pre.md
|
|
362
|
-
// v-pre 指令必须合法
|
|
363
|
-
'vue/valid-v-pre': 'error',
|
|
364
|
-
|
|
365
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-show.md
|
|
366
|
-
// v-show 指令必须合法
|
|
367
|
-
'vue/valid-v-show': 'error',
|
|
368
|
-
|
|
369
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/valid-v-text.md
|
|
370
|
-
// v-text 指令必须合法
|
|
371
|
-
'vue/valid-v-text': 'error',
|
|
372
|
-
// https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/component-tags-order.md
|
|
373
|
-
'vue/component-tags-order': ['error', {
|
|
374
|
-
order: [ [ "script", "template" ], "style" ],
|
|
375
|
-
}],
|
|
376
|
-
};
|