@pawover/kit-eslint-rules 0.2.0-alpha.3 → 0.2.0-alpha.4
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/dist/index.js +17 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4926,7 +4926,7 @@ const rules = {
|
|
|
4926
4926
|
* @descEN require using `useTemplateRef` instead of `ref`/`shallowRef` for template refs
|
|
4927
4927
|
* @see https://eslint.vuejs.org/rules/prefer-use-template-ref.html
|
|
4928
4928
|
*/
|
|
4929
|
-
"vue/prefer-use-template-ref":
|
|
4929
|
+
"vue/prefer-use-template-ref": 1,
|
|
4930
4930
|
/**
|
|
4931
4931
|
* @desc 要求使用 v-model 而非 :prop / @update:prop 组合
|
|
4932
4932
|
* @descEN enforce using `v-model` instead of `:prop`/`@update:prop` pair
|
|
@@ -4956,7 +4956,7 @@ const rules = {
|
|
|
4956
4956
|
* @descEN require slots to be explicitly defined
|
|
4957
4957
|
* @see https://eslint.vuejs.org/rules/require-explicit-slots.html
|
|
4958
4958
|
*/
|
|
4959
|
-
"vue/require-explicit-slots":
|
|
4959
|
+
"vue/require-explicit-slots": 1,
|
|
4960
4960
|
/**
|
|
4961
4961
|
* @desc 要求使用 expose 显式声明公开属性
|
|
4962
4962
|
* @descEN require declare public properties using `expose`
|
|
@@ -4998,7 +4998,7 @@ const rules = {
|
|
|
4998
4998
|
* @descEN require `ref` and `shallowRef` functions to be strongly typed
|
|
4999
4999
|
* @see https://eslint.vuejs.org/rules/require-typed-ref.html
|
|
5000
5000
|
*/
|
|
5001
|
-
"vue/require-typed-ref":
|
|
5001
|
+
"vue/require-typed-ref": 0,
|
|
5002
5002
|
/**
|
|
5003
5003
|
* @desc 限制只能使用指定组件名
|
|
5004
5004
|
* @descEN enforce using only specific component names
|
|
@@ -5059,20 +5059,23 @@ const rules = {
|
|
|
5059
5059
|
* @desc 要求模板中数组字面量开闭括号遵循换行规则
|
|
5060
5060
|
* @descEN Enforce linebreaks after opening and before closing array brackets in `<template>`
|
|
5061
5061
|
* @see https://eslint.vuejs.org/rules/array-bracket-newline.html
|
|
5062
|
+
* @see https://eslint.style/rules/list-style
|
|
5062
5063
|
*/
|
|
5063
|
-
"vue/array-bracket-newline":
|
|
5064
|
+
"vue/array-bracket-newline": 0,
|
|
5064
5065
|
/**
|
|
5065
5066
|
* @desc 要求模板中数组括号内空格一致
|
|
5066
5067
|
* @descEN Enforce consistent spacing inside array brackets in `<template>`
|
|
5067
5068
|
* @see https://eslint.vuejs.org/rules/array-bracket-spacing.html
|
|
5069
|
+
* @see https://eslint.style/rules/list-style
|
|
5068
5070
|
*/
|
|
5069
|
-
"vue/array-bracket-spacing":
|
|
5071
|
+
"vue/array-bracket-spacing": 0,
|
|
5070
5072
|
/**
|
|
5071
5073
|
* @desc 要求模板中数组元素逐个换行
|
|
5072
5074
|
* @descEN Enforce line breaks after each array element in `<template>`
|
|
5073
5075
|
* @see https://eslint.vuejs.org/rules/array-element-newline.html
|
|
5076
|
+
* @see https://eslint.style/rules/list-style
|
|
5074
5077
|
*/
|
|
5075
|
-
"vue/array-element-newline":
|
|
5078
|
+
"vue/array-element-newline": 0,
|
|
5076
5079
|
/**
|
|
5077
5080
|
* @desc 要求模板中箭头函数箭头前后空格一致
|
|
5078
5081
|
* @descEN Enforce consistent spacing before and after the arrow in arrow functions in `<template>`
|
|
@@ -5233,20 +5236,23 @@ const rules = {
|
|
|
5233
5236
|
* @desc 要求模板中对象花括号内换行风格一致
|
|
5234
5237
|
* @descEN Enforce consistent line breaks after opening and before closing braces in `<template>`
|
|
5235
5238
|
* @see https://eslint.vuejs.org/rules/object-curly-newline.html
|
|
5239
|
+
* @see https://eslint.style/rules/list-style
|
|
5236
5240
|
*/
|
|
5237
|
-
"vue/object-curly-newline":
|
|
5241
|
+
"vue/object-curly-newline": 0,
|
|
5238
5242
|
/**
|
|
5239
5243
|
* @desc 要求模板中对象花括号内空格一致
|
|
5240
5244
|
* @descEN Enforce consistent spacing inside braces in `<template>`
|
|
5241
5245
|
* @see https://eslint.vuejs.org/rules/object-curly-spacing.html
|
|
5246
|
+
* @see https://eslint.style/rules/list-style
|
|
5242
5247
|
*/
|
|
5243
|
-
"vue/object-curly-spacing":
|
|
5248
|
+
"vue/object-curly-spacing": 0,
|
|
5244
5249
|
/**
|
|
5245
5250
|
* @desc 要求模板中对象属性逐个换行
|
|
5246
5251
|
* @descEN Enforce placing object properties on separate lines in `<template>`
|
|
5247
5252
|
* @see https://eslint.vuejs.org/rules/object-property-newline.html
|
|
5253
|
+
* @see https://eslint.style/rules/list-style
|
|
5248
5254
|
*/
|
|
5249
|
-
"vue/object-property-newline":
|
|
5255
|
+
"vue/object-property-newline": 0,
|
|
5250
5256
|
/**
|
|
5251
5257
|
* @desc 要求模板中使用对象简写语法
|
|
5252
5258
|
* @descEN Require or disallow method and property shorthand syntax for object literals in `<template>`
|
|
@@ -5260,11 +5266,10 @@ const rules = {
|
|
|
5260
5266
|
*/
|
|
5261
5267
|
"vue/operator-linebreak": [
|
|
5262
5268
|
2,
|
|
5263
|
-
"
|
|
5269
|
+
"before",
|
|
5264
5270
|
{ overrides: {
|
|
5265
5271
|
"?": "ignore",
|
|
5266
|
-
":": "ignore"
|
|
5267
|
-
"|": "before"
|
|
5272
|
+
":": "ignore"
|
|
5268
5273
|
} }
|
|
5269
5274
|
],
|
|
5270
5275
|
/**
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/pawover"
|
|
7
7
|
},
|
|
8
8
|
"description": "Self-contained ESLint flat config preset: javascript, typescript, react, vue, stylistic, antfu and import rules, with pinned bundled plugins",
|
|
9
|
-
"version": "0.2.0-alpha.
|
|
9
|
+
"version": "0.2.0-alpha.4",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"pawover",
|