@markuplint/rules
Advanced tools
Comparing version 1.0.0-alpha.35 to 1.0.0-alpha.36
@@ -33,6 +33,6 @@ "use strict"; | ||
for (const attr of node.attributes) { | ||
const value = attr.getValue(); | ||
if (attr.attrType === 'html-attr' && attr.isDynamicValue) { | ||
if (attr.attrType === 'ps-attr' || (attr.attrType === 'html-attr' && attr.isDynamicValue)) { | ||
continue; | ||
} | ||
const value = attr.getValue(); | ||
targetNodes.push({ | ||
@@ -39,0 +39,0 @@ severity, |
@@ -20,3 +20,3 @@ "use strict"; | ||
if (attrSpec.deprecated || attrSpec.obsolete) { | ||
const message = translate('The {0} {1} is {2}', name.raw, 'attribute', attrSpec.obsolete ? 'obsolete' : 'deprecated'); | ||
const message = translate('The {0} {1} is {2}', name.potential, 'attribute', attrSpec.obsolete ? 'obsolete' : 'deprecated'); | ||
reports.push({ | ||
@@ -23,0 +23,0 @@ severity: element.rule.severity, |
@@ -16,2 +16,5 @@ "use strict"; | ||
for (const attr of node.attributes) { | ||
if (attr.attrType === 'html-attr' && attr.isDirective) { | ||
continue; | ||
} | ||
const attrName = attr.getName(); | ||
@@ -18,0 +21,0 @@ const name = attrName.potential; |
@@ -1,3 +0,2 @@ | ||
declare type RequiredAttributes = string | string[]; | ||
declare const _default: import("@markuplint/ml-core").MLRule<RequiredAttributes, null>; | ||
declare const _default: import("@markuplint/ml-core").MLRule<string | string[], null>; | ||
export default _default; |
{ | ||
"name": "@markuplint/rules", | ||
"version": "1.0.0-alpha.35", | ||
"version": "1.0.0-alpha.36", | ||
"description": "Rules for markuplint", | ||
@@ -20,9 +20,9 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/html-ls": "^1.0.0-alpha.22", | ||
"@markuplint/html-ls": "^1.0.0-alpha.23", | ||
"@markuplint/ml-spec": "^1.0.0-alpha.8" | ||
}, | ||
"devDependencies": { | ||
"@markuplint/ml-core": "^1.0.0-alpha.25" | ||
"@markuplint/ml-core": "^1.0.0-alpha.26" | ||
}, | ||
"gitHead": "7f08524fa2ddecede72c1cda64c4a463a653b19f" | ||
"gitHead": "2f044e481ab1d91d518ae0bb4054c56ea6a4fff5" | ||
} |
Sorry, the diff of this file is not supported yet
379284
2965