@vue-jsx-vapor/eslint 2.3.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/LICENSE +21 -0
- package/dist/index.cjs +634 -0
- package/dist/index.d.cts +82 -0
- package/dist/index.d.ts +82 -0
- package/dist/index.js +634 -0
- package/package.json +63 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as eslint from 'eslint';
|
|
2
|
+
import { Linter } from 'eslint';
|
|
3
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
4
|
+
|
|
5
|
+
interface DefineStyleSchema0 {
|
|
6
|
+
tabWidth?: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DefineStyleRuleOptions = [DefineStyleSchema0?]
|
|
10
|
+
type MessageIds$1 = 'define-style' | 'define-style-syntax-error'
|
|
11
|
+
|
|
12
|
+
interface JsxSortPropsSchema0 {
|
|
13
|
+
callbacksLast?: boolean
|
|
14
|
+
shorthandFirst?: boolean
|
|
15
|
+
shorthandLast?: boolean
|
|
16
|
+
multiline?: 'ignore' | 'first' | 'last'
|
|
17
|
+
ignoreCase?: boolean
|
|
18
|
+
noSortAlphabetically?: boolean
|
|
19
|
+
reservedFirst?: string[] | boolean
|
|
20
|
+
reservedLast?: string[]
|
|
21
|
+
locale?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type JsxSortPropsRuleOptions = [JsxSortPropsSchema0?]
|
|
25
|
+
type MessageIds =
|
|
26
|
+
| 'listIsEmpty'
|
|
27
|
+
| 'listReservedPropsFirst'
|
|
28
|
+
| 'listReservedPropsLast'
|
|
29
|
+
| 'listCallbacksLast'
|
|
30
|
+
| 'listShorthandFirst'
|
|
31
|
+
| 'listShorthandLast'
|
|
32
|
+
| 'listMultilineFirst'
|
|
33
|
+
| 'listMultilineLast'
|
|
34
|
+
| 'sortPropsByAlpha'
|
|
35
|
+
|
|
36
|
+
declare const ruleOptions: {
|
|
37
|
+
'jsx-sort-props': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
38
|
+
'define-style': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
39
|
+
};
|
|
40
|
+
interface RuleOptions {
|
|
41
|
+
'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
|
|
42
|
+
'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
|
|
43
|
+
}
|
|
44
|
+
type Rules = Partial<{
|
|
45
|
+
[K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]];
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
declare const plugins: {
|
|
49
|
+
'vue-jsx-vapor': {
|
|
50
|
+
rules: {
|
|
51
|
+
'jsx-sort-props': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
52
|
+
'define-style': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
declare const _default: ({ rules, ...options }?: Linter.Config<Rules>) => {
|
|
58
|
+
name: string;
|
|
59
|
+
files?: Array<string | string[]>;
|
|
60
|
+
ignores?: string[];
|
|
61
|
+
language?: string;
|
|
62
|
+
languageOptions?: Linter.LanguageOptions;
|
|
63
|
+
linterOptions?: Linter.LinterOptions;
|
|
64
|
+
processor?: string | Linter.Processor;
|
|
65
|
+
plugins: {
|
|
66
|
+
'vue-jsx-vapor': {
|
|
67
|
+
rules: {
|
|
68
|
+
'jsx-sort-props': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
|
+
'define-style': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | Record<string, eslint.ESLint.Plugin>;
|
|
73
|
+
settings?: Record<string, unknown>;
|
|
74
|
+
rules: {
|
|
75
|
+
'style/jsx-sort-props': string;
|
|
76
|
+
'react/jsx-sort-props': string;
|
|
77
|
+
'vue-jsx-vapor/jsx-sort-props': 1 | 2 | "off" | "warn" | "error" | [Linter.RuleSeverity, (JsxSortPropsSchema0 | undefined)?];
|
|
78
|
+
'vue-jsx-vapor/define-style': 1 | 2 | "off" | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export { type Rules, _default as default, plugins, ruleOptions as rules };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as eslint from 'eslint';
|
|
2
|
+
import { Linter } from 'eslint';
|
|
3
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
4
|
+
|
|
5
|
+
interface DefineStyleSchema0 {
|
|
6
|
+
tabWidth?: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DefineStyleRuleOptions = [DefineStyleSchema0?]
|
|
10
|
+
type MessageIds$1 = 'define-style' | 'define-style-syntax-error'
|
|
11
|
+
|
|
12
|
+
interface JsxSortPropsSchema0 {
|
|
13
|
+
callbacksLast?: boolean
|
|
14
|
+
shorthandFirst?: boolean
|
|
15
|
+
shorthandLast?: boolean
|
|
16
|
+
multiline?: 'ignore' | 'first' | 'last'
|
|
17
|
+
ignoreCase?: boolean
|
|
18
|
+
noSortAlphabetically?: boolean
|
|
19
|
+
reservedFirst?: string[] | boolean
|
|
20
|
+
reservedLast?: string[]
|
|
21
|
+
locale?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type JsxSortPropsRuleOptions = [JsxSortPropsSchema0?]
|
|
25
|
+
type MessageIds =
|
|
26
|
+
| 'listIsEmpty'
|
|
27
|
+
| 'listReservedPropsFirst'
|
|
28
|
+
| 'listReservedPropsLast'
|
|
29
|
+
| 'listCallbacksLast'
|
|
30
|
+
| 'listShorthandFirst'
|
|
31
|
+
| 'listShorthandLast'
|
|
32
|
+
| 'listMultilineFirst'
|
|
33
|
+
| 'listMultilineLast'
|
|
34
|
+
| 'sortPropsByAlpha'
|
|
35
|
+
|
|
36
|
+
declare const ruleOptions: {
|
|
37
|
+
'jsx-sort-props': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
38
|
+
'define-style': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
39
|
+
};
|
|
40
|
+
interface RuleOptions {
|
|
41
|
+
'vue-jsx-vapor/jsx-sort-props': JsxSortPropsRuleOptions;
|
|
42
|
+
'vue-jsx-vapor/define-style': DefineStyleRuleOptions;
|
|
43
|
+
}
|
|
44
|
+
type Rules = Partial<{
|
|
45
|
+
[K in keyof RuleOptions]: Linter.RuleSeverity | [Linter.RuleSeverity, ...RuleOptions[K]];
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
declare const plugins: {
|
|
49
|
+
'vue-jsx-vapor': {
|
|
50
|
+
rules: {
|
|
51
|
+
'jsx-sort-props': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
52
|
+
'define-style': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
declare const _default: ({ rules, ...options }?: Linter.Config<Rules>) => {
|
|
58
|
+
name: string;
|
|
59
|
+
files?: Array<string | string[]>;
|
|
60
|
+
ignores?: string[];
|
|
61
|
+
language?: string;
|
|
62
|
+
languageOptions?: Linter.LanguageOptions;
|
|
63
|
+
linterOptions?: Linter.LinterOptions;
|
|
64
|
+
processor?: string | Linter.Processor;
|
|
65
|
+
plugins: {
|
|
66
|
+
'vue-jsx-vapor': {
|
|
67
|
+
rules: {
|
|
68
|
+
'jsx-sort-props': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, JsxSortPropsRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
|
+
'define-style': _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, DefineStyleRuleOptions, unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | Record<string, eslint.ESLint.Plugin>;
|
|
73
|
+
settings?: Record<string, unknown>;
|
|
74
|
+
rules: {
|
|
75
|
+
'style/jsx-sort-props': string;
|
|
76
|
+
'react/jsx-sort-props': string;
|
|
77
|
+
'vue-jsx-vapor/jsx-sort-props': 1 | 2 | "off" | "warn" | "error" | [Linter.RuleSeverity, (JsxSortPropsSchema0 | undefined)?];
|
|
78
|
+
'vue-jsx-vapor/define-style': 1 | 2 | "off" | "warn" | "error" | [Linter.RuleSeverity, (DefineStyleSchema0 | undefined)?];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export { type Rules, _default as default, plugins, ruleOptions as rules };
|