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