@vue-jsx-vapor/eslint 2.3.5 → 2.4.0

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
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  Object.defineProperty(exports, '__esModule', { value: true });
3
2
  //#region rolldown:runtime
4
3
  var __create = Object.create;
@@ -559,6 +558,6 @@ var src_default = ({ rules = {},...options } = {}) => ({
559
558
  });
560
559
 
561
560
  //#endregion
562
- exports.default = src_default
563
- exports.plugins = plugins
564
- exports.rules = rules_default
561
+ exports.default = src_default;
562
+ exports.plugins = plugins;
563
+ exports.rules = rules_default;
package/dist/index.d.cts CHANGED
@@ -1,76 +1,77 @@
1
- import { ESLint, Linter } from "eslint";
2
- import { RuleListener, RuleModule } from "@typescript-eslint/utils/ts-eslint";
1
+ import * as _typescript_eslint_utils_ts_eslint20 from "@typescript-eslint/utils/ts-eslint";
2
+ import * as _typescript_eslint_utils_ts_eslint2 from "@typescript-eslint/utils/ts-eslint";
3
+ import * as eslint16 from "eslint";
4
+ import { Linter } from "eslint";
3
5
 
4
- //#region src/rules/define-style/types.d.ts
5
- interface DefineStyleSchema0 {
6
- tabWidth?: number;
7
- }
8
- type DefineStyleRuleOptions = [DefineStyleSchema0?];
9
- type MessageIds$1 = 'define-style' | 'define-style-syntax-error';
10
-
11
- //#endregion
12
6
  //#region src/rules/jsx-sort-props/types.d.ts
13
7
  interface JsxSortPropsSchema0 {
14
- callbacksLast?: boolean;
15
- shorthandFirst?: boolean;
16
- shorthandLast?: boolean;
17
- multiline?: 'ignore' | 'first' | 'last';
18
- ignoreCase?: boolean;
19
- noSortAlphabetically?: boolean;
20
- reservedFirst?: string[] | boolean;
21
- reservedLast?: string[];
22
- locale?: string;
8
+ callbacksLast?: boolean;
9
+ shorthandFirst?: boolean;
10
+ shorthandLast?: boolean;
11
+ multiline?: 'ignore' | 'first' | 'last';
12
+ ignoreCase?: boolean;
13
+ noSortAlphabetically?: boolean;
14
+ reservedFirst?: string[] | boolean;
15
+ reservedLast?: string[];
16
+ locale?: string;
23
17
  }
24
18
  type JsxSortPropsRuleOptions = [JsxSortPropsSchema0?];
25
- type MessageIds = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha';
19
+ type MessageIds$1 = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha'; //#endregion
20
+ //#region src/rules/define-style/types.d.ts
21
+ interface DefineStyleSchema0 {
22
+ tabWidth?: number;
23
+ }
24
+ type DefineStyleRuleOptions = [DefineStyleSchema0?];
25
+ type MessageIds = 'define-style' | 'define-style-syntax-error';
26
26
 
27
27
  //#endregion
28
28
  //#region src/rules/index.d.ts
29
29
  declare const ruleOptions: {
30
- 'jsx-sort-props': RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, RuleListener>;
31
- 'define-style': RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, RuleListener>;
30
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint20.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint20.RuleListener>;
31
+ 'define-style': _typescript_eslint_utils_ts_eslint20.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint20.RuleListener>;
32
32
  };
33
33
  interface RuleOptions {
34
- 'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
35
- 'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
34
+ 'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
35
+ 'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
36
36
  }
37
- type Rules = Partial<{
38
- [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]];
39
- }>;
37
+ type Rules = Partial<{ [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]] }>;
40
38
 
41
39
  //#endregion
42
40
  //#region src/index.d.ts
