@vue-jsx-vapor/eslint 3.0.4 → 3.1.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/dist/index.cjs CHANGED
@@ -7,12 +7,16 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
- get: ((k) => from[k]).bind(null, key),
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) {
14
+ __defProp(to, key, {
15
+ get: ((k) => from[k]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ }
16
20
  }
17
21
  return to;
18
22
  };
@@ -22,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
26
  }) : target, mod));
23
27
 
24
28
  //#endregion
25
- let __prettier_sync = require("@prettier/sync");
26
- __prettier_sync = __toESM(__prettier_sync);
29
+ let _prettier_sync = require("@prettier/sync");
30
+ _prettier_sync = __toESM(_prettier_sync);
27
31
 
28
32
  //#region src/rules/define-style/index.ts
29
33
  const rule$1 = {
@@ -56,7 +60,7 @@ const rule$1 = {
56
60
  const cssRaw = context.sourceCode.text.slice(arg.range[0] + 1, arg.range[1] - 1);
57
61
  let formattedCss = "";
58
62
  try {
59
- formattedCss = __prettier_sync.default.format(arg.quasis.map((i) => i.value.raw + (arg.expressions[index] ? `-MACROS_START-${context.sourceCode.text.slice(...arg.expressions[index++].range)}-MACROS_END-` : "")).join(""), {
63
+ formattedCss = _prettier_sync.default.format(arg.quasis.map((i) => i.value.raw + (arg.expressions[index] ? `-MACROS_START-${context.sourceCode.text.slice(...arg.expressions[index++].range)}-MACROS_END-` : "")).join(""), {
60
64
  parser,
61
65
  tabWidth
62
66
  }).replaceAll("-MACROS_START-", "${").replaceAll("-MACROS_END-", "}");
@@ -524,7 +528,7 @@ var rules_default = ruleOptions;
524
528
  //#endregion
525
529
  //#region src/index.ts
526
530
  const plugins = { "vue-jsx-vapor": { rules: rules_default } };
527
- var src_default = ({ rules = {},...options } = {}) => ({
531
+ const config = ({ rules = {}, ...options } = {}) => ({
528
532
  name: "vue-jsx-vapor",
529
533
  plugins,
530
534
  rules: {
@@ -553,6 +557,7 @@ var src_default = ({ rules = {},...options } = {}) => ({
553
557
  },
554
558
  ...options
555
559
  });
560
+ var src_default = config;
556
561
 
557
562
  //#endregion
558
563
  exports.default = src_default;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _typescript_eslint_utils_ts_eslint7 from "@typescript-eslint/utils/ts-eslint";
2
- import * as eslint0 from "eslint";
1
+ import * as _typescript_eslint_utils_ts_eslint3 from "@typescript-eslint/utils/ts-eslint";
3
2
  import { Linter } from "eslint";
4
3
 
5
4
  //#region src/rules/jsx-sort-props/types.d.ts
@@ -26,8 +25,8 @@ type MessageIds = 'define-style' | 'define-style-syntax-error';
26
25
  //#endregion
27
26
  //#region src/rules/index.d.ts
28
27
  declare const ruleOptions: {
29
- 'jsx-sort-props': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
30
- 'define-style': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
28
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
29
+ 'define-style': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
31
30
  };
32
31
  interface RuleOptions {
33
32
  'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
@@ -39,38 +38,11 @@ type Rules = Partial<{ [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.R
39
38
  declare const plugins: {
40
39
  'vue-jsx-vapor': {
41
40
  rules: {
42
- 'jsx-sort-props': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
43
- 'define-style': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
41
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
42
+ 'define-style': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
44
43
  };
45
44
  };
46
45
  };
47
- declare const _default: ({
48
- rules: ruleOptions,
49
- ...options
50
- }?: Linter.Config<Rules>) => {
51
- name: string;
52
- basePath?: string;
53
- files?: Array<string | string[]>;
54
- ignores?: string[];
55
- language?: string;
56
- languageOptions?: Linter.LanguageOptions;
57
- linterOptions?: Linter.LinterOptions;
58
- processor?: string | Linter.Processor;
59
- plugins: {
60
- 'vue-jsx-vapor': {
61
- rules: {
62
- 'jsx-sort-props': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
63
- 'define-style': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
64
- };
65
- };
66
- } | Record<string, eslint0.ESLint.Plugin>;
67
- settings?: Record<string, unknown>;
68
- rules: {
69
- 'style/jsx-sort-props': string;
70
- 'react/jsx-sort-props': string;
71
- 'vue-jsx-vapor/jsx-sort-props': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (JsxSortPropsSchema0 | undefined)?];
72
- 'vue-jsx-vapor/define-style': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
73
- };
74
- };
46
+ declare const config: (options: Linter.Config<Rules>) => Rules & Record<string, unknown>;
75
47
  //#endregion
76
- export { type Rules, _default as default, plugins, ruleOptions as rules };
48
+ export { type Rules, config as default, plugins, ruleOptions as rules };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _typescript_eslint_utils_ts_eslint7 from "@typescript-eslint/utils/ts-eslint";
2
- import * as eslint0 from "eslint";
1
+ import * as _typescript_eslint_utils_ts_eslint3 from "@typescript-eslint/utils/ts-eslint";
3
2
  import { Linter } from "eslint";
4
3
 
5
4
  //#region src/rules/jsx-sort-props/types.d.ts
@@ -26,8 +25,8 @@ type MessageIds = 'define-style' | 'define-style-syntax-error';
26
25
  //#endregion
27
26
  //#region src/rules/index.d.ts
28
27
  declare const ruleOptions: {
29
- 'jsx-sort-props': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
30
- 'define-style': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
28
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
29
+ 'define-style': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
31
30
  };
32
31
  interface RuleOptions {
33
32
  'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
@@ -39,38 +38,11 @@ type Rules = Partial<{ [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.R
39
38
  declare const plugins: {
40
39
  'vue-jsx-vapor': {
41
40
  rules: {
42
- 'jsx-sort-props': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
43
- 'define-style': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
41
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
42
+ 'define-style': _typescript_eslint_utils_ts_eslint3.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint3.RuleListener>;
44
43
  };
45
44
  };
46
45
  };
47
- declare const _default: ({
48
- rules: ruleOptions,
49
- ...options
50
- }?: Linter.Config<Rules>) => {
51
- name: string;
52
- basePath?: string;
53
- files?: Array<string | string[]>;
54
- ignores?: string[];
55
- language?: string;
56
- languageOptions?: Linter.LanguageOptions;
57
- linterOptions?: Linter.LinterOptions;
58
- processor?: string | Linter.Processor;
59
- plugins: {
60
- 'vue-jsx-vapor': {
61
- rules: {
62
- 'jsx-sort-props': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
63
- 'define-style': _typescript_eslint_utils_ts_eslint7.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint7.RuleListener>;
64
- };
65
- };
66
- } | Record<string, eslint0.ESLint.Plugin>;
67
- settings?: Record<string, unknown>;
68
- rules: {
69
- 'style/jsx-sort-props': string;
70
- 'react/jsx-sort-props': string;
71
- 'vue-jsx-vapor/jsx-sort-props': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (JsxSortPropsSchema0 | undefined)?];
72
- 'vue-jsx-vapor/define-style': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
73
- };
74
- };
46
+ declare const config: (options: Linter.Config<Rules>) => Rules & Record<string, unknown>;
75
47
  //#endregion
76
- export { type Rules, _default as default, plugins, ruleOptions as rules };
48
+ export { type Rules, config as default, plugins, ruleOptions as rules };
package/dist/index.js CHANGED
@@ -499,7 +499,7 @@ var rules_default = ruleOptions;
499
499
  //#endregion
500
500
  //#region src/index.ts
501
501
  const plugins = { "vue-jsx-vapor": { rules: rules_default } };
502
- var src_default = ({ rules = {},...options } = {}) => ({
502
+ const config = ({ rules = {}, ...options } = {}) => ({
503
503
  name: "vue-jsx-vapor",
504
504
  plugins,
505
505
  rules: {
@@ -528,6 +528,7 @@ var src_default = ({ rules = {},...options } = {}) => ({
528
528
  },
529
529
  ...options
530
530
  });
531
+ var src_default = config;
531
532
 
532
533
  //#endregion
533
534
  export { src_default as default, plugins, rules_default as rules };
package/package.json CHANGED
@@ -1,29 +1,23 @@
1
1
  {
2
2
  "name": "@vue-jsx-vapor/eslint",
3
- "version": "3.0.4",
4
- "description": "Vue JSX Vapor ESLint Plugin",
5
3
  "type": "module",
6
- "keywords": [
7
- "vue",
8
- "jsx",
9
- "vapor",
10
- "eslint"
11
- ],
4
+ "version": "3.1.1",
5
+ "description": "Vue JSX Vapor ESLint Plugin",
12
6
  "license": "MIT",
13
7
  "homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
14
- "bugs": {
15
- "url": "https://github.com/vuejs/vue-jsx-vapor/issues"
16
- },
17
8
  "repository": {
18
9
  "type": "git",
19
10
  "url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
20
11
  },
21
- "files": [
22
- "dist"
12
+ "bugs": {
13
+ "url": "https://github.com/vuejs/vue-jsx-vapor/issues"
14
+ },
15
+ "keywords": [
16
+ "vue",
17
+ "jsx",
18
+ "vapor",
19
+ "eslint"
23
20
  ],
24
- "main": "dist/index.cjs",
25
- "module": "dist/index.js",
26
- "types": "dist/index.d.ts",
27
21
  "exports": {
28
22
  ".": {
29
23
  "types": "./dist/index.d.ts",
@@ -33,12 +27,18 @@
33
27
  },
34
28
  "./*": "./*"
35
29
  },
30
+ "main": "dist/index.cjs",
31
+ "module": "dist/index.js",
32
+ "types": "dist/index.d.ts",
33
+ "files": [
34
+ "dist"
35
+ ],
36
36
  "dependencies": {
37
37
  "@prettier/sync": "^0.6.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@typescript-eslint/utils": "^8.44.0",
41
- "eslint-vitest-rule-tester": "^2.2.1"
40
+ "@typescript-eslint/utils": "^8.50.1",
41
+ "eslint-vitest-rule-tester": "^2.3.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsdown",