@markuplint/rules 3.2.0 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/rules",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Built-in rules of markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -20,10 +20,10 @@
20
20
  "./lib/permitted-contents/debug.js": "./lib/permitted-contents/debug.browser.js"
21
21
  },
22
22
  "dependencies": {
23
- "@markuplint/html-spec": "3.2.0",
24
- "@markuplint/ml-core": "3.2.0",
25
- "@markuplint/ml-spec": "3.2.0",
26
- "@markuplint/types": "3.1.0",
23
+ "@markuplint/html-spec": "3.3.0",
24
+ "@markuplint/ml-core": "3.3.0",
25
+ "@markuplint/ml-spec": "3.3.0",
26
+ "@markuplint/types": "3.2.0",
27
27
  "@ungap/structured-clone": "^1.0.1",
28
28
  "chrono-node": "^2.5.0",
29
29
  "debug": "^4.3.4",
@@ -33,5 +33,5 @@
33
33
  "devDependencies": {
34
34
  "@types/debug": "^4.1.7"
35
35
  },
36
- "gitHead": "26b04e045d91e29befca34c10dda2147b1bca9c7"
36
+ "gitHead": "791fb22a4df7acb985ced3808923fba0cd95c28a"
37
37
  }
@@ -1,2 +0,0 @@
1
- declare const _default: import('@markuplint/ml-core').RuleSeed<boolean, null>;
2
- export default _default;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const ml_core_1 = require("@markuplint/ml-core");
4
- exports.default = (0, ml_core_1.createRule)({
5
- defaultValue: true,
6
- defaultOptions: null,
7
- async verify({ document, report, t }) {
8
- // Element
9
- await document.walkOn("Element", (el) => {
10
- const raw = el.raw.trim();
11
- if (/./i.test(raw)) {
12
- report({
13
- scope: el,
14
- message: t("It is {0}", "issue"),
15
- });
16
- }
17
- });
18
- // Attribute
19
- await document.walkOn("Attr", (attr) => {
20
- var _a, _b, _c;
21
- if (/./i.test(attr.name)) {
22
- report({
23
- scope: attr,
24
- line: (_a = attr.nameNode) === null || _a === void 0 ? void 0 : _a.startLine,
25
- col: (_b = attr.nameNode) === null || _b === void 0 ? void 0 : _b.startCol,
26
- raw: (_c = attr.nameNode) === null || _c === void 0 ? void 0 : _c.raw,
27
- message: t("It is {0}", "issue"),
28
- });
29
- }
30
- });
31
- },
32
- });