@db-ux/core-eslint-plugin 4.5.4-mcp-server-migrate-tool-test-1-eb724df → 4.5.4-tailwind-inline-5d37a00
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.
|
@@ -94,11 +94,13 @@ export default {
|
|
|
94
94
|
const textChild = node.children.find((c) => c.type === 'JSXText');
|
|
95
95
|
if (textChild) {
|
|
96
96
|
fixes.push(fixer.replaceText(textChild, shortText));
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
if (!label) {
|
|
98
|
+
const lastAttr = openingElement.attributes[openingElement.attributes.length - 1];
|
|
99
|
+
const insertPos = lastAttr
|
|
100
|
+
? lastAttr.range[1]
|
|
101
|
+
: openingElement.name.range[1];
|
|
102
|
+
fixes.push(fixer.insertTextAfterRange([insertPos, insertPos], ` label="${content}"`));
|
|
103
|
+
}
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
return fixes;
|
|
@@ -2,6 +2,7 @@ import { MESSAGES, MESSAGE_IDS } from '../../shared/constants.js';
|
|
|
2
2
|
import { createAngularVisitors, defineTemplateBodyVisitor, getAttributeValue, isDBComponent } from '../../shared/utils.js';
|
|
3
3
|
const COMPONENTS_REQUIRING_CONTENT = [
|
|
4
4
|
'DBAccordionItem',
|
|
5
|
+
'DBBadge',
|
|
5
6
|
'DBButton',
|
|
6
7
|
'DBLink',
|
|
7
8
|
'DBIcon',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/core-eslint-plugin",
|
|
3
|
-
"version": "4.5.4-
|
|
3
|
+
"version": "4.5.4-tailwind-inline-5d37a00",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ESLint plugin for DB UX Design System components",
|
|
6
6
|
"repository": {
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"eslint": "^9.0.0 || ^10.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@angular-eslint/utils": "
|
|
41
|
-
"@typescript-eslint/utils": "8.
|
|
40
|
+
"@angular-eslint/utils": "21.3.1",
|
|
41
|
+
"@typescript-eslint/utils": "8.58.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@angular-eslint/bundled-angular-compiler": "
|
|
45
|
-
"@angular-eslint/template-parser": "
|
|
46
|
-
"@angular-eslint/test-utils": "
|
|
47
|
-
"@typescript-eslint/parser": "8.
|
|
48
|
-
"@typescript-eslint/rule-tester": "8.
|
|
44
|
+
"@angular-eslint/bundled-angular-compiler": "21.3.1",
|
|
45
|
+
"@angular-eslint/template-parser": "21.3.1",
|
|
46
|
+
"@angular-eslint/test-utils": "21.3.1",
|
|
47
|
+
"@typescript-eslint/parser": "8.58.0",
|
|
48
|
+
"@typescript-eslint/rule-tester": "8.58.0",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
|
-
"vitest": "
|
|
50
|
+
"vitest": "4.1.2",
|
|
51
51
|
"vue-eslint-parser": "10.4.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|