@html-eslint/eslint-plugin 0.25.0 → 0.26.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/lib/rules/no-extra-spacing-attrs.js +121 -87
- package/package.json +3 -3
- package/types/constants/index.d.ts +5 -0
- package/types/constants/index.d.ts.map +1 -0
- package/types/constants/obsolete-tags.d.ts +3 -0
- package/types/constants/obsolete-tags.d.ts.map +1 -0
- package/types/constants/rule-category.d.ts +5 -0
- package/types/constants/rule-category.d.ts.map +1 -0
- package/types/constants/void-elements.d.ts +3 -0
- package/types/constants/void-elements.d.ts.map +1 -0
- package/types/rules/element-newline.d.ts +7 -0
- package/types/rules/element-newline.d.ts.map +1 -0
- package/types/rules/id-naming-convention.d.ts +7 -0
- package/types/rules/indent.d.ts +15 -0
- package/types/rules/indent.d.ts.map +1 -0
- package/types/rules/lowercase.d.ts +7 -0
- package/types/rules/no-abstract-roles.d.ts +7 -0
- package/types/rules/no-abstract-roles.d.ts.map +1 -0
- package/types/rules/no-accesskey-attrs.d.ts +7 -0
- package/types/rules/no-accesskey-attrs.d.ts.map +1 -0
- package/types/rules/no-aria-hidden-body.d.ts +4 -0
- package/types/rules/no-aria-hidden-body.d.ts.map +1 -0
- package/types/rules/no-duplicate-attrs.d.ts +7 -0
- package/types/rules/no-duplicate-attrs.d.ts.map +1 -0
- package/types/rules/no-duplicate-id.d.ts +7 -0
- package/types/rules/no-duplicate-id.d.ts.map +1 -0
- package/types/rules/no-extra-spacing-attrs.d.ts +15 -0
- package/types/rules/no-extra-spacing-attrs.d.ts.map +1 -0
- package/types/rules/no-inline-styles.d.ts +4 -0
- package/types/rules/no-inline-styles.d.ts.map +1 -0
- package/types/rules/no-multiple-empty-lines.d.ts +5 -0
- package/types/rules/no-multiple-empty-lines.d.ts.map +1 -0
- package/types/rules/no-multiple-h1.d.ts +5 -0
- package/types/rules/no-multiple-h1.d.ts.map +1 -0
- package/types/rules/no-non-scalable-viewport.d.ts +4 -0
- package/types/rules/no-non-scalable-viewport.d.ts.map +1 -0
- package/types/rules/no-obsolete-tags.d.ts +4 -0
- package/types/rules/no-obsolete-tags.d.ts.map +1 -0
- package/types/rules/no-positive-tabindex.d.ts +7 -0
- package/types/rules/no-positive-tabindex.d.ts.map +1 -0
- package/types/rules/no-restricted-attr-values.d.ts +13 -0
- package/types/rules/no-restricted-attr-values.d.ts.map +1 -0
- package/types/rules/no-restricted-attrs.d.ts +13 -0
- package/types/rules/no-script-style-type.d.ts +7 -0
- package/types/rules/no-script-style-type.d.ts.map +1 -0
- package/types/rules/no-skip-heading-levels.d.ts +5 -0
- package/types/rules/no-skip-heading-levels.d.ts.map +1 -0
- package/types/rules/no-target-blank.d.ts +4 -0
- package/types/rules/no-target-blank.d.ts.map +1 -0
- package/types/rules/no-trailing-spaces.d.ts +4 -0
- package/types/rules/no-trailing-spaces.d.ts.map +1 -0
- package/types/rules/quotes.d.ts +9 -0
- package/types/rules/quotes.d.ts.map +1 -0
- package/types/rules/require-attrs.d.ts +7 -0
- package/types/rules/require-button-type.d.ts +4 -0
- package/types/rules/require-button-type.d.ts.map +1 -0
- package/types/rules/require-closing-tags.d.ts +5 -0
- package/types/rules/require-doctype.d.ts +4 -0
- package/types/rules/require-doctype.d.ts.map +1 -0
- package/types/rules/require-frame-title.d.ts +4 -0
- package/types/rules/require-frame-title.d.ts.map +1 -0
- package/types/rules/require-img-alt.d.ts +5 -0
- package/types/rules/require-img-alt.d.ts.map +1 -0
- package/types/rules/require-lang.d.ts +4 -0
- package/types/rules/require-lang.d.ts.map +1 -0
- package/types/rules/require-li-container.d.ts +4 -0
- package/types/rules/require-meta-charset.d.ts +5 -0
- package/types/rules/require-meta-description.d.ts +5 -0
- package/types/rules/require-meta-viewport.d.ts +5 -0
- package/types/rules/require-open-graph-protocol.d.ts +5 -0
- package/types/rules/require-title.d.ts +6 -0
- package/types/rules/sort-attrs.d.ts +7 -0
- package/types/rules/sort-attrs.d.ts.map +1 -0
- package/types/rules/utils/array.d.ts +17 -0
- package/types/rules/utils/array.d.ts.map +1 -0
- package/types/rules/utils/naming.d.ts +25 -0
- package/types/rules/utils/naming.d.ts.map +1 -0
- package/types/rules/utils/node.d.ts +37 -0
- package/types/rules/utils/node.d.ts.map +1 -0
- package/types/constants/svg-camelcase-attributes.d.ts +0 -3
- package/types/constants/svg-camelcase-attributes.d.ts.map +0 -1
|
@@ -20,9 +20,13 @@ const MESSAGE_IDS = {
|
|
|
20
20
|
EXTRA_BETWEEN: "unexpectedBetween",
|
|
21
21
|
EXTRA_AFTER: "unexpectedAfter",
|
|
22
22
|
EXTRA_BEFORE: "unexpectedBefore",
|
|
23
|
+
EXTRA_BEFORE_CLOSE: "unexpectedBeforeClose",
|
|
23
24
|
MISSING_BEFORE: "missingBefore",
|
|
24
25
|
MISSING_BEFORE_SELF_CLOSE: "missingBeforeSelfClose",
|
|
25
26
|
EXTRA_BEFORE_SELF_CLOSE: "unexpectedBeforeSelfClose",
|
|
27
|
+
EXTRA_TAB_BEFORE: "unexpectedTabBefore",
|
|
28
|
+
EXTRA_TAB_BEFORE_SELF_CLOSE: "unexpectedTabBeforeSelfClose",
|
|
29
|
+
EXTRA_TAB_BETWEEN: "unexpectedTabBetween",
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/**
|
|
@@ -46,6 +50,9 @@ module.exports = {
|
|
|
46
50
|
disallowMissing: {
|
|
47
51
|
type: "boolean",
|
|
48
52
|
},
|
|
53
|
+
disallowTabs: {
|
|
54
|
+
type: "boolean",
|
|
55
|
+
},
|
|
49
56
|
enforceBeforeSelfClose: {
|
|
50
57
|
type: "boolean",
|
|
51
58
|
},
|
|
@@ -56,17 +63,27 @@ module.exports = {
|
|
|
56
63
|
[MESSAGE_IDS.EXTRA_BETWEEN]: "Unexpected space between attributes",
|
|
57
64
|
[MESSAGE_IDS.EXTRA_AFTER]: "Unexpected space after attribute",
|
|
58
65
|
[MESSAGE_IDS.EXTRA_BEFORE]: "Unexpected space before attribute",
|
|
66
|
+
[MESSAGE_IDS.EXTRA_BEFORE_CLOSE]: "Unexpected space before closing",
|
|
59
67
|
[MESSAGE_IDS.MISSING_BEFORE_SELF_CLOSE]:
|
|
60
68
|
"Missing space before self closing",
|
|
61
69
|
[MESSAGE_IDS.EXTRA_BEFORE_SELF_CLOSE]:
|
|
62
70
|
"Unexpected extra spaces before self closing",
|
|
63
71
|
[MESSAGE_IDS.MISSING_BEFORE]: "Missing space before attribute",
|
|
72
|
+
[MESSAGE_IDS.EXTRA_TAB_BEFORE]:
|
|
73
|
+
"Unexpected tab before attribute; use space instead",
|
|
74
|
+
[MESSAGE_IDS.EXTRA_TAB_BEFORE_SELF_CLOSE]:
|
|
75
|
+
"Unexpected tab before self closing; use space instead",
|
|
76
|
+
[MESSAGE_IDS.EXTRA_TAB_BETWEEN]:
|
|
77
|
+
"Unexpected tab between attributes; use space instead",
|
|
64
78
|
},
|
|
65
79
|
},
|
|
66
80
|
create(context) {
|
|
67
81
|
const enforceBeforeSelfClose = !!(context.options[0] || {})
|
|
68
82
|
.enforceBeforeSelfClose;
|
|
69
83
|
const disallowMissing = !!(context.options[0] || {}).disallowMissing;
|
|
84
|
+
const disallowTabs = !!(context.options[0] || {}).disallowTabs;
|
|
85
|
+
|
|
86
|
+
const sourceCode = context.getSourceCode().text;
|
|
70
87
|
|
|
71
88
|
/**
|
|
72
89
|
* @param {AttributeNode[]} attrs
|
|
@@ -98,48 +115,23 @@ module.exports = {
|
|
|
98
115
|
return fixer.insertTextAfter(current, " ");
|
|
99
116
|
},
|
|
100
117
|
});
|
|
118
|
+
} else if (disallowTabs) {
|
|
119
|
+
if (sourceCode[current.range[1]] === `\t`) {
|
|
120
|
+
context.report({
|
|
121
|
+
loc: getLocBetween(current, after),
|
|
122
|
+
messageId: MESSAGE_IDS.EXTRA_TAB_BETWEEN,
|
|
123
|
+
fix(fixer) {
|
|
124
|
+
return fixer.replaceTextRange(
|
|
125
|
+
[current.range[1], current.range[1] + 1],
|
|
126
|
+
` `
|
|
127
|
+
);
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
}
|
|
101
131
|
}
|
|
102
132
|
});
|
|
103
133
|
}
|
|
104
134
|
|
|
105
|
-
/**
|
|
106
|
-
* @param {OpenTagEndNode | OpenScriptTagEndNode | OpenStyleTagEndNode} openEnd
|
|
107
|
-
* @param {AttributeNode} lastAttr
|
|
108
|
-
* @param {boolean} isSelfClosed
|
|
109
|
-
* @returns {void}
|
|
110
|
-
*/
|
|
111
|
-
function checkExtraSpaceAfter(openEnd, lastAttr, isSelfClosed) {
|
|
112
|
-
if (openEnd.loc.end.line !== lastAttr.loc.end.line) {
|
|
113
|
-
// skip the attribute on the different line with the start tag
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const limit = isSelfClosed && enforceBeforeSelfClose ? 1 : 0;
|
|
117
|
-
const spacesBetween = openEnd.loc.start.column - lastAttr.loc.end.column;
|
|
118
|
-
|
|
119
|
-
if (spacesBetween > limit) {
|
|
120
|
-
context.report({
|
|
121
|
-
loc: getLocBetween(lastAttr, openEnd),
|
|
122
|
-
messageId: MESSAGE_IDS.EXTRA_AFTER,
|
|
123
|
-
fix(fixer) {
|
|
124
|
-
return fixer.removeRange([
|
|
125
|
-
lastAttr.range[1],
|
|
126
|
-
lastAttr.range[1] + spacesBetween - limit,
|
|
127
|
-
]);
|
|
128
|
-
},
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (isSelfClosed && enforceBeforeSelfClose && spacesBetween < 1) {
|
|
133
|
-
context.report({
|
|
134
|
-
loc: getLocBetween(lastAttr, openEnd),
|
|
135
|
-
messageId: MESSAGE_IDS.MISSING_BEFORE_SELF_CLOSE,
|
|
136
|
-
fix(fixer) {
|
|
137
|
-
return fixer.insertTextAfter(lastAttr, " ");
|
|
138
|
-
},
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
135
|
/**
|
|
144
136
|
* @param {OpenScriptTagStartNode | OpenTagStartNode | OpenStyleTagStartNode} node
|
|
145
137
|
* @param {AttributeNode} firstAttr
|
|
@@ -164,42 +156,19 @@ module.exports = {
|
|
|
164
156
|
]);
|
|
165
157
|
},
|
|
166
158
|
});
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
const spacesBetween =
|
|
181
|
-
openEnd.loc.start.column - beforeSelfClosing.loc.end.column;
|
|
182
|
-
const locBetween = getLocBetween(beforeSelfClosing, openEnd);
|
|
183
|
-
|
|
184
|
-
if (spacesBetween > 1) {
|
|
185
|
-
context.report({
|
|
186
|
-
loc: locBetween,
|
|
187
|
-
messageId: MESSAGE_IDS.EXTRA_BEFORE_SELF_CLOSE,
|
|
188
|
-
fix(fixer) {
|
|
189
|
-
return fixer.removeRange([
|
|
190
|
-
beforeSelfClosing.range[1] + 1,
|
|
191
|
-
openEnd.range[0],
|
|
192
|
-
]);
|
|
193
|
-
},
|
|
194
|
-
});
|
|
195
|
-
} else if (spacesBetween < 1) {
|
|
196
|
-
context.report({
|
|
197
|
-
loc: locBetween,
|
|
198
|
-
messageId: MESSAGE_IDS.MISSING_BEFORE_SELF_CLOSE,
|
|
199
|
-
fix(fixer) {
|
|
200
|
-
return fixer.insertTextAfter(beforeSelfClosing, " ");
|
|
201
|
-
},
|
|
202
|
-
});
|
|
159
|
+
} else if (disallowTabs) {
|
|
160
|
+
if (sourceCode[firstAttr.range[0] - 1] === `\t`) {
|
|
161
|
+
context.report({
|
|
162
|
+
loc: firstAttr.loc,
|
|
163
|
+
messageId: MESSAGE_IDS.EXTRA_TAB_BEFORE,
|
|
164
|
+
fix(fixer) {
|
|
165
|
+
return fixer.replaceTextRange(
|
|
166
|
+
[firstAttr.range[0] - 1, firstAttr.range[0]],
|
|
167
|
+
` `
|
|
168
|
+
);
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
}
|
|
203
172
|
}
|
|
204
173
|
}
|
|
205
174
|
|
|
@@ -216,24 +185,89 @@ module.exports = {
|
|
|
216
185
|
if (node.attributes.length) {
|
|
217
186
|
checkExtraSpaceBefore(node.openStart, node.attributes[0]);
|
|
218
187
|
}
|
|
188
|
+
|
|
219
189
|
if (node.openEnd) {
|
|
190
|
+
checkExtraSpacesBetweenAttrs(node.attributes);
|
|
191
|
+
|
|
192
|
+
const lastAttr = node.attributes[node.attributes.length - 1];
|
|
193
|
+
const nodeBeforeEnd =
|
|
194
|
+
node.attributes.length === 0 ? node.openStart : lastAttr;
|
|
195
|
+
|
|
196
|
+
if (nodeBeforeEnd.loc.end.line !== node.openEnd.loc.start.line) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
|
|
220
200
|
const isSelfClosing = node.openEnd.value === "/>";
|
|
221
201
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
)
|
|
202
|
+
const spacesBetween =
|
|
203
|
+
node.openEnd.loc.start.column - nodeBeforeEnd.loc.end.column;
|
|
204
|
+
const locBetween = getLocBetween(nodeBeforeEnd, node.openEnd);
|
|
205
|
+
|
|
206
|
+
if (isSelfClosing && enforceBeforeSelfClose) {
|
|
207
|
+
if (spacesBetween < 1) {
|
|
208
|
+
context.report({
|
|
209
|
+
loc: locBetween,
|
|
210
|
+
messageId: MESSAGE_IDS.MISSING_BEFORE_SELF_CLOSE,
|
|
211
|
+
fix(fixer) {
|
|
212
|
+
return fixer.insertTextAfter(nodeBeforeEnd, " ");
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
} else if (spacesBetween === 1) {
|
|
216
|
+
if (
|
|
217
|
+
disallowTabs &&
|
|
218
|
+
sourceCode[node.openEnd.range[0] - 1] === `\t`
|
|
219
|
+
) {
|
|
220
|
+
context.report({
|
|
221
|
+
loc: node.openEnd.loc,
|
|
222
|
+
messageId: MESSAGE_IDS.EXTRA_TAB_BEFORE_SELF_CLOSE,
|
|
223
|
+
fix(fixer) {
|
|
224
|
+
return fixer.replaceTextRange(
|
|
225
|
+
[node.openEnd.range[0] - 1, node.openEnd.range[0]],
|
|
226
|
+
` `
|
|
227
|
+
);
|
|
228
|
+
},
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
context.report({
|
|
233
|
+
loc: locBetween,
|
|
234
|
+
messageId: MESSAGE_IDS.EXTRA_BEFORE_SELF_CLOSE,
|
|
235
|
+
fix(fixer) {
|
|
236
|
+
return fixer.removeRange([
|
|
237
|
+
nodeBeforeEnd.range[1] + 1,
|
|
238
|
+
node.openEnd.range[0],
|
|
239
|
+
]);
|
|
240
|
+
},
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return;
|
|
228
245
|
}
|
|
229
246
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
247
|
+
if (spacesBetween > 0) {
|
|
248
|
+
if (node.attributes.length > 0) {
|
|
249
|
+
context.report({
|
|
250
|
+
loc: locBetween,
|
|
251
|
+
messageId: MESSAGE_IDS.EXTRA_AFTER,
|
|
252
|
+
fix(fixer) {
|
|
253
|
+
return fixer.removeRange([
|
|
254
|
+
lastAttr.range[1],
|
|
255
|
+
node.openEnd.range[0],
|
|
256
|
+
]);
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
} else {
|
|
260
|
+
context.report({
|
|
261
|
+
loc: locBetween,
|
|
262
|
+
messageId: MESSAGE_IDS.EXTRA_BEFORE_CLOSE,
|
|
263
|
+
fix(fixer) {
|
|
264
|
+
return fixer.removeRange([
|
|
265
|
+
node.openStart.range[1],
|
|
266
|
+
node.openEnd.range[0],
|
|
267
|
+
]);
|
|
268
|
+
},
|
|
269
|
+
});
|
|
270
|
+
}
|
|
237
271
|
}
|
|
238
272
|
}
|
|
239
273
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-eslint/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "ESLint plugin for html",
|
|
5
5
|
"author": "yeonjuan",
|
|
6
6
|
"homepage": "https://github.com/yeonjuan/html-eslint#readme",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"accessibility"
|
|
46
46
|
],
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@html-eslint/parser": "^0.
|
|
48
|
+
"@html-eslint/parser": "^0.26.0",
|
|
49
49
|
"@types/eslint": "^8.56.2",
|
|
50
50
|
"@types/estree": "^0.0.47",
|
|
51
51
|
"es-html-parser": "^0.0.8",
|
|
52
52
|
"typescript": "^4.4.4"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "34d55c3b5be5a29cc416063b4b4375cb89b3a519"
|
|
55
55
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/constants/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obsolete-tags.d.ts","sourceRoot":"","sources":["../../lib/constants/obsolete-tags.js"],"names":[],"mappings":"wBACW,MAAM,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-category.d.ts","sourceRoot":"","sources":["../../lib/constants/rule-category.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"void-elements.d.ts","sourceRoot":"","sources":["../../lib/constants/void-elements.js"],"names":[],"mappings":"wBAAW,MAAM,EAAE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type ProgramNode = import("../types").ProgramNode;
|
|
5
|
+
export type TagNode = import("../types").TagNode;
|
|
6
|
+
export type BaseNode = import("../types").BaseNode;
|
|
7
|
+
//# sourceMappingURL=element-newline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-newline.d.ts","sourceRoot":"","sources":["../../lib/rules/element-newline.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW;sBAC9B,OAAO,UAAU,EAAE,OAAO;uBAC1B,OAAO,UAAU,EAAE,QAAQ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
6
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
7
|
+
//# sourceMappingURL=id-naming-convention.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type AnyNode = import("../types").AnyNode;
|
|
5
|
+
export type LineNode = import("../types").LineNode;
|
|
6
|
+
export type BaseNode = import("../types").BaseNode;
|
|
7
|
+
export type TagNode = import("../types").TagNode;
|
|
8
|
+
export type IndentType = {
|
|
9
|
+
TAB: "tab";
|
|
10
|
+
SPACE: "space";
|
|
11
|
+
};
|
|
12
|
+
export type MessageId = {
|
|
13
|
+
WRONG_INDENT: "wrongIndent";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=indent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indent.d.ts","sourceRoot":"","sources":["../../lib/rules/indent.js"],"names":[],"mappings":"wBA8BU,UAAU;;yBA7BN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;uBAC1B,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,UAAU,EAAE,QAAQ;sBAC3B,OAAO,UAAU,EAAE,OAAO;;SAE1B,KAAK;WACL,OAAO;;;kBAEP,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=lowercase.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-abstract-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-abstract-roles.d.ts","sourceRoot":"","sources":["../../lib/rules/no-abstract-roles.js"],"names":[],"mappings":"wBA8BU,UAAU;;yBA7BN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-accesskey-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-accesskey-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-accesskey-attrs.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-aria-hidden-body.d.ts","sourceRoot":"","sources":["../../lib/rules/no-aria-hidden-body.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-duplicate-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicate-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-duplicate-attrs.js"],"names":[],"mappings":"wBAcU,UAAU;;yBAbN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-duplicate-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicate-id.d.ts","sourceRoot":"","sources":["../../lib/rules/no-duplicate-id.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
5
|
+
export type OpenTagEndNode = import("../types").OpenTagEndNode;
|
|
6
|
+
export type OpenScriptTagEndNode = import("../types").OpenScriptTagEndNode;
|
|
7
|
+
export type OpenStyleTagEndNode = import("../types").OpenStyleTagEndNode;
|
|
8
|
+
export type OpenScriptTagStartNode = import("../types").OpenScriptTagStartNode;
|
|
9
|
+
export type OpenTagStartNode = import("../types").OpenTagStartNode;
|
|
10
|
+
export type OpenStyleTagStartNode = import("../types").OpenStyleTagStartNode;
|
|
11
|
+
export type TagNode = import("../types").TagNode;
|
|
12
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
13
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
14
|
+
export type AnyNode = import("../types").AnyNode;
|
|
15
|
+
//# sourceMappingURL=no-extra-spacing-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-extra-spacing-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-extra-spacing-attrs.js"],"names":[],"mappings":"wBAgCU,UAAU;;yBA/BN,OAAO,UAAU,EAAE,UAAU;4BAC7B,OAAO,UAAU,EAAE,aAAa;6BAChC,OAAO,UAAU,EAAE,cAAc;mCACjC,OAAO,UAAU,EAAE,oBAAoB;kCACvC,OAAO,UAAU,EAAE,mBAAmB;qCACtC,OAAO,UAAU,EAAE,sBAAsB;+BACzC,OAAO,UAAU,EAAE,gBAAgB;oCACnC,OAAO,UAAU,EAAE,qBAAqB;sBACxC,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa;sBAChC,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-inline-styles.d.ts","sourceRoot":"","sources":["../../lib/rules/no-inline-styles.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-multiple-empty-lines.d.ts","sourceRoot":"","sources":["../../lib/rules/no-multiple-empty-lines.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-multiple-h1.d.ts","sourceRoot":"","sources":["../../lib/rules/no-multiple-h1.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-non-scalable-viewport.d.ts","sourceRoot":"","sources":["../../lib/rules/no-non-scalable-viewport.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-obsolete-tags.d.ts","sourceRoot":"","sources":["../../lib/rules/no-obsolete-tags.js"],"names":[],"mappings":"wBAaU,UAAU;;yBAZN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-positive-tabindex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-positive-tabindex.d.ts","sourceRoot":"","sources":["../../lib/rules/no-positive-tabindex.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
5
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
6
|
+
export type TagNode = import("../types").TagNode;
|
|
7
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
8
|
+
export type Options = {
|
|
9
|
+
attrPatterns: string[];
|
|
10
|
+
attrValuePatterns: string[];
|
|
11
|
+
message?: string;
|
|
12
|
+
}[];
|
|
13
|
+
//# sourceMappingURL=no-restricted-attr-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-restricted-attr-values.d.ts","sourceRoot":"","sources":["../../lib/rules/no-restricted-attr-values.js"],"names":[],"mappings":"wBAgBU,UAAU;;yBAfN,OAAO,UAAU,EAAE,UAAU;2BAC7B,OAAO,UAAU,EAAE,YAAY;4BAC/B,OAAO,UAAU,EAAE,aAAa;sBAChC,OAAO,UAAU,EAAE,OAAO;4BAC1B,OAAO,UAAU,EAAE,aAAa;sBACjC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
5
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
6
|
+
export type TagNode = import("../types").TagNode;
|
|
7
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
8
|
+
export type Options = {
|
|
9
|
+
tagPatterns: string[];
|
|
10
|
+
attrPatterns: string[];
|
|
11
|
+
message?: string;
|
|
12
|
+
}[];
|
|
13
|
+
//# sourceMappingURL=no-restricted-attrs.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
5
|
+
export type TagNode = import("../types").TagNode;
|
|
6
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
7
|
+
//# sourceMappingURL=no-script-style-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-script-style-type.d.ts","sourceRoot":"","sources":["../../lib/rules/no-script-style-type.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU;2BAC7B,OAAO,UAAU,EAAE,YAAY;sBAC/B,OAAO,UAAU,EAAE,OAAO;4BAC1B,OAAO,UAAU,EAAE,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-skip-heading-levels.d.ts","sourceRoot":"","sources":["../../lib/rules/no-skip-heading-levels.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-target-blank.d.ts","sourceRoot":"","sources":["../../lib/rules/no-target-blank.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-trailing-spaces.d.ts","sourceRoot":"","sources":["../../lib/rules/no-trailing-spaces.js"],"names":[],"mappings":"wBAWU,UAAU;;yBAVN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type Range = import("../types").Range;
|
|
5
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
6
|
+
export type TagNode = import("../types").TagNode;
|
|
7
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
8
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
9
|
+
//# sourceMappingURL=quotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../lib/rules/quotes.js"],"names":[],"mappings":"wBAwBU,UAAU;;yBAvBN,OAAO,UAAU,EAAE,UAAU;oBAC7B,OAAO,UAAU,EAAE,KAAK;4BACxB,OAAO,UAAU,EAAE,aAAa;sBAChC,OAAO,UAAU,EAAE,OAAO;4BAC1B,OAAO,UAAU,EAAE,aAAa;2BAChC,OAAO,UAAU,EAAE,YAAY"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type TagNode = import("../types").TagNode;
|
|
5
|
+
export type ScriptTagNode = import("../types").ScriptTagNode;
|
|
6
|
+
export type StyleTagNode = import("../types").StyleTagNode;
|
|
7
|
+
//# sourceMappingURL=require-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-button-type.d.ts","sourceRoot":"","sources":["../../lib/rules/require-button-type.js"],"names":[],"mappings":"wBAeU,UAAU;;yBAdN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-doctype.d.ts","sourceRoot":"","sources":["../../lib/rules/require-doctype.js"],"names":[],"mappings":"wBAWU,UAAU;;yBAVN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-frame-title.d.ts","sourceRoot":"","sources":["../../lib/rules/require-frame-title.js"],"names":[],"mappings":"wBAaU,UAAU;;yBAZN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-img-alt.d.ts","sourceRoot":"","sources":["../../lib/rules/require-img-alt.js"],"names":[],"mappings":"wBAYU,UAAU;;yBAXN,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-lang.d.ts","sourceRoot":"","sources":["../../lib/rules/require-lang.js"],"names":[],"mappings":"wBAaU,UAAU;;yBAZN,OAAO,UAAU,EAAE,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _exports: RuleModule;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type RuleModule = import("../types").RuleModule;
|
|
4
|
+
export type AttributeNode = import("../types").AttributeNode;
|
|
5
|
+
export type TextNode = import("../types").TextNode;
|
|
6
|
+
export type RuleFixer = import("../types").RuleFixer;
|
|
7
|
+
//# sourceMappingURL=sort-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/sort-attrs.js"],"names":[],"mappings":"wBAcU,UAAU;;yBAbN,OAAO,UAAU,EAAE,UAAU;4BAC7B,OAAO,UAAU,EAAE,aAAa;uBAChC,OAAO,UAAU,EAAE,QAAQ;wBAC3B,OAAO,UAAU,EAAE,SAAS"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @template T
|
|
3
|
+
* @template {T} S
|
|
4
|
+
* @param {T[]} items
|
|
5
|
+
* @param {(node: T) => node is S} predicate
|
|
6
|
+
* @returns {S | undefined}
|
|
7
|
+
*/
|
|
8
|
+
export function find<T, S extends T>(items: T[], predicate: (node: T) => node is S): S | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* @template T
|
|
11
|
+
* @template {T} S
|
|
12
|
+
* @param {T[]} items
|
|
13
|
+
* @param {(node: T) => node is S} predicate
|
|
14
|
+
* @returns {S[]}
|
|
15
|
+
*/
|
|
16
|
+
export function filter<T, S extends T>(items: T[], predicate: (node: T) => node is S): S[];
|
|
17
|
+
//# sourceMappingURL=array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/array.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mGAEC;AAED;;;;;;GAMG;AACH,2FAEC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks a given name follows `kebab-case` or not.
|
|
3
|
+
* @param {string} name name to check
|
|
4
|
+
* @returns {boolean} `true` if a name follows `kebab-case`, otherwise `false`.
|
|
5
|
+
*/
|
|
6
|
+
export function isKebabCase(name: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Checks a given name follows `snake_case` or not.
|
|
9
|
+
* @param {string} name name to check
|
|
10
|
+
* @returns {boolean} `true` if a name follows `snake_case`, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
export function isSnakeCase(name: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Checks a given name follows `PascalCase` or not.
|
|
15
|
+
* @param {string} name name to check
|
|
16
|
+
* @returns {boolean} `true` if a name follows `PascalCase`, otherwise `false`.
|
|
17
|
+
*/
|
|
18
|
+
export function isPascalCase(name: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Checks a given name follows `camelCase` or not.
|
|
21
|
+
* @param {string} name name to check
|
|
22
|
+
* @returns {boolean} `true` if a name follows `camelCase`, otherwise `false`.
|
|
23
|
+
*/
|
|
24
|
+
export function isCamelCase(name: string): boolean;
|
|
25
|
+
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/naming.js"],"names":[],"mappings":"AAOE;;;;GAIG;AACH,mDAEC;AAED;;;;GAIG;AACH,mDAEC;AAED;;;;GAIG;AACH,oDAEC;AAED;;;;GAIG;AACH,mDAEC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type TagNode = import("../../types").TagNode;
|
|
2
|
+
export type ScriptTagNode = import("../../types").ScriptTagNode;
|
|
3
|
+
export type StyleTagNode = import("../../types").StyleTagNode;
|
|
4
|
+
export type AttributeNode = import("../../types").AttributeNode;
|
|
5
|
+
export type AnyNode = import("../../types").AnyNode;
|
|
6
|
+
export type TextNode = import("../../types").TextNode;
|
|
7
|
+
export type CommentContentNode = import("../../types").CommentContentNode;
|
|
8
|
+
export type LineNode = import("../../types").LineNode;
|
|
9
|
+
export type BaseNode = import("../../types").BaseNode;
|
|
10
|
+
export type Location = import("../../types").Location;
|
|
11
|
+
/**
|
|
12
|
+
* @param {TagNode | ScriptTagNode | StyleTagNode} node
|
|
13
|
+
* @param {string} key
|
|
14
|
+
* @returns {AttributeNode | undefined}
|
|
15
|
+
*/
|
|
16
|
+
declare function findAttr(node: import("../../types").TagNode | import("../../types").ScriptTagNode | import("../../types").StyleTagNode, key: string): import("../../types").AttributeNode | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Checks whether a node's all tokens are on the same line or not.
|
|
19
|
+
* @param {AnyNode} node A node to check
|
|
20
|
+
* @returns {boolean} `true` if a node's tokens are on the same line, otherwise `false`.
|
|
21
|
+
*/
|
|
22
|
+
declare function isNodeTokensOnSameLine(node: import("../../types").AnyNode): boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param {TextNode | CommentContentNode} node
|
|
26
|
+
* @returns {LineNode[]}
|
|
27
|
+
*/
|
|
28
|
+
declare function splitToLineNodes(node: import("../../types").TextNode | import("../../types").CommentContentNode): import("../../types").LineNode[];
|
|
29
|
+
/**
|
|
30
|
+
* Get location between two nodes.
|
|
31
|
+
* @param {BaseNode} before A node placed in before
|
|
32
|
+
* @param {BaseNode} after A node placed in after
|
|
33
|
+
* @returns {Location} location between two nodes.
|
|
34
|
+
*/
|
|
35
|
+
declare function getLocBetween(before: import("../../types").BaseNode, after: import("../../types").BaseNode): import("eslint").AST.SourceLocation;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/node.js"],"names":[],"mappings":"sBACc,OAAO,aAAa,EAAE,OAAO;4BAC7B,OAAO,aAAa,EAAE,aAAa;2BACnC,OAAO,aAAa,EAAE,YAAY;4BAClC,OAAO,aAAa,EAAE,aAAa;sBACnC,OAAO,aAAa,EAAE,OAAO;uBAC7B,OAAO,aAAa,EAAE,QAAQ;iCAC9B,OAAO,aAAa,EAAE,kBAAkB;uBACxC,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;AAI1C;;;;GAIG;AACH,wMAIC;AAED;;;;GAIG;AACH,sFAEC;AAED;;;;GAIG;AACH,qJA8BC;AACD;;;;;GAKG;AACH,mJAKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svg-camelcase-attributes.d.ts","sourceRoot":"","sources":["../../lib/constants/svg-camelcase-attributes.js"],"names":[],"mappings":""}
|