43
41
  declare const plugins: {
44
- 'vue-jsx-vapor': {
45
- rules: {
46
- 'jsx-sort-props': RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, RuleListener>;
47
- 'define-style': RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, RuleListener>;
48
- };
42
+ 'vue-jsx-vapor': {
43
+ rules: {
44
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
45
+ 'define-style': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
49
46
  };
47
+ };
50
48
  };
51
- declare const _default: ({ rules, ...options }?: Linter.Config<Rules>) => {
52
- name: 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': RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, RuleListener>;
63
- 'define-style': RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, RuleListener>;
64
- };
65
- };
66
- } | Record<string, 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)?];
49
+ declare const _default: ({
50
+ rules: ruleOptions,
51
+ ...options
52
+ }?: Linter.Config<Rules>) => {
53
+ name: string;
54
+ files?: Array<string | string[]>;
55
+ ignores?: string[];
56
+ language?: string;
57
+ languageOptions?: Linter.LanguageOptions;
58
+ linterOptions?: Linter.LinterOptions;
59
+ processor?: string | Linter.Processor;
60
+ plugins: {
61
+ 'vue-jsx-vapor': {
62
+ rules: {
63
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
64
+ 'define-style': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
65
+ };
73
66
  };
67
+ } | Record<string, eslint16.ESLint.Plugin>;
68
+ settings?: Record<string, unknown>;
69
+ rules: {
70
+ 'style/jsx-sort-props': string;
71
+ 'react/jsx-sort-props': string;
72
+ 'vue-jsx-vapor/jsx-sort-props': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (JsxSortPropsSchema0 | undefined)?];
73
+ 'vue-jsx-vapor/define-style': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
74
+ };
74
75
  };
75
76
 
76
77
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,76 +1,77 @@
1
- import { ESLint, Linter } from "eslint";
2
- import { RuleListener, RuleModule } from "@typescript-eslint/utils/ts-eslint";
1
+ import * as _typescript_eslint_utils_ts_eslint20 from "@typescript-eslint/utils/ts-eslint";
2
+ import * as _typescript_eslint_utils_ts_eslint2 from "@typescript-eslint/utils/ts-eslint";
3
+ import * as eslint16 from "eslint";
4
+ import { Linter } from "eslint";
3
5
 
4
- //#region src/rules/define-style/types.d.ts
5
- interface DefineStyleSchema0 {
6
- tabWidth?: number;
7
- }
8
- type DefineStyleRuleOptions = [DefineStyleSchema0?];
9
- type MessageIds$1 = 'define-style' | 'define-style-syntax-error';
10
-
11
- //#endregion
12
6
  //#region src/rules/jsx-sort-props/types.d.ts
13
7
  interface JsxSortPropsSchema0 {
14
- callbacksLast?: boolean;
15
- shorthandFirst?: boolean;
16
- shorthandLast?: boolean;
17
- multiline?: 'ignore' | 'first' | 'last';
18
- ignoreCase?: boolean;
19
- noSortAlphabetically?: boolean;
20
- reservedFirst?: string[] | boolean;
21
- reservedLast?: string[];
22
- locale?: string;
8
+ callbacksLast?: boolean;
9
+ shorthandFirst?: boolean;
10
+ shorthandLast?: boolean;
11
+ multiline?: 'ignore' | 'first' | 'last';
12
+ ignoreCase?: boolean;
13
+ noSortAlphabetically?: boolean;
14
+ reservedFirst?: string[] | boolean;
15
+ reservedLast?: string[];
16
+ locale?: string;
23
17
  }
24
18
  type JsxSortPropsRuleOptions = [JsxSortPropsSchema0?];
25
- type MessageIds = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha';
19
+ type MessageIds$1 = 'listIsEmpty' | 'listReservedPropsFirst' | 'listReservedPropsLast' | 'listCallbacksLast' | 'listShorthandFirst' | 'listShorthandLast' | 'listMultilineFirst' | 'listMultilineLast' | 'sortPropsByAlpha'; //#endregion
20
+ //#region src/rules/define-style/types.d.ts
21
+ interface DefineStyleSchema0 {
22
+ tabWidth?: number;
23
+ }
24
+ type DefineStyleRuleOptions = [DefineStyleSchema0?];
25
+ type MessageIds = 'define-style' | 'define-style-syntax-error';
26
26
 
