@nanas-home/hub-common 0.59.1309 → 0.60.1336
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.
|
@@ -2,7 +2,7 @@ export default {
|
|
|
2
2
|
meta: {
|
|
3
3
|
type: 'problem',
|
|
4
4
|
docs: {
|
|
5
|
-
description: 'Ensure draggable attribute is defined on <img> and <
|
|
5
|
+
description: 'Ensure draggable attribute is defined on <img>, <a> and <A> elements',
|
|
6
6
|
},
|
|
7
7
|
schema: [],
|
|
8
8
|
messages: {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
const tagName = node.name.name;
|
|
21
21
|
|
|
22
22
|
// Only check <img> and <a>
|
|
23
|
-
if (tagName !== 'img' && tagName !== 'a') return;
|
|
23
|
+
if (tagName !== 'img' && tagName.toLowerCase() !== 'a') return;
|
|
24
24
|
|
|
25
25
|
const draggableAttr = node.attributes.find(
|
|
26
26
|
(attr) => attr.type === 'JSXAttribute' && attr.name && attr.name.name === 'draggable',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanas-home/hub-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.1336",
|
|
4
4
|
"description": "Nana's Hub common library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kurt Lourens",
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
"@storybook/addon-links": "^10.4.6",
|
|
39
39
|
"@storybook/addon-onboarding": "^10.4.6",
|
|
40
40
|
"@storybook/addon-vitest": "^10.4.6",
|
|
41
|
-
"@types/node": "^26.1.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
43
|
-
"@typescript-eslint/parser": "^8.
|
|
44
|
-
"@vitest/browser": "^4.1.
|
|
45
|
-
"@vitest/coverage-v8": "^4.1.
|
|
46
|
-
"@vitest/ui": "^4.1.
|
|
41
|
+
"@types/node": "^26.1.1",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^8.63.0",
|
|
43
|
+
"@typescript-eslint/parser": "^8.63.0",
|
|
44
|
+
"@vitest/browser": "^4.1.10",
|
|
45
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
46
|
+
"@vitest/ui": "^4.1.10",
|
|
47
47
|
"dotenv-cli": "^11.0.0",
|
|
48
48
|
"eslint": "^10.6.0",
|
|
49
49
|
"eslint-plugin-solid": "^0.14.5",
|
|
50
50
|
"jsdom": "^29.1.1",
|
|
51
|
-
"node-html-parser": "^
|
|
51
|
+
"node-html-parser": "^9.0.0",
|
|
52
52
|
"npm-run-all": "^4.1.5",
|
|
53
53
|
"sass": "^1.101.0",
|
|
54
54
|
"storybook": "^10.4.6",
|
|
55
|
-
"storybook-solidjs-vite": "^10.
|
|
55
|
+
"storybook-solidjs-vite": "^10.6.0",
|
|
56
56
|
"tsup": "^8.5.1",
|
|
57
57
|
"tsup-preset-solid": "^2.2.0",
|
|
58
58
|
"typescript": "^6.0.3",
|
|
59
59
|
"vite": "^8.1.3",
|
|
60
60
|
"vite-plugin-solid": "^2.11.12",
|
|
61
|
-
"vitest": "^4.1.
|
|
61
|
+
"vitest": "^4.1.10"
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
"dist"
|