@useinsider/eslint-config 1.12.2 → 1.13.0-beta.2
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/base.d.ts +1 -1
- package/dist/chunk-CKQMccvm.cjs +28 -0
- package/dist/config-ByQJiSMj.cjs +9 -0
- package/dist/config-ByQJiSMj.cjs.map +1 -0
- package/dist/config-Css2Pu_R.js +9 -0
- package/dist/config-Css2Pu_R.js.map +1 -0
- package/dist/configs/javascript/index.d.ts +8 -1
- package/dist/configs/strict/index.d.ts +15 -1
- package/dist/configs/typescript/index.d.ts +1 -2
- package/dist/configs/typescript-dom/index.d.ts +1195 -1
- package/dist/configs/vue2/index.d.ts +1206 -1
- package/dist/configs/vue2-typescript/index.d.ts +1 -1
- package/dist/configs/vue3/index.d.ts +1206 -1
- package/dist/configs/vue3-typescript/index.d.ts +1 -1
- package/dist/javascript-BTduhgPC.cjs +16 -0
- package/dist/javascript-BTduhgPC.cjs.map +1 -0
- package/dist/javascript-DrnVnn8x.js +13 -0
- package/dist/javascript-DrnVnn8x.js.map +1 -0
- package/dist/javascript-dom-BGO7V06H.cjs +11 -0
- package/dist/javascript-dom-BGO7V06H.cjs.map +1 -0
- package/dist/javascript-dom-DUniYlu6.js +9 -0
- package/dist/javascript-dom-DUniYlu6.js.map +1 -0
- package/dist/javascript-node-CFSgAg1n.cjs +11 -0
- package/dist/javascript-node-CFSgAg1n.cjs.map +1 -0
- package/dist/javascript-node-CcgaOykE.js +9 -0
- package/dist/javascript-node-CcgaOykE.js.map +1 -0
- package/dist/jest-B0jgh-Ns.js +16 -0
- package/dist/jest-B0jgh-Ns.js.map +1 -0
- package/dist/jest-Ct_2c2e5.cjs +18 -0
- package/dist/jest-Ct_2c2e5.cjs.map +1 -0
- package/dist/jsdoc-based-ts-B40HFdNC.js +6 -0
- package/dist/jsdoc-based-ts-B40HFdNC.js.map +1 -0
- package/dist/jsdoc-based-ts-De6bAjFn.cjs +6 -0
- package/dist/jsdoc-based-ts-De6bAjFn.cjs.map +1 -0
- package/dist/main.cjs +139 -167
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +130 -164
- package/dist/main.js.map +1 -1
- package/dist/merge-9BZzhd4u.cjs +15 -0
- package/dist/merge-9BZzhd4u.cjs.map +1 -0
- package/dist/merge-DEya5rmo.js +9 -0
- package/dist/merge-DEya5rmo.js.map +1 -0
- package/dist/mergeAllConfig-B2TWh9bP.cjs +14 -0
- package/dist/mergeAllConfig-B2TWh9bP.cjs.map +1 -0
- package/dist/mergeAllConfig-BbXVeKTg.js +9 -0
- package/dist/mergeAllConfig-BbXVeKTg.js.map +1 -0
- package/dist/removePluginsFromConfigs-BvvgY3b5.cjs +66 -0
- package/dist/removePluginsFromConfigs-BvvgY3b5.cjs.map +1 -0
- package/dist/removePluginsFromConfigs-DXGEhx1r.js +55 -0
- package/dist/removePluginsFromConfigs-DXGEhx1r.js.map +1 -0
- package/dist/strict-BfeS2xp_.js +18 -0
- package/dist/strict-BfeS2xp_.js.map +1 -0
- package/dist/strict-TbDHFSQX.cjs +19 -0
- package/dist/strict-TbDHFSQX.cjs.map +1 -0
- package/dist/stylistic-BD98baD9.cjs +489 -0
- package/dist/stylistic-BD98baD9.cjs.map +1 -0
- package/dist/stylistic-CVYJnZ8f.js +451 -0
- package/dist/stylistic-CVYJnZ8f.js.map +1 -0
- package/dist/typescript-0_O11nWX.cjs +34 -0
- package/dist/typescript-0_O11nWX.cjs.map +1 -0
- package/dist/typescript-CQ_Hr2QM.js +29 -0
- package/dist/typescript-CQ_Hr2QM.js.map +1 -0
- package/dist/typescript-dom-970fDiUU.cjs +14 -0
- package/dist/typescript-dom-970fDiUU.cjs.map +1 -0
- package/dist/typescript-dom-Bv_Zz0xP.js +12 -0
- package/dist/typescript-dom-Bv_Zz0xP.js.map +1 -0
- package/dist/typescript-node-D1A44bTs.js +9 -0
- package/dist/typescript-node-D1A44bTs.js.map +1 -0
- package/dist/typescript-node-D9_lMhx2.cjs +11 -0
- package/dist/typescript-node-D9_lMhx2.cjs.map +1 -0
- package/dist/utils/mergeAllConfig.d.ts +1 -1
- package/dist/utils/silenceRules.d.ts +1 -1
- package/dist/vue-By1Xn7IP.js +210 -0
- package/dist/vue-By1Xn7IP.js.map +1 -0
- package/dist/vue-uaPZkygC.cjs +215 -0
- package/dist/vue-uaPZkygC.cjs.map +1 -0
- package/dist/vue2-8ymY78UQ.js +24 -0
- package/dist/vue2-8ymY78UQ.js.map +1 -0
- package/dist/vue2-C94Kq0T6.cjs +30 -0
- package/dist/vue2-C94Kq0T6.cjs.map +1 -0
- package/dist/vue2-Xpr87v0K.cjs +24 -0
- package/dist/vue2-Xpr87v0K.cjs.map +1 -0
- package/dist/vue2-oH2qFl6d.js +13 -0
- package/dist/vue2-oH2qFl6d.js.map +1 -0
- package/dist/vue2-typescript-B_jQOM2b.cjs +58 -0
- package/dist/vue2-typescript-B_jQOM2b.cjs.map +1 -0
- package/dist/vue2-typescript-D0PJDNVJ.js +50 -0
- package/dist/vue2-typescript-D0PJDNVJ.js.map +1 -0
- package/dist/vue3-BJZAtjCx.cjs +30 -0
- package/dist/vue3-BJZAtjCx.cjs.map +1 -0
- package/dist/vue3-DvAMqq2z.js +24 -0
- package/dist/vue3-DvAMqq2z.js.map +1 -0
- package/dist/vue3-typescript-B-MIQF7E.js +40 -0
- package/dist/vue3-typescript-B-MIQF7E.js.map +1 -0
- package/dist/vue3-typescript-DAo2WlD3.cjs +48 -0
- package/dist/vue3-typescript-DAo2WlD3.cjs.map +1 -0
- package/package.json +32 -33
- package/dist/index-2o2VBvVN.cjs +0 -17
- package/dist/index-2o2VBvVN.cjs.map +0 -1
- package/dist/index-B5e6DfQZ.js +0 -14
- package/dist/index-B5e6DfQZ.js.map +0 -1
- package/dist/index-B7KV8_ac.cjs +0 -44
- package/dist/index-B7KV8_ac.cjs.map +0 -1
- package/dist/index-B8_S3w5d.cjs +0 -28
- package/dist/index-B8_S3w5d.cjs.map +0 -1
- package/dist/index-BCvaWfkS.js +0 -14
- package/dist/index-BCvaWfkS.js.map +0 -1
- package/dist/index-BIRTKnfa.js +0 -44
- package/dist/index-BIRTKnfa.js.map +0 -1
- package/dist/index-BabnpV1R.js +0 -28
- package/dist/index-BabnpV1R.js.map +0 -1
- package/dist/index-CI6TkV4e.js +0 -14
- package/dist/index-CI6TkV4e.js.map +0 -1
- package/dist/index-CQpRB59U.cjs +0 -19
- package/dist/index-CQpRB59U.cjs.map +0 -1
- package/dist/index-CeOu2y8a.js +0 -28
- package/dist/index-CeOu2y8a.js.map +0 -1
- package/dist/index-CiVlnmEB.cjs +0 -14
- package/dist/index-CiVlnmEB.cjs.map +0 -1
- package/dist/index-Cj9TcRjV.cjs +0 -14
- package/dist/index-Cj9TcRjV.cjs.map +0 -1
- package/dist/index-Cpdbh3sr.js +0 -17
- package/dist/index-Cpdbh3sr.js.map +0 -1
- package/dist/index-CsUJY3F4.cjs +0 -28
- package/dist/index-CsUJY3F4.cjs.map +0 -1
- package/dist/index-D-kLe1Lx.cjs +0 -54
- package/dist/index-D-kLe1Lx.cjs.map +0 -1
- package/dist/index-D4MPQx8Q.cjs +0 -9
- package/dist/index-D4MPQx8Q.cjs.map +0 -1
- package/dist/index-DJL4a_Kw.js +0 -15
- package/dist/index-DJL4a_Kw.js.map +0 -1
- package/dist/index-DPseTvz6.cjs +0 -10
- package/dist/index-DPseTvz6.cjs.map +0 -1
- package/dist/index-DVAtSM0f.cjs +0 -28
- package/dist/index-DVAtSM0f.cjs.map +0 -1
- package/dist/index-DWmPpTAr.js +0 -54
- package/dist/index-DWmPpTAr.js.map +0 -1
- package/dist/index-DbPDbm1S.js +0 -10
- package/dist/index-DbPDbm1S.js.map +0 -1
- package/dist/index-DePBHdMb.cjs +0 -15
- package/dist/index-DePBHdMb.cjs.map +0 -1
- package/dist/index-Ds-dL7rp.cjs +0 -11
- package/dist/index-Ds-dL7rp.cjs.map +0 -1
- package/dist/index-FNO0uAiM.js +0 -9
- package/dist/index-FNO0uAiM.js.map +0 -1
- package/dist/index-M1K64ssP.js +0 -28
- package/dist/index-M1K64ssP.js.map +0 -1
- package/dist/index-Os0JbUht.js +0 -11
- package/dist/index-Os0JbUht.js.map +0 -1
- package/dist/index-Vp4HLGO-.cjs +0 -14
- package/dist/index-Vp4HLGO-.cjs.map +0 -1
- package/dist/index-WUeklnFb.js +0 -19
- package/dist/index-WUeklnFb.js.map +0 -1
- package/dist/removePluginsFromConfigs-ByipAus1.js +0 -59
- package/dist/removePluginsFromConfigs-ByipAus1.js.map +0 -1
- package/dist/removePluginsFromConfigs-D8PUzDVg.cjs +0 -58
- package/dist/removePluginsFromConfigs-D8PUzDVg.cjs.map +0 -1
- package/dist/stylistic-B7JRcUO4.js +0 -419
- package/dist/stylistic-B7JRcUO4.js.map +0 -1
- package/dist/stylistic-BdRMGyUe.cjs +0 -418
- package/dist/stylistic-BdRMGyUe.cjs.map +0 -1
- package/dist/vue-B3lDYr4H.js +0 -211
- package/dist/vue-B3lDYr4H.js.map +0 -1
- package/dist/vue-BXgQgBC3.cjs +0 -210
- package/dist/vue-BXgQgBC3.cjs.map +0 -1
- package/dist/vue2-C307LTUQ.js +0 -19
- package/dist/vue2-C307LTUQ.js.map +0 -1
- package/dist/vue2-CRyjxVnh.cjs +0 -18
- package/dist/vue2-CRyjxVnh.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
export declare function mergeAll(...configs: Linter.Config[][]): Linter.Config<
|
|
2
|
+
export declare function mergeAll(...configs: Linter.Config[][]): Linter.Config<import("@eslint/core").RulesConfig>;
|
|
@@ -4,4 +4,4 @@ import type { Linter } from 'eslint';
|
|
|
4
4
|
* This will affect all configs scopes.
|
|
5
5
|
*/
|
|
6
6
|
export declare function silenceRules(rules: string[]): void;
|
|
7
|
-
export declare function filterSilencedRules(rules: Partial<Linter.RulesRecord> | Readonly<Linter.RulesRecord> | undefined, silencedRules?: string[] | Set<string>): Partial<
|
|
7
|
+
export declare function filterSilencedRules(rules: Partial<Linter.RulesRecord> | Readonly<Linter.RulesRecord> | undefined, silencedRules?: string[] | Set<string>): Partial<import("@eslint/core").RulesConfig> | undefined;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
//#region src/rules/vue.ts
|
|
2
|
+
var vue_default = { rules: {
|
|
3
|
+
"vue/array-bracket-newline": ["error"],
|
|
4
|
+
"vue/array-bracket-spacing": ["error", "never"],
|
|
5
|
+
"vue/array-element-newline": ["error", "consistent"],
|
|
6
|
+
"vue/arrow-spacing": ["error"],
|
|
7
|
+
"vue/attribute-hyphenation": ["error", "always"],
|
|
8
|
+
"vue/attributes-order": ["error", {
|
|
9
|
+
alphabetical: true,
|
|
10
|
+
order: [
|
|
11
|
+
"LIST_RENDERING",
|
|
12
|
+
"CONDITIONALS",
|
|
13
|
+
"DEFINITION",
|
|
14
|
+
"RENDER_MODIFIERS",
|
|
15
|
+
"GLOBAL",
|
|
16
|
+
"UNIQUE",
|
|
17
|
+
"SLOT",
|
|
18
|
+
"ATTR_SHORTHAND_BOOL",
|
|
19
|
+
"ATTR_STATIC",
|
|
20
|
+
"ATTR_DYNAMIC",
|
|
21
|
+
"TWO_WAY_BINDING",
|
|
22
|
+
"OTHER_DIRECTIVES",
|
|
23
|
+
"CONTENT",
|
|
24
|
+
"EVENTS"
|
|
25
|
+
]
|
|
26
|
+
}],
|
|
27
|
+
"vue/brace-style": ["error", "1tbs"],
|
|
28
|
+
"vue/camelcase": ["error", { allow: ["^\\$_"] }],
|
|
29
|
+
"vue/comma-dangle": ["error", {
|
|
30
|
+
arrays: "always-multiline",
|
|
31
|
+
exports: "always-multiline",
|
|
32
|
+
functions: "never",
|
|
33
|
+
imports: "always-multiline",
|
|
34
|
+
objects: "always-multiline"
|
|
35
|
+
}],
|
|
36
|
+
"vue/comma-spacing": ["error"],
|
|
37
|
+
"vue/comma-style": ["error", "last"],
|
|
38
|
+
"vue/component-definition-name-casing": ["error", "PascalCase"],
|
|
39
|
+
"vue/component-name-in-template-casing": [
|
|
40
|
+
"error",
|
|
41
|
+
"PascalCase",
|
|
42
|
+
{
|
|
43
|
+
registeredComponentsOnly: false,
|
|
44
|
+
ignores: ["component", "transition"]
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"vue/block-order": ["error", { order: [
|
|
48
|
+
"script[setup]",
|
|
49
|
+
"template",
|
|
50
|
+
"script:not([setup])",
|
|
51
|
+
"style"
|
|
52
|
+
] }],
|
|
53
|
+
"vue/dot-location": ["error"],
|
|
54
|
+
"vue/dot-notation": ["error"],
|
|
55
|
+
"vue/eqeqeq": ["error"],
|
|
56
|
+
"vue/func-call-spacing": ["error"],
|
|
57
|
+
"vue/html-closing-bracket-newline": ["error", {
|
|
58
|
+
singleline: "never",
|
|
59
|
+
multiline: "always",
|
|
60
|
+
selfClosingTag: {
|
|
61
|
+
singleline: "never",
|
|
62
|
+
multiline: "always"
|
|
63
|
+
}
|
|
64
|
+
}],
|
|
65
|
+
"vue/html-end-tags": ["error"],
|
|
66
|
+
"vue/html-indent": ["error", 4],
|
|
67
|
+
"vue/html-quotes": ["error", "double"],
|
|
68
|
+
"vue/html-self-closing": ["error"],
|
|
69
|
+
"vue/html-closing-bracket-spacing": ["error"],
|
|
70
|
+
"vue/key-spacing": ["error"],
|
|
71
|
+
"vue/keyword-spacing": ["error"],
|
|
72
|
+
"vue/max-attributes-per-line": ["error", {
|
|
73
|
+
multiline: { max: 1 },
|
|
74
|
+
singleline: 1
|
|
75
|
+
}],
|
|
76
|
+
"vue/max-len": [
|
|
77
|
+
"error",
|
|
78
|
+
120,
|
|
79
|
+
{
|
|
80
|
+
ignoreComments: true,
|
|
81
|
+
ignoreRegExpLiterals: true,
|
|
82
|
+
ignoreTemplateLiterals: true,
|
|
83
|
+
ignoreTrailingComments: true,
|
|
84
|
+
ignoreUrls: true
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"vue/multi-word-component-names": "off",
|
|
88
|
+
"vue/multiline-ternary": ["error", "always-multiline"],
|
|
89
|
+
"vue/mustache-interpolation-spacing": ["error", "always"],
|
|
90
|
+
"vue/no-bare-strings-in-template": ["error", {
|
|
91
|
+
attributes: { "/.+/": [
|
|
92
|
+
"alt",
|
|
93
|
+
"aria-label",
|
|
94
|
+
"aria-placeholder",
|
|
95
|
+
"aria-roledescription",
|
|
96
|
+
"aria-valuetext",
|
|
97
|
+
"description",
|
|
98
|
+
"label-text",
|
|
99
|
+
"label",
|
|
100
|
+
"placeholder-text",
|
|
101
|
+
"placeholder",
|
|
102
|
+
"text",
|
|
103
|
+
"title"
|
|
104
|
+
] },
|
|
105
|
+
directives: ["v-text"]
|
|
106
|
+
}],
|
|
107
|
+
"vue/no-console": ["error"],
|
|
108
|
+
"vue/no-constant-condition": ["error"],
|
|
109
|
+
"vue/no-empty-component-block": ["error"],
|
|
110
|
+
"vue/no-empty-pattern": ["error"],
|
|
111
|
+
"vue/no-extra-parens": [
|
|
112
|
+
"error",
|
|
113
|
+
"all",
|
|
114
|
+
{
|
|
115
|
+
allowParensAfterCommentPattern: "@type",
|
|
116
|
+
ignoredNodes: ["ArrowFunctionExpression[body.type='ConditionalExpression']"],
|
|
117
|
+
nestedBinaryExpressions: false,
|
|
118
|
+
returnAssign: false
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"vue/no-irregular-whitespace": ["error"],
|
|
122
|
+
"vue/no-multi-spaces": ["error"],
|
|
123
|
+
"vue/no-multiple-objects-in-class": ["error"],
|
|
124
|
+
"vue/no-potential-component-option-typo": ["error"],
|
|
125
|
+
"vue/no-reserved-component-names": ["error"],
|
|
126
|
+
"vue/no-restricted-syntax": ["error"],
|
|
127
|
+
"vue/no-spaces-around-equal-signs-in-attribute": ["error"],
|
|
128
|
+
"vue/no-sparse-arrays": ["error"],
|
|
129
|
+
"vue/no-undef-components": ["error"],
|
|
130
|
+
"vue/no-unsupported-features": ["error"],
|
|
131
|
+
"vue/no-unused-properties": ["error"],
|
|
132
|
+
"vue/no-unused-refs": ["error"],
|
|
133
|
+
"vue/no-use-computed-property-like-method": ["error"],
|
|
134
|
+
"vue/no-use-v-if-with-v-for": "error",
|
|
135
|
+
"vue/no-useless-concat": ["error"],
|
|
136
|
+
"vue/no-useless-mustaches": ["error"],
|
|
137
|
+
"vue/no-useless-v-bind": ["error"],
|
|
138
|
+
"vue/no-v-text": ["error"],
|
|
139
|
+
"vue/object-curly-newline": ["error", {
|
|
140
|
+
multiline: true,
|
|
141
|
+
consistent: true
|
|
142
|
+
}],
|
|
143
|
+
"vue/object-curly-spacing": ["error", "always"],
|
|
144
|
+
"vue/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
|
|
145
|
+
"vue/object-shorthand": ["error", "always"],
|
|
146
|
+
"vue/order-in-components": ["error", { order: [
|
|
147
|
+
"el",
|
|
148
|
+
"name",
|
|
149
|
+
"parent",
|
|
150
|
+
"functional",
|
|
151
|
+
["delimiters", "comments"],
|
|
152
|
+
[
|
|
153
|
+
"components",
|
|
154
|
+
"directives",
|
|
155
|
+
"filters"
|
|
156
|
+
],
|
|
157
|
+
"extends",
|
|
158
|
+
"mixins",
|
|
159
|
+
"inheritAttrs",
|
|
160
|
+
"model",
|
|
161
|
+
["props", "propsData"],
|
|
162
|
+
"data",
|
|
163
|
+
"computed",
|
|
164
|
+
"watch",
|
|
165
|
+
"LIFECYCLE_HOOKS",
|
|
166
|
+
"methods",
|
|
167
|
+
["template", "render"],
|
|
168
|
+
"renderError"
|
|
169
|
+
] }],
|
|
170
|
+
"vue/padding-line-between-blocks": ["error"],
|
|
171
|
+
"vue/prefer-separate-static-class": ["error"],
|
|
172
|
+
"vue/prefer-template": ["error"],
|
|
173
|
+
"vue/prefer-true-attribute-shorthand": ["error"],
|
|
174
|
+
"vue/prop-name-casing": ["error", "camelCase"],
|
|
175
|
+
"vue/quote-props": ["error", "as-needed"],
|
|
176
|
+
"vue/require-default-prop": ["error"],
|
|
177
|
+
"vue/require-prop-type-constructor": "error",
|
|
178
|
+
"vue/require-prop-types": ["error"],
|
|
179
|
+
"@stylistic/indent": "off",
|
|
180
|
+
"vue/script-indent": [
|
|
181
|
+
"error",
|
|
182
|
+
4,
|
|
183
|
+
{ switchCase: 1 }
|
|
184
|
+
],
|
|
185
|
+
"vue/space-in-parens": ["error", "never"],
|
|
186
|
+
"vue/space-infix-ops": ["error"],
|
|
187
|
+
"vue/space-unary-ops": ["error"],
|
|
188
|
+
"vue/template-curly-spacing": ["error"],
|
|
189
|
+
"vue/this-in-template": ["error", "never"],
|
|
190
|
+
"vue/v-bind-style": ["error", "shorthand"],
|
|
191
|
+
"vue/v-on-function-call": "off",
|
|
192
|
+
"vue/v-on-style": ["error", "shorthand"],
|
|
193
|
+
"vue/v-on-event-hyphenation": "off",
|
|
194
|
+
"vue/no-setup-props-destructure": "off",
|
|
195
|
+
"vue/block-tag-newline": ["error", {
|
|
196
|
+
singleline: "always",
|
|
197
|
+
multiline: "always"
|
|
198
|
+
}],
|
|
199
|
+
"vue/require-explicit-emits": ["error"],
|
|
200
|
+
"vue/no-required-prop-with-default": ["error"],
|
|
201
|
+
"vue/no-ref-object-reactivity-loss": ["error"],
|
|
202
|
+
"vue/no-template-target-blank": ["error"],
|
|
203
|
+
"vue/define-emits-declaration": ["error", "type-based"],
|
|
204
|
+
"vue/define-props-declaration": ["error", "type-based"],
|
|
205
|
+
"vue-scoped-css/enforce-style-type": ["error", { allows: ["scoped", "module"] }]
|
|
206
|
+
} };
|
|
207
|
+
//#endregion
|
|
208
|
+
export { vue_default as t };
|
|
209
|
+
|
|
210
|
+
//# sourceMappingURL=vue-By1Xn7IP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue-By1Xn7IP.js","names":[],"sources":["../src/rules/vue.ts"],"sourcesContent":["import type { Linter } from 'eslint';\n\nexport default {\n rules: {\n 'vue/array-bracket-newline': ['error'],\n 'vue/array-bracket-spacing': ['error', 'never'],\n 'vue/array-element-newline': ['error', 'consistent'],\n 'vue/arrow-spacing': ['error'],\n 'vue/attribute-hyphenation': ['error', 'always'],\n 'vue/attributes-order': ['error', {\n alphabetical: true,\n order: [\n 'LIST_RENDERING',\n 'CONDITIONALS',\n 'DEFINITION',\n 'RENDER_MODIFIERS',\n 'GLOBAL',\n 'UNIQUE',\n 'SLOT',\n 'ATTR_SHORTHAND_BOOL',\n 'ATTR_STATIC',\n 'ATTR_DYNAMIC',\n 'TWO_WAY_BINDING',\n 'OTHER_DIRECTIVES',\n 'CONTENT',\n 'EVENTS',\n ],\n }],\n 'vue/brace-style': ['error', '1tbs'],\n 'vue/camelcase': ['error', {\n allow: ['^\\\\$_'],\n }],\n 'vue/comma-dangle': ['error', {\n arrays: 'always-multiline',\n exports: 'always-multiline',\n functions: 'never',\n imports: 'always-multiline',\n objects: 'always-multiline',\n }],\n 'vue/comma-spacing': ['error'],\n 'vue/comma-style': ['error', 'last'],\n 'vue/component-definition-name-casing': ['error', 'PascalCase'],\n 'vue/component-name-in-template-casing': ['error', 'PascalCase', {\n registeredComponentsOnly: false,\n ignores: [\n 'component',\n 'transition',\n ],\n }],\n 'vue/block-order': ['error', {\n order: [\n 'script[setup]',\n 'template',\n 'script:not([setup])',\n 'style',\n ],\n }],\n 'vue/dot-location': ['error'],\n 'vue/dot-notation': ['error'],\n 'vue/eqeqeq': ['error'],\n 'vue/func-call-spacing': ['error'],\n 'vue/html-closing-bracket-newline': [\n 'error',\n {\n singleline: 'never',\n multiline: 'always',\n selfClosingTag: {\n singleline: 'never',\n multiline: 'always',\n },\n },\n ],\n 'vue/html-end-tags': ['error'],\n 'vue/html-indent': ['error', 4],\n 'vue/html-quotes': ['error', 'double'],\n 'vue/html-self-closing': ['error'],\n 'vue/html-closing-bracket-spacing': ['error'],\n 'vue/key-spacing': ['error'],\n 'vue/keyword-spacing': ['error'],\n 'vue/max-attributes-per-line': ['error', {\n multiline: {\n max: 1,\n },\n singleline: 1,\n }],\n 'vue/max-len': ['error', 120, {\n ignoreComments: true,\n ignoreRegExpLiterals: true,\n ignoreTemplateLiterals: true,\n ignoreTrailingComments: true,\n ignoreUrls: true,\n }],\n 'vue/multi-word-component-names': 'off',\n 'vue/multiline-ternary': ['error', 'always-multiline'],\n 'vue/mustache-interpolation-spacing': ['error', 'always'],\n 'vue/no-bare-strings-in-template': ['error', {\n attributes: {\n '/.+/': [\n 'alt',\n 'aria-label',\n 'aria-placeholder',\n 'aria-roledescription',\n 'aria-valuetext',\n 'description',\n 'label-text',\n 'label',\n 'placeholder-text',\n 'placeholder',\n 'text',\n 'title',\n ],\n },\n directives: ['v-text'],\n }],\n 'vue/no-console': ['error'],\n 'vue/no-constant-condition': ['error'],\n 'vue/no-empty-component-block': ['error'],\n 'vue/no-empty-pattern': ['error'],\n 'vue/no-extra-parens': ['error', 'all', {\n allowParensAfterCommentPattern: '@type',\n ignoredNodes: [\"ArrowFunctionExpression[body.type='ConditionalExpression']\"],\n nestedBinaryExpressions: false,\n returnAssign: false,\n }],\n 'vue/no-irregular-whitespace': ['error'],\n 'vue/no-multi-spaces': ['error'],\n 'vue/no-multiple-objects-in-class': ['error'],\n 'vue/no-potential-component-option-typo': ['error'],\n 'vue/no-reserved-component-names': ['error'],\n 'vue/no-restricted-syntax': ['error'],\n 'vue/no-spaces-around-equal-signs-in-attribute': ['error'],\n 'vue/no-sparse-arrays': ['error'],\n 'vue/no-undef-components': ['error'],\n 'vue/no-unsupported-features': ['error'],\n 'vue/no-unused-properties': ['error'],\n 'vue/no-unused-refs': ['error'],\n 'vue/no-use-computed-property-like-method': ['error'],\n 'vue/no-use-v-if-with-v-for': 'error',\n 'vue/no-useless-concat': ['error'],\n 'vue/no-useless-mustaches': ['error'],\n 'vue/no-useless-v-bind': ['error'],\n 'vue/no-v-text': ['error'],\n 'vue/object-curly-newline': ['error', {\n multiline: true,\n consistent: true,\n }],\n 'vue/object-curly-spacing': ['error', 'always'],\n 'vue/object-property-newline': ['error', {\n allowAllPropertiesOnSameLine: true,\n }],\n 'vue/object-shorthand': ['error', 'always'],\n 'vue/order-in-components': ['error', {\n order: [\n 'el',\n 'name',\n 'parent',\n 'functional',\n ['delimiters', 'comments'],\n ['components', 'directives', 'filters'],\n 'extends',\n 'mixins',\n 'inheritAttrs',\n 'model',\n ['props', 'propsData'],\n 'data',\n 'computed',\n 'watch',\n 'LIFECYCLE_HOOKS',\n 'methods',\n ['template', 'render'],\n 'renderError',\n ],\n }],\n 'vue/padding-line-between-blocks': ['error'],\n 'vue/prefer-separate-static-class': ['error'],\n 'vue/prefer-template': ['error'],\n 'vue/prefer-true-attribute-shorthand': ['error'],\n 'vue/prop-name-casing': ['error', 'camelCase'],\n 'vue/quote-props': ['error', 'as-needed'],\n 'vue/require-default-prop': ['error'],\n 'vue/require-prop-type-constructor': 'error',\n 'vue/require-prop-types': ['error'],\n '@stylistic/indent': 'off',\n 'vue/script-indent': ['error', 4, {\n switchCase: 1,\n }],\n 'vue/space-in-parens': ['error', 'never'],\n 'vue/space-infix-ops': ['error'],\n 'vue/space-unary-ops': ['error'],\n 'vue/template-curly-spacing': ['error'],\n 'vue/this-in-template': ['error', 'never'],\n 'vue/v-bind-style': ['error', 'shorthand'],\n 'vue/v-on-function-call': 'off',\n 'vue/v-on-style': ['error', 'shorthand'],\n 'vue/v-on-event-hyphenation': 'off',\n 'vue/no-setup-props-destructure': 'off',\n 'vue/block-tag-newline': ['error', {\n singleline: 'always',\n multiline: 'always',\n }],\n 'vue/require-explicit-emits': ['error'],\n 'vue/no-required-prop-with-default': ['error'],\n 'vue/no-ref-object-reactivity-loss': ['error'],\n 'vue/no-template-target-blank': ['error'],\n 'vue/define-emits-declaration': ['error', 'type-based'],\n 'vue/define-props-declaration': ['error', 'type-based'],\n 'vue-scoped-css/enforce-style-type': ['error', { allows: ['scoped', 'module'] }],\n },\n} as Linter.Config;\n"],"mappings":";AAEA,IAAA,cAAe,EACX,OAAO;CACH,6BAA6B,CAAC,QAAQ;CACtC,6BAA6B,CAAC,SAAS,QAAQ;CAC/C,6BAA6B,CAAC,S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W;EAC1B;GAAC;GAAc;GAAc;GAAU;EACvC;EACA;EACA;EACA;EACA,CAAC,SAAS,YAAY;EACtB;EACA;EACA;EACA;EACA;EACA,CAAC,YAAY,SAAS;EACtB;EACH,EACJ,CAAC;CACF,mCAAmC,CAAC,QAAQ;CAC5C,oCAAoC,CAAC,QAAQ;CAC7C,uBAAuB,CAAC,QAAQ;CAChC,uCAAuC,CAAC,QAAQ;CAChD,wBAAwB,CAAC,SAAS,YAAY;CAC9C,mBAAmB,CAAC,SAAS,YAAY;CACzC,4BAA4B,CAAC,QAAQ;CACrC,qCAAqC;CACrC,0BAA0B,CAAC,QAAQ;CACnC,qBAAqB;CACrB,qBAAqB;EAAC;EAAS;EAAG,EAC9B,YAAY,GACf;EAAC;CACF,uBAAuB,CAAC,SAAS,QAAQ;CACzC,uBAAuB,CAAC,QAAQ;CAChC,uBAAuB,CAAC,QAAQ;CAChC,8BAA8B,CAAC,QAAQ;CACvC,wBAAwB,CAAC,SAAS,QAAQ;CAC1C,oBAAoB,CAAC,SAAS,YAAY;CAC1C,0BAA0B;CAC1B,kBAAkB,CAAC,SAAS,YAAY;CACxC,8BAA8B;CAC9B,kCAAkC;CAClC,yBAAyB,CAAC,SAAS;EAC/B,YAAY;EACZ,WAAW;EACd,CAAC;CACF,8BAA8B,CAAC,QAAQ;CACvC,qCAAqC,CAAC,QAAQ;CAC9C,qCAAqC,CAAC,QAAQ;CAC9C,gCAAgC,CAAC,QAAQ;CACzC,gCAAgC,CAAC,SAAS,aAAa;CACvD,gCAAgC,CAAC,SAAS,aAAa;CACvD,qCAAqC,CAAC,SAAS,EAAE,QAAQ,CAAC,UAAU,SAAS,EAAE,CAAC;CACnF,EACa"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
//#region src/rules/vue.ts
|
|
2
|
+
var vue_default = { rules: {
|
|
3
|
+
"vue/array-bracket-newline": ["error"],
|
|
4
|
+
"vue/array-bracket-spacing": ["error", "never"],
|
|
5
|
+
"vue/array-element-newline": ["error", "consistent"],
|
|
6
|
+
"vue/arrow-spacing": ["error"],
|
|
7
|
+
"vue/attribute-hyphenation": ["error", "always"],
|
|
8
|
+
"vue/attributes-order": ["error", {
|
|
9
|
+
alphabetical: true,
|
|
10
|
+
order: [
|
|
11
|
+
"LIST_RENDERING",
|
|
12
|
+
"CONDITIONALS",
|
|
13
|
+
"DEFINITION",
|
|
14
|
+
"RENDER_MODIFIERS",
|
|
15
|
+
"GLOBAL",
|
|
16
|
+
"UNIQUE",
|
|
17
|
+
"SLOT",
|
|
18
|
+
"ATTR_SHORTHAND_BOOL",
|
|
19
|
+
"ATTR_STATIC",
|
|
20
|
+
"ATTR_DYNAMIC",
|
|
21
|
+
"TWO_WAY_BINDING",
|
|
22
|
+
"OTHER_DIRECTIVES",
|
|
23
|
+
"CONTENT",
|
|
24
|
+
"EVENTS"
|
|
25
|
+
]
|
|
26
|
+
}],
|
|
27
|
+
"vue/brace-style": ["error", "1tbs"],
|
|
28
|
+
"vue/camelcase": ["error", { allow: ["^\\$_"] }],
|
|
29
|
+
"vue/comma-dangle": ["error", {
|
|
30
|
+
arrays: "always-multiline",
|
|
31
|
+
exports: "always-multiline",
|
|
32
|
+
functions: "never",
|
|
33
|
+
imports: "always-multiline",
|
|
34
|
+
objects: "always-multiline"
|
|
35
|
+
}],
|
|
36
|
+
"vue/comma-spacing": ["error"],
|
|
37
|
+
"vue/comma-style": ["error", "last"],
|
|
38
|
+
"vue/component-definition-name-casing": ["error", "PascalCase"],
|
|
39
|
+
"vue/component-name-in-template-casing": [
|
|
40
|
+
"error",
|
|
41
|
+
"PascalCase",
|
|
42
|
+
{
|
|
43
|
+
registeredComponentsOnly: false,
|
|
44
|
+
ignores: ["component", "transition"]
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"vue/block-order": ["error", { order: [
|
|
48
|
+
"script[setup]",
|
|
49
|
+
"template",
|
|
50
|
+
"script:not([setup])",
|
|
51
|
+
"style"
|
|
52
|
+
] }],
|
|
53
|
+
"vue/dot-location": ["error"],
|
|
54
|
+
"vue/dot-notation": ["error"],
|
|
55
|
+
"vue/eqeqeq": ["error"],
|
|
56
|
+
"vue/func-call-spacing": ["error"],
|
|
57
|
+
"vue/html-closing-bracket-newline": ["error", {
|
|
58
|
+
singleline: "never",
|
|
59
|
+
multiline: "always",
|
|
60
|
+
selfClosingTag: {
|
|
61
|
+
singleline: "never",
|
|
62
|
+
multiline: "always"
|
|
63
|
+
}
|
|
64
|
+
}],
|
|
65
|
+
"vue/html-end-tags": ["error"],
|
|
66
|
+
"vue/html-indent": ["error", 4],
|
|
67
|
+
"vue/html-quotes": ["error", "double"],
|
|
68
|
+
"vue/html-self-closing": ["error"],
|
|
69
|
+
"vue/html-closing-bracket-spacing": ["error"],
|
|
70
|
+
"vue/key-spacing": ["error"],
|
|
71
|
+
"vue/keyword-spacing": ["error"],
|
|
72
|
+
"vue/max-attributes-per-line": ["error", {
|
|
73
|
+
multiline: { max: 1 },
|
|
74
|
+
singleline: 1
|
|
75
|
+
}],
|
|
76
|
+
"vue/max-len": [
|
|
77
|
+
"error",
|
|
78
|
+
120,
|
|
79
|
+
{
|
|
80
|
+
ignoreComments: true,
|
|
81
|
+
ignoreRegExpLiterals: true,
|
|
82
|
+
ignoreTemplateLiterals: true,
|
|
83
|
+
ignoreTrailingComments: true,
|
|
84
|
+
ignoreUrls: true
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"vue/multi-word-component-names": "off",
|
|
88
|
+
"vue/multiline-ternary": ["error", "always-multiline"],
|
|
89
|
+
"vue/mustache-interpolation-spacing": ["error", "always"],
|
|
90
|
+
"vue/no-bare-strings-in-template": ["error", {
|
|
91
|
+
attributes: { "/.+/": [
|
|
92
|
+
"alt",
|
|
93
|
+
"aria-label",
|
|
94
|
+
"aria-placeholder",
|
|
95
|
+
"aria-roledescription",
|
|
96
|
+
"aria-valuetext",
|
|
97
|
+
"description",
|
|
98
|
+
"label-text",
|
|
99
|
+
"label",
|
|
100
|
+
"placeholder-text",
|
|
101
|
+
"placeholder",
|
|
102
|
+
"text",
|
|
103
|
+
"title"
|
|
104
|
+
] },
|
|
105
|
+
directives: ["v-text"]
|
|
106
|
+
}],
|
|
107
|
+
"vue/no-console": ["error"],
|
|
108
|
+
"vue/no-constant-condition": ["error"],
|
|
109
|
+
"vue/no-empty-component-block": ["error"],
|
|
110
|
+
"vue/no-empty-pattern": ["error"],
|
|
111
|
+
"vue/no-extra-parens": [
|
|
112
|
+
"error",
|
|
113
|
+
"all",
|
|
114
|
+
{
|
|
115
|
+
allowParensAfterCommentPattern: "@type",
|
|
116
|
+
ignoredNodes: ["ArrowFunctionExpression[body.type='ConditionalExpression']"],
|
|
117
|
+
nestedBinaryExpressions: false,
|
|
118
|
+
returnAssign: false
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"vue/no-irregular-whitespace": ["error"],
|
|
122
|
+
"vue/no-multi-spaces": ["error"],
|
|
123
|
+
"vue/no-multiple-objects-in-class": ["error"],
|
|
124
|
+
"vue/no-potential-component-option-typo": ["error"],
|
|
125
|
+
"vue/no-reserved-component-names": ["error"],
|
|
126
|
+
"vue/no-restricted-syntax": ["error"],
|
|
127
|
+
"vue/no-spaces-around-equal-signs-in-attribute": ["error"],
|
|
128
|
+
"vue/no-sparse-arrays": ["error"],
|
|
129
|
+
"vue/no-undef-components": ["error"],
|
|
130
|
+
"vue/no-unsupported-features": ["error"],
|
|
131
|
+
"vue/no-unused-properties": ["error"],
|
|
132
|
+
"vue/no-unused-refs": ["error"],
|
|
133
|
+
"vue/no-use-computed-property-like-method": ["error"],
|
|
134
|
+
"vue/no-use-v-if-with-v-for": "error",
|
|
135
|
+
"vue/no-useless-concat": ["error"],
|
|
136
|
+
"vue/no-useless-mustaches": ["error"],
|
|
137
|
+
"vue/no-useless-v-bind": ["error"],
|
|
138
|
+
"vue/no-v-text": ["error"],
|
|
139
|
+
"vue/object-curly-newline": ["error", {
|
|
140
|
+
multiline: true,
|
|
141
|
+
consistent: true
|
|
142
|
+
}],
|
|
143
|
+
"vue/object-curly-spacing": ["error", "always"],
|
|
144
|
+
"vue/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
|
|
145
|
+
"vue/object-shorthand": ["error", "always"],
|
|
146
|
+
"vue/order-in-components": ["error", { order: [
|
|
147
|
+
"el",
|
|
148
|
+
"name",
|
|
149
|
+
"parent",
|
|
150
|
+
"functional",
|
|
151
|
+
["delimiters", "comments"],
|
|
152
|
+
[
|
|
153
|
+
"components",
|
|
154
|
+
"directives",
|
|
155
|
+
"filters"
|
|
156
|
+
],
|
|
157
|
+
"extends",
|
|
158
|
+
"mixins",
|
|
159
|
+
"inheritAttrs",
|
|
160
|
+
"model",
|
|
161
|
+
["props", "propsData"],
|
|
162
|
+
"data",
|
|
163
|
+
"computed",
|
|
164
|
+
"watch",
|
|
165
|
+
"LIFECYCLE_HOOKS",
|
|
166
|
+
"methods",
|
|
167
|
+
["template", "render"],
|
|
168
|
+
"renderError"
|
|
169
|
+
] }],
|
|
170
|
+
"vue/padding-line-between-blocks": ["error"],
|
|
171
|
+
"vue/prefer-separate-static-class": ["error"],
|
|
172
|
+
"vue/prefer-template": ["error"],
|
|
173
|
+
"vue/prefer-true-attribute-shorthand": ["error"],
|
|
174
|
+
"vue/prop-name-casing": ["error", "camelCase"],
|
|
175
|
+
"vue/quote-props": ["error", "as-needed"],
|
|
176
|
+
"vue/require-default-prop": ["error"],
|
|
177
|
+
"vue/require-prop-type-constructor": "error",
|
|
178
|
+
"vue/require-prop-types": ["error"],
|
|
179
|
+
"@stylistic/indent": "off",
|
|
180
|
+
"vue/script-indent": [
|
|
181
|
+
"error",
|
|
182
|
+
4,
|
|
183
|
+
{ switchCase: 1 }
|
|
184
|
+
],
|
|
185
|
+
"vue/space-in-parens": ["error", "never"],
|
|
186
|
+
"vue/space-infix-ops": ["error"],
|
|
187
|
+
"vue/space-unary-ops": ["error"],
|
|
188
|
+
"vue/template-curly-spacing": ["error"],
|
|
189
|
+
"vue/this-in-template": ["error", "never"],
|
|
190
|
+
"vue/v-bind-style": ["error", "shorthand"],
|
|
191
|
+
"vue/v-on-function-call": "off",
|
|
192
|
+
"vue/v-on-style": ["error", "shorthand"],
|
|
193
|
+
"vue/v-on-event-hyphenation": "off",
|
|
194
|
+
"vue/no-setup-props-destructure": "off",
|
|
195
|
+
"vue/block-tag-newline": ["error", {
|
|
196
|
+
singleline: "always",
|
|
197
|
+
multiline: "always"
|
|
198
|
+
}],
|
|
199
|
+
"vue/require-explicit-emits": ["error"],
|
|
200
|
+
"vue/no-required-prop-with-default": ["error"],
|
|
201
|
+
"vue/no-ref-object-reactivity-loss": ["error"],
|
|
202
|
+
"vue/no-template-target-blank": ["error"],
|
|
203
|
+
"vue/define-emits-declaration": ["error", "type-based"],
|
|
204
|
+
"vue/define-props-declaration": ["error", "type-based"],
|
|
205
|
+
"vue-scoped-css/enforce-style-type": ["error", { allows: ["scoped", "module"] }]
|
|
206
|
+
} };
|
|
207
|
+
//#endregion
|
|
208
|
+
Object.defineProperty(exports, "vue_default", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: function() {
|
|
211
|
+
return vue_default;
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
//# sourceMappingURL=vue-uaPZkygC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue-uaPZkygC.cjs","names":[],"sources":["../src/rules/vue.ts"],"sourcesContent":["import type { Linter } from 'eslint';\n\nexport default {\n rules: {\n 'vue/array-bracket-newline': ['error'],\n 'vue/array-bracket-spacing': ['error', 'never'],\n 'vue/array-element-newline': ['error', 'consistent'],\n 'vue/arrow-spacing': ['error'],\n 'vue/attribute-hyphenation': ['error', 'always'],\n 'vue/attributes-order': ['error', {\n alphabetical: true,\n order: [\n 'LIST_RENDERING',\n 'CONDITIONALS',\n 'DEFINITION',\n 'RENDER_MODIFIERS',\n 'GLOBAL',\n 'UNIQUE',\n 'SLOT',\n 'ATTR_SHORTHAND_BOOL',\n 'ATTR_STATIC',\n 'ATTR_DYNAMIC',\n 'TWO_WAY_BINDING',\n 'OTHER_DIRECTIVES',\n 'CONTENT',\n 'EVENTS',\n ],\n }],\n 'vue/brace-style': ['error', '1tbs'],\n 'vue/camelcase': ['error', {\n allow: ['^\\\\$_'],\n }],\n 'vue/comma-dangle': ['error', {\n arrays: 'always-multiline',\n exports: 'always-multiline',\n functions: 'never',\n imports: 'always-multiline',\n objects: 'always-multiline',\n }],\n 'vue/comma-spacing': ['error'],\n 'vue/comma-style': ['error', 'last'],\n 'vue/component-definition-name-casing': ['error', 'PascalCase'],\n 'vue/component-name-in-template-casing': ['error', 'PascalCase', {\n registeredComponentsOnly: false,\n ignores: [\n 'component',\n 'transition',\n ],\n }],\n 'vue/block-order': ['error', {\n order: [\n 'script[setup]',\n 'template',\n 'script:not([setup])',\n 'style',\n ],\n }],\n 'vue/dot-location': ['error'],\n 'vue/dot-notation': ['error'],\n 'vue/eqeqeq': ['error'],\n 'vue/func-call-spacing': ['error'],\n 'vue/html-closing-bracket-newline': [\n 'error',\n {\n singleline: 'never',\n multiline: 'always',\n selfClosingTag: {\n singleline: 'never',\n multiline: 'always',\n },\n },\n ],\n 'vue/html-end-tags': ['error'],\n 'vue/html-indent': ['error', 4],\n 'vue/html-quotes': ['error', 'double'],\n 'vue/html-self-closing': ['error'],\n 'vue/html-closing-bracket-spacing': ['error'],\n 'vue/key-spacing': ['error'],\n 'vue/keyword-spacing': ['error'],\n 'vue/max-attributes-per-line': ['error', {\n multiline: {\n max: 1,\n },\n singleline: 1,\n }],\n 'vue/max-len': ['error', 120, {\n ignoreComments: true,\n ignoreRegExpLiterals: true,\n ignoreTemplateLiterals: true,\n ignoreTrailingComments: true,\n ignoreUrls: true,\n }],\n 'vue/multi-word-component-names': 'off',\n 'vue/multiline-ternary': ['error', 'always-multiline'],\n 'vue/mustache-interpolation-spacing': ['error', 'always'],\n 'vue/no-bare-strings-in-template': ['error', {\n attributes: {\n '/.+/': [\n 'alt',\n 'aria-label',\n 'aria-placeholder',\n 'aria-roledescription',\n 'aria-valuetext',\n 'description',\n 'label-text',\n 'label',\n 'placeholder-text',\n 'placeholder',\n 'text',\n 'title',\n ],\n },\n directives: ['v-text'],\n }],\n 'vue/no-console': ['error'],\n 'vue/no-constant-condition': ['error'],\n 'vue/no-empty-component-block': ['error'],\n 'vue/no-empty-pattern': ['error'],\n 'vue/no-extra-parens': ['error', 'all', {\n allowParensAfterCommentPattern: '@type',\n ignoredNodes: [\"ArrowFunctionExpression[body.type='ConditionalExpression']\"],\n nestedBinaryExpressions: false,\n returnAssign: false,\n }],\n 'vue/no-irregular-whitespace': ['error'],\n 'vue/no-multi-spaces': ['error'],\n 'vue/no-multiple-objects-in-class': ['error'],\n 'vue/no-potential-component-option-typo': ['error'],\n 'vue/no-reserved-component-names': ['error'],\n 'vue/no-restricted-syntax': ['error'],\n 'vue/no-spaces-around-equal-signs-in-attribute': ['error'],\n 'vue/no-sparse-arrays': ['error'],\n 'vue/no-undef-components': ['error'],\n 'vue/no-unsupported-features': ['error'],\n 'vue/no-unused-properties': ['error'],\n 'vue/no-unused-refs': ['error'],\n 'vue/no-use-computed-property-like-method': ['error'],\n 'vue/no-use-v-if-with-v-for': 'error',\n 'vue/no-useless-concat': ['error'],\n 'vue/no-useless-mustaches': ['error'],\n 'vue/no-useless-v-bind': ['error'],\n 'vue/no-v-text': ['error'],\n 'vue/object-curly-newline': ['error', {\n multiline: true,\n consistent: true,\n }],\n 'vue/object-curly-spacing': ['error', 'always'],\n 'vue/object-property-newline': ['error', {\n allowAllPropertiesOnSameLine: true,\n }],\n 'vue/object-shorthand': ['error', 'always'],\n 'vue/order-in-components': ['error', {\n order: [\n 'el',\n 'name',\n 'parent',\n 'functional',\n ['delimiters', 'comments'],\n ['components', 'directives', 'filters'],\n 'extends',\n 'mixins',\n 'inheritAttrs',\n 'model',\n ['props', 'propsData'],\n 'data',\n 'computed',\n 'watch',\n 'LIFECYCLE_HOOKS',\n 'methods',\n ['template', 'render'],\n 'renderError',\n ],\n }],\n 'vue/padding-line-between-blocks': ['error'],\n 'vue/prefer-separate-static-class': ['error'],\n 'vue/prefer-template': ['error'],\n 'vue/prefer-true-attribute-shorthand': ['error'],\n 'vue/prop-name-casing': ['error', 'camelCase'],\n 'vue/quote-props': ['error', 'as-needed'],\n 'vue/require-default-prop': ['error'],\n 'vue/require-prop-type-constructor': 'error',\n 'vue/require-prop-types': ['error'],\n '@stylistic/indent': 'off',\n 'vue/script-indent': ['error', 4, {\n switchCase: 1,\n }],\n 'vue/space-in-parens': ['error', 'never'],\n 'vue/space-infix-ops': ['error'],\n 'vue/space-unary-ops': ['error'],\n 'vue/template-curly-spacing': ['error'],\n 'vue/this-in-template': ['error', 'never'],\n 'vue/v-bind-style': ['error', 'shorthand'],\n 'vue/v-on-function-call': 'off',\n 'vue/v-on-style': ['error', 'shorthand'],\n 'vue/v-on-event-hyphenation': 'off',\n 'vue/no-setup-props-destructure': 'off',\n 'vue/block-tag-newline': ['error', {\n singleline: 'always',\n multiline: 'always',\n }],\n 'vue/require-explicit-emits': ['error'],\n 'vue/no-required-prop-with-default': ['error'],\n 'vue/no-ref-object-reactivity-loss': ['error'],\n 'vue/no-template-target-blank': ['error'],\n 'vue/define-emits-declaration': ['error', 'type-based'],\n 'vue/define-props-declaration': ['error', 'type-based'],\n 'vue-scoped-css/enforce-style-type': ['error', { allows: ['scoped', 'module'] }],\n },\n} as Linter.Config;\n"],"mappings":";AAEA,IAAA,cAAe,EACX,OAAO;CACH,6BAA6B,CAAC,QAAQ;CACtC,6BAA6B,CAAC,SAAS,QAAQ;CAC/C,6BAA6B,CAAC,SAAS,aAAa;CACpD,qBAAqB,CAAC,QAAQ;CAC9B,6BAA6B,CAAC,SAAS,SAAS;CAChD,wBAAwB,CAAC,SAAS;EAC9B,cAAc;EACd,OAAO;GACH;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACH;EACJ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Q;CAC7C,uBAAuB,CAAC,QAAQ;CAChC,uCAAuC,CAAC,QAAQ;CAChD,wBAAwB,CAAC,SAAS,YAAY;CAC9C,mBAAmB,CAAC,SAAS,YAAY;CACzC,4BAA4B,CAAC,QAAQ;CACrC,qCAAqC;CACrC,0BAA0B,CAAC,QAAQ;CACnC,qBAAqB;CACrB,qBAAqB;EAAC;EAAS;EAAG,EAC9B,YAAY,GACf;EAAC;CACF,uBAAuB,CAAC,SAAS,QAAQ;CACzC,uBAAuB,CAAC,QAAQ;CAChC,uBAAuB,CAAC,QAAQ;CAChC,8BAA8B,CAAC,QAAQ;CACvC,wBAAwB,CAAC,SAAS,QAAQ;CAC1C,oBAAoB,CAAC,SAAS,YAAY;CAC1C,0BAA0B;CAC1B,kBAAkB,CAAC,SAAS,YAAY;CACxC,8BAA8B;CAC9B,kCAAkC;CAClC,yBAAyB,CAAC,SAAS;EAC/B,YAAY;EACZ,WAAW;EACd,CAAC;CACF,8BAA8B,CAAC,QAAQ;CACvC,qCAAqC,CAAC,QAAQ;CAC9C,qCAAqC,CAAC,QAAQ;CAC9C,gCAAgC,CAAC,QAAQ;CACzC,gCAAgC,CAAC,SAAS,aAAa;CACvD,gCAAgC,CAAC,SAAS,aAAa;CACvD,qCAAqC,CAAC,SAAS,EAAE,QAAQ,CAAC,UAAU,SAAS,EAAE,CAAC;CACnF,EACa"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as merge } from "./merge-DEya5rmo.js";
|
|
2
|
+
import { t as mergeAll } from "./mergeAllConfig-BbXVeKTg.js";
|
|
3
|
+
import { a as postConfig, i as core_default, n as importRules_default, o as preConfig, r as cspell_default, t as stylistic_default } from "./stylistic-CVYJnZ8f.js";
|
|
4
|
+
import { n as vue2Options } from "./vue2-oH2qFl6d.js";
|
|
5
|
+
import globals from "globals";
|
|
6
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
7
|
+
import { configs } from "eslint-config-airbnb-extended";
|
|
8
|
+
import { importX } from "eslint-plugin-import-x";
|
|
9
|
+
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
10
|
+
import pluginVue from "eslint-plugin-vue";
|
|
11
|
+
import eslintPluginVueScopedCSS from "eslint-plugin-vue-scoped-css";
|
|
12
|
+
//#region src/configs/vue2/index.ts
|
|
13
|
+
var vue2_default = merge(mergeAll(pluginVue.configs["flat/vue2-recommended"], eslintPluginVueScopedCSS.configs["flat/vue2-recommended"]), importX.flatConfigs.recommended, mergeAll(configs.base.recommended), jsdocPlugin.configs["flat/recommended"], preConfig(), core_default, importRules_default, cspell_default, { plugins: { "@stylistic": stylistic } }, stylistic_default, vue2Options, postConfig(), { languageOptions: {
|
|
14
|
+
parserOptions: {
|
|
15
|
+
sourceType: "module",
|
|
16
|
+
ecmaFeatures: { jsx: true },
|
|
17
|
+
extraFileExtensions: [".vue"]
|
|
18
|
+
},
|
|
19
|
+
globals: { ...globals.browser }
|
|
20
|
+
} });
|
|
21
|
+
//#endregion
|
|
22
|
+
export { vue2_default as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=vue2-8ymY78UQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue2-8ymY78UQ.js","names":[],"sources":["../src/configs/vue2/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport stylistic from '@stylistic/eslint-plugin';\nimport { configs as airbnbConfigs } from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport pluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport { postConfig, preConfig } from '~/base';\nimport core from '~/rules/core';\nimport cspell from '~/rules/cspell';\nimport importRules from '~/rules/importRules';\nimport stylisticRules from '~/rules/stylistic';\nimport { vue2Options } from '~/rules/vue2';\nimport { merge } from '~/utils/merge';\nimport { mergeAll } from '~/utils/mergeAllConfig';\n\nexport default merge(\n mergeAll(\n pluginVue.configs['flat/vue2-recommended'],\n eslintPluginVueScopedCSS.configs['flat/vue2-recommended'] as Linter.Config[]\n ),\n importX.flatConfigs.recommended as Linter.Config,\n mergeAll(airbnbConfigs.base.recommended),\n jsdocPlugin.configs['flat/recommended'],\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } satisfies Linter.Config,\n stylisticRules,\n vue2Options,\n postConfig(),\n {\n languageOptions: {\n parserOptions: {\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } satisfies Linter.Config\n);\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAA,eAAe,MACX,SACI,UAAU,QAAQ,0BAClB,yBAAyB,QAAQ,yBACpC,EACD,QAAQ,YAAY,aACpB,SAAS,QAAc,KAAK,YAAY,EACxC,YAAY,QAAQ,qBACpB,WAAW,EACX,cACA,qBACA,gBACA,EAAE,SAAS,EAAE,cAAc,WAAW,EAA0B,EAChE,mBACA,aACA,YAAY,EACZ,EACI,iBAAiB;CACb,eAAe;EACX,YAAY;EACZ,cAAc,EACV,KAAK,MACR;EACD,qBAAqB,CAAC,OAAO;EAChC;CACD,SAAS,EACL,GAAG,QAAQ,SACd;CACJ,EACoB,CAC5B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_merge = require("./merge-9BZzhd4u.cjs");
|
|
3
|
+
const require_mergeAllConfig = require("./mergeAllConfig-B2TWh9bP.cjs");
|
|
4
|
+
const require_stylistic = require("./stylistic-BD98baD9.cjs");
|
|
5
|
+
const require_vue2 = require("./vue2-Xpr87v0K.cjs");
|
|
6
|
+
let globals = require("globals");
|
|
7
|
+
globals = require_chunk.__toESM(globals, 1);
|
|
8
|
+
let _stylistic_eslint_plugin = require("@stylistic/eslint-plugin");
|
|
9
|
+
_stylistic_eslint_plugin = require_chunk.__toESM(_stylistic_eslint_plugin, 1);
|
|
10
|
+
let eslint_config_airbnb_extended = require("eslint-config-airbnb-extended");
|
|
11
|
+
let eslint_plugin_import_x = require("eslint-plugin-import-x");
|
|
12
|
+
let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
|
|
13
|
+
eslint_plugin_jsdoc = require_chunk.__toESM(eslint_plugin_jsdoc, 1);
|
|
14
|
+
let eslint_plugin_vue = require("eslint-plugin-vue");
|
|
15
|
+
eslint_plugin_vue = require_chunk.__toESM(eslint_plugin_vue, 1);
|
|
16
|
+
let eslint_plugin_vue_scoped_css = require("eslint-plugin-vue-scoped-css");
|
|
17
|
+
eslint_plugin_vue_scoped_css = require_chunk.__toESM(eslint_plugin_vue_scoped_css, 1);
|
|
18
|
+
//#region src/configs/vue2/index.ts
|
|
19
|
+
var vue2_default = require_merge.merge(require_mergeAllConfig.mergeAll(eslint_plugin_vue.default.configs["flat/vue2-recommended"], eslint_plugin_vue_scoped_css.default.configs["flat/vue2-recommended"]), eslint_plugin_import_x.importX.flatConfigs.recommended, require_mergeAllConfig.mergeAll(eslint_config_airbnb_extended.configs.base.recommended), eslint_plugin_jsdoc.default.configs["flat/recommended"], require_stylistic.preConfig(), require_stylistic.core_default, require_stylistic.importRules_default, require_stylistic.cspell_default, { plugins: { "@stylistic": _stylistic_eslint_plugin.default } }, require_stylistic.stylistic_default, require_vue2.vue2Options, require_stylistic.postConfig(), { languageOptions: {
|
|
20
|
+
parserOptions: {
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
ecmaFeatures: { jsx: true },
|
|
23
|
+
extraFileExtensions: [".vue"]
|
|
24
|
+
},
|
|
25
|
+
globals: { ...globals.default.browser }
|
|
26
|
+
} });
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.default = vue2_default;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=vue2-C94Kq0T6.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue2-C94Kq0T6.cjs","names":[],"sources":["../src/configs/vue2/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport stylistic from '@stylistic/eslint-plugin';\nimport { configs as airbnbConfigs } from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport pluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport { postConfig, preConfig } from '~/base';\nimport core from '~/rules/core';\nimport cspell from '~/rules/cspell';\nimport importRules from '~/rules/importRules';\nimport stylisticRules from '~/rules/stylistic';\nimport { vue2Options } from '~/rules/vue2';\nimport { merge } from '~/utils/merge';\nimport { mergeAll } from '~/utils/mergeAllConfig';\n\nexport default merge(\n mergeAll(\n pluginVue.configs['flat/vue2-recommended'],\n eslintPluginVueScopedCSS.configs['flat/vue2-recommended'] as Linter.Config[]\n ),\n importX.flatConfigs.recommended as Linter.Config,\n mergeAll(airbnbConfigs.base.recommended),\n jsdocPlugin.configs['flat/recommended'],\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } satisfies Linter.Config,\n stylisticRules,\n vue2Options,\n postConfig(),\n {\n languageOptions: {\n parserOptions: {\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } satisfies Linter.Config\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,IAAA,eAAe,cAAA,MACX,uBAAA,SACI,kBAAA,QAAU,QAAQ,0BAClB,6BAAA,QAAyB,QAAQ,yBACpC,EACD,uBAAA,QAAQ,YAAY,aACpB,uBAAA,SAAS,8BAAA,QAAc,KAAK,YAAY,EACxC,oBAAA,QAAY,QAAQ,qBACpB,kBAAA,WAAW,EACX,kBAAA,cACA,kBAAA,qBACA,kBAAA,gBACA,EAAE,SAAS,EAAE,cAAc,yBAAA,SAAW,EAA0B,EAChE,kBAAA,mBACA,aAAA,aACA,kBAAA,YAAY,EACZ,EACI,iBAAiB;CACb,eAAe;EACX,YAAY;EACZ,cAAc,EACV,KAAK,MACR;EACD,qBAAqB,CAAC,OAAO;EAChC;CACD,SAAS,EACL,GAAG,QAAA,QAAQ,SACd;CACJ,EACoB,CAC5B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_vue = require("./vue-uaPZkygC.cjs");
|
|
2
|
+
//#region src/rules/vue2.ts
|
|
3
|
+
var vue2Options = { rules: {
|
|
4
|
+
...require_vue.vue_default.rules,
|
|
5
|
+
"vue/require-explicit-emits": "off",
|
|
6
|
+
"vue/no-unused-refs": "off",
|
|
7
|
+
"vue/prefer-true-attribute-shorthand": ["error", "never"]
|
|
8
|
+
} };
|
|
9
|
+
var vue2Composition = { rules: { ...require_vue.vue_default.rules } };
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, "vue2Composition", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return vue2Composition;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "vue2Options", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return vue2Options;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=vue2-Xpr87v0K.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue2-Xpr87v0K.cjs","names":[],"sources":["../src/rules/vue2.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport vue from './vue';\n\nexport const vue2Options = {\n rules: {\n ...vue.rules,\n 'vue/require-explicit-emits': 'off',\n 'vue/no-unused-refs': 'off',\n 'vue/prefer-true-attribute-shorthand': ['error', 'never'],\n },\n} as Linter.Config;\n\nexport const vue2Composition = {\n rules: {\n ...vue.rules,\n },\n} as Linter.Config;\n"],"mappings":";;AAGA,IAAa,cAAc,EACvB,OAAO;CACH,GAAG,YAAA,YAAI;CACP,8BAA8B;CAC9B,sBAAsB;CACtB,uCAAuC,CAAC,SAAS,QAAQ;CAC5D,EACa;AAElB,IAAa,kBAAkB,EAC3B,OAAO,EACH,GAAG,YAAA,YAAI,OACV,EACa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as vue_default } from "./vue-By1Xn7IP.js";
|
|
2
|
+
//#region src/rules/vue2.ts
|
|
3
|
+
var vue2Options = { rules: {
|
|
4
|
+
...vue_default.rules,
|
|
5
|
+
"vue/require-explicit-emits": "off",
|
|
6
|
+
"vue/no-unused-refs": "off",
|
|
7
|
+
"vue/prefer-true-attribute-shorthand": ["error", "never"]
|
|
8
|
+
} };
|
|
9
|
+
var vue2Composition = { rules: { ...vue_default.rules } };
|
|
10
|
+
//#endregion
|
|
11
|
+
export { vue2Options as n, vue2Composition as t };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=vue2-oH2qFl6d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue2-oH2qFl6d.js","names":[],"sources":["../src/rules/vue2.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport vue from './vue';\n\nexport const vue2Options = {\n rules: {\n ...vue.rules,\n 'vue/require-explicit-emits': 'off',\n 'vue/no-unused-refs': 'off',\n 'vue/prefer-true-attribute-shorthand': ['error', 'never'],\n },\n} as Linter.Config;\n\nexport const vue2Composition = {\n rules: {\n ...vue.rules,\n },\n} as Linter.Config;\n"],"mappings":";;AAGA,IAAa,cAAc,EACvB,OAAO;CACH,GAAG,YAAI;CACP,8BAA8B;CAC9B,sBAAsB;CACtB,uCAAuC,CAAC,SAAS,QAAQ;CAC5D,EACa;AAElB,IAAa,kBAAkB,EAC3B,OAAO,EACH,GAAG,YAAI,OACV,EACa"}
|