@vue-jsx-vapor/eslint 2.4.2 → 2.4.3
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.cjs +2 -2
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -352,7 +352,7 @@ function validateReservedFirstConfig(context, reservedFirst) {
|
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
const reportedNodeAttributes = new WeakMap();
|
|
355
|
+
const reportedNodeAttributes = /* @__PURE__ */ new WeakMap();
|
|
356
356
|
/**
|
|
357
357
|
* Check if the current node attribute has already been reported with the same error type
|
|
358
358
|
* if that's the case then we don't report a new error
|
|
@@ -426,7 +426,7 @@ const rule = {
|
|
|
426
426
|
const locale = configuration.locale || "auto";
|
|
427
427
|
return {
|
|
428
428
|
Program() {
|
|
429
|
-
attributeMap = new WeakMap();
|
|
429
|
+
attributeMap = /* @__PURE__ */ new WeakMap();
|
|
430
430
|
},
|
|
431
431
|
JSXOpeningElement(node) {
|
|
432
432
|
const nodeReservedList = reservedFirst && !isDOMComponent(node) ? reservedList.filter((prop) => prop !== "dangerouslySetInnerHTML") : reservedList;
|
package/dist/index.d.cts
CHANGED
|
@@ -16,14 +16,14 @@ interface JsxSortPropsSchema0 {
|
|
|
16
16
|
locale?: string;
|
|
17
17
|
}
|
|
18
18
|
type JsxSortPropsRuleOptions = [JsxSortPropsSchema0?];
|
|
19
|
-
type MessageIds$1 = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha';
|
|
19
|
+
type MessageIds$1 = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha';
|
|
20
|
+
//#endregion
|
|
20
21
|
//#region src/rules/define-style/types.d.ts
|
|
21
22
|
interface DefineStyleSchema0 {
|
|
22
23
|
tabWidth?: number;
|
|
23
24
|
}
|
|
24
25
|
type DefineStyleRuleOptions = [DefineStyleSchema0?];
|
|
25
26
|
type MessageIds = 'define-style' | 'define-style-syntax-error';
|
|
26
|
-
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/rules/index.d.ts
|
|
29
29
|
declare const ruleOptions: {
|
|
@@ -35,7 +35,6 @@ interface RuleOptions {
|
|
|
35
35
|
'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
|
|
36
36
|
}
|
|
37
37
|
type Rules = Partial<{ [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]] }>;
|
|
38
|
-
|
|
39
38
|
//#endregion
|
|
40
39
|
//#region src/index.d.ts
|
|
41
40
|
declare const plugins: {
|
|
@@ -73,6 +72,5 @@ declare const _default: ({
|
|
|
73
72
|
'vue-jsx-vapor/define-style': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
|
|
74
73
|
};
|
|
75
74
|
};
|
|
76
|
-
|
|
77
75
|
//#endregion
|
|
78
76
|
export { Rules, _default as default, plugins, ruleOptions as rules };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,14 +16,14 @@ interface JsxSortPropsSchema0 {
|
|
|
16
16
|
locale?: string;
|
|
17
17
|
}
|
|
18
18
|
type JsxSortPropsRuleOptions = [JsxSortPropsSchema0?];
|
|
19
|
-
type MessageIds$1 = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha';
|
|
19
|
+
type MessageIds$1 = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha';
|
|
20
|
+
//#endregion
|
|
20
21
|
//#region src/rules/define-style/types.d.ts
|
|
21
22
|
interface DefineStyleSchema0 {
|
|
22
23
|
tabWidth?: number;
|
|
23
24
|
}
|
|
24
25
|
type DefineStyleRuleOptions = [DefineStyleSchema0?];
|
|
25
26
|
type MessageIds = 'define-style' | 'define-style-syntax-error';
|
|
26
|
-
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/rules/index.d.ts
|
|
29
29
|
declare const ruleOptions: {
|
|
@@ -35,7 +35,6 @@ interface RuleOptions {
|
|
|
35
35
|
'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
|
|
36
36
|
}
|
|
37
37
|
type Rules = Partial<{ [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]] }>;
|
|
38
|
-
|
|
39
38
|
//#endregion
|
|
40
39
|
//#region src/index.d.ts
|
|
41
40
|
declare const plugins: {
|
|
@@ -73,6 +72,5 @@ declare const _default: ({
|
|
|
73
72
|
'vue-jsx-vapor/define-style': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
|
|
74
73
|
};
|
|
75
74
|
};
|
|
76
|
-
|
|
77
75
|
//#endregion
|
|
78
76
|
export { Rules, _default as default, plugins, ruleOptions as rules };
|
package/dist/index.js
CHANGED
|
@@ -328,7 +328,7 @@ function validateReservedFirstConfig(context, reservedFirst) {
|
|
|
328
328
|
});
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const reportedNodeAttributes = new WeakMap();
|
|
331
|
+
const reportedNodeAttributes = /* @__PURE__ */ new WeakMap();
|
|
332
332
|
/**
|
|
333
333
|
* Check if the current node attribute has already been reported with the same error type
|
|
334
334
|
* if that's the case then we don't report a new error
|
|
@@ -402,7 +402,7 @@ const rule = {
|
|
|
402
402
|
const locale = configuration.locale || "auto";
|
|
403
403
|
return {
|
|
404
404
|
Program() {
|
|
405
|
-
attributeMap = new WeakMap();
|
|
405
|
+
attributeMap = /* @__PURE__ */ new WeakMap();
|
|
406
406
|
},
|
|
407
407
|
JSXOpeningElement(node) {
|
|
408
408
|
const nodeReservedList = reservedFirst && !isDOMComponent(node) ? reservedList.filter((prop) => prop !== "dangerouslySetInnerHTML") : reservedList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-jsx-vapor/eslint",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "Vue JSX Vapor ESLint Plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@prettier/sync": "^0.5.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@typescript-eslint/utils": "^8.
|
|
40
|
+
"@typescript-eslint/utils": "^8.33.0",
|
|
41
41
|
"eslint-vitest-rule-tester": "^2.2.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|