27
27
  //#endregion
28
28
  //#region src/rules/index.d.ts
29
29
  declare const ruleOptions: {
30
- 'jsx-sort-props': RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, RuleListener>;
31
- 'define-style': RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, RuleListener>;
30
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint20.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint20.RuleListener>;
31
+ 'define-style': _typescript_eslint_utils_ts_eslint20.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint20.RuleListener>;
32
32
  };
33
33
  interface RuleOptions {
34
- 'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
35
- 'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
34
+ 'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
35
+ 'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
36
36
  }
37
- type Rules = Partial<{
38
- [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]];
39
- }>;
37
+ type Rules = Partial<{ [K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]] }>;
40
38
 
41
39
  //#endregion
42
40
  //#region src/index.d.ts
43
41
  declare const plugins: {
44
- 'vue-jsx-vapor': {
45
- rules: {
46
- 'jsx-sort-props': RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, RuleListener>;
47
- 'define-style': RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, RuleListener>;
48
- };
42
+ 'vue-jsx-vapor': {
43
+ rules: {
44
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
45
+ 'define-style': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
49
46
  };
47
+ };
50
48
  };
51
- declare const _default: ({ rules, ...options }?: Linter.Config<Rules>) => {
52
- name: 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': RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, RuleListener>;
63
- 'define-style': RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, RuleListener>;
64
- };
65
- };
66
- } | Record<string, 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)?];
49
+ declare const _default: ({
50
+ rules: ruleOptions,
51
+ ...options
52
+ }?: Linter.Config<Rules>) => {
53
+ name: string;
54
+ files?: Array<string | string[]>;
55
+ ignores?: string[];
56
+ language?: string;
57
+ languageOptions?: Linter.LanguageOptions;
58
+ linterOptions?: Linter.LinterOptions;
59
+ processor?: string | Linter.Processor;
60
+ plugins: {
61
+ 'vue-jsx-vapor': {
62
+ rules: {
63
+ 'jsx-sort-props': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds$1, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
64
+ 'define-style': _typescript_eslint_utils_ts_eslint2.RuleModule<MessageIds, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint2.RuleListener>;
65
+ };
73
66
  };
67
+ } | Record<string, eslint16.ESLint.Plugin>;
68
+ settings?: Record<string, unknown>;
69
+ rules: {
70
+ 'style/jsx-sort-props': string;
71
+ 'react/jsx-sort-props': string;
72
+ 'vue-jsx-vapor/jsx-sort-props': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (JsxSortPropsSchema0 | undefined)?];
73
+ 'vue-jsx-vapor/define-style': 1 | "off" | 2 | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
74
+ };
74
75
  };
75
76
 
76
77
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-jsx-vapor/eslint",
3
- "version": "2.3.5",
3
+ "version": "2.4.0",
4
4
  "description": "Vue JSX Vapor ESLint Plugin",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -26,22 +26,8 @@
26
26
  "types": "dist/index.d.ts",
27
27
  "exports": {
28
28
  ".": {
29
- "dev": "./src/index.ts",
30
- "require": "./dist/index.cjs",
31
- "import": "./dist/index.js"
32
- },
33
- "./*": "./*"
34
- },
35
- "typesVersions": {
36
- "*": {
37
- "*": [
38
- "./dist/*",
39
- "./*"
40
- ]
41
- }
42
- },
43
- "publishConfig": {
44
- ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "jsx-vapor-dev": "./src/index.ts",
45
31
  "require": "./dist/index.cjs",
46
32
  "import": "./dist/index.js"
47
33
  },