@markuplint/rules
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.5
@@ -39,2 +39,3 @@ "use strict"; | ||
var ml_core_1 = require("@markuplint/ml-core"); | ||
var ml_spec_1 = require("@markuplint/ml-spec"); | ||
exports.default = ml_core_1.createRule({ | ||
@@ -54,4 +55,6 @@ name: 'deprecated-element', | ||
return [4 /*yield*/, document.walkOn('Element', function (node) { return __awaiter(_this, void 0, void 0, function () { | ||
var spec; | ||
return __generator(this, function (_a) { | ||
if (node.obsolete) { | ||
spec = ml_spec_1.getSpecByTagName(node.nodeName, document.specs); | ||
if (spec && (spec.obsolete || spec.deprecated || spec.nonStandard)) { | ||
reports.push({ | ||
@@ -58,0 +61,0 @@ severity: node.rule.severity, |
{ | ||
"name": "@markuplint/rules", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.5", | ||
"description": "Rules for markuplint", | ||
@@ -16,6 +16,10 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"build": "tsc", | ||
"dev": "tsc --build --watch", | ||
"clean": "tsc --build --clean" | ||
}, | ||
"dependencies": { | ||
"@markuplint/ml-spec": "^1.0.0-alpha.1" | ||
}, | ||
"devDependencies": { | ||
"@markuplint/ml-core": "^1.0.0-alpha.3" | ||
"@markuplint/ml-core": "^1.0.0-alpha.5" | ||
}, | ||
@@ -25,3 +29,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "04f46c34858d5980604f23e86349584f0575ef97" | ||
"gitHead": "de677b589bf54651f23d23c7766d113b097053ce" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
385415
95
3891
2
+ Added@markuplint/ml-spec@1.7.0(transitive)
+ Addedtslib@2.8.1(transitive)