@yegor256/dogent 0.5.0 → 0.5.1

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/README.md CHANGED
@@ -29,7 +29,7 @@ In short: `agnix` lints the harness, `dogent` lints the prompt.
29
29
  Run it on any manifesto file, no installation required:
30
30
 
31
31
  ```bash
32
- npx @yegor256/dogent@0.4.0 CLAUDE.md
32
+ npx @yegor256/dogent@0.5.0 CLAUDE.md
33
33
  ```
34
34
 
35
35
  Lint several files at once:
@@ -141,7 +141,7 @@ Reference `dogent` as a remote hook in `.pre-commit-config.yaml`:
141
141
  ```yaml
142
142
  repos:
143
143
  - repo: https://github.com/yegor256/dogent
144
- rev: 0.4.0
144
+ rev: 0.5.0
145
145
  hooks:
146
146
  - id: dogent
147
147
  ```
package/package.json CHANGED
@@ -40,5 +40,5 @@
40
40
  "lint": "eslint .",
41
41
  "test": "mocha 'test/**/*.js' --timeout 60000"
42
42
  },
43
- "version": "0.5.0"
43
+ "version": "0.5.1"
44
44
  }
@@ -20,6 +20,9 @@ class Empty {
20
20
  constructor() {
21
21
  this.id = 'empty';
22
22
  }
23
+ prompt() {
24
+ return `${this.id}: flag any section heading that carries no instructions beneath it`;
25
+ }
23
26
  violations(document) {
24
27
  const uri = document.uri();
25
28
  const marks = document.walk({