Skip to content

Linter

The Linter keeps your project’s pages written the same way. Each time a page is saved, it tidies how the text is laid out (spacing, headings, bullets, tables) without changing what it says. Properties, sections a tool keeps, and code blocks are never touched. The rules are shared, so everyone on the project, people and agents, gets the same result.

The Linter is on by default. You can turn it off in Settings › Built-in plugins.

Linter settings: the Formatting rules under Spacing, each with a switch and See an example, such as Remove spaces at the end of lines and Collapse extra blank lines.

Open Settings › Built-in plugins › Linter. Under Formatting, each rule has a switch and See an example showing what it changes.

Rule What it does
Remove spaces at the end of lines Invisible spaces left after the last word are deleted
Keep two-space line breaks Off by default; keeps two spaces that mean a line break
Turn tabs into spaces A tab becomes four spaces
Collapse extra blank lines Several empty lines in a row become one
Space around headings / code blocks A blank line above and below each
End the file cleanly The file ends with exactly one line break
One main title Only the first # heading stays a title
No skipped heading levels A heading that skips a level moves up to fit
No punctuation ending a heading A trailing period, comma, semicolon, or colon is removed
Bullet style Every bulleted list uses the same symbol (dash by default)
Numbered lists Count up (1, 2, 3) or all ones (1, 1, 1)
Italic style / Bold style Every italic or bold uses the same symbol
Make web addresses clickable A bare web address becomes a link
Line up table columns Each column is padded to its widest cell

Each choice can also be set to Leave as written.

Under Dates stamped on save, a rule sets a date property to today, or to the time now, every time a page is saved. The usual one is Date Modified. Press + Add rule, pick the property and the value. The property must be a Date property in your Properties table.

The rules apply when the app or the eidos command saves a page. A file changed some other way, such as in another editor, can drift from them. Files to tidy, on the same settings screen, lists those files, and Tidy every file fixes them all. In the Health Check, each such file has a Lint fix.

The rules live in .eidos/plugins/linter/settings.yaml, shared with the project. Change them in the settings screen or with the commands below, not by hand.

For people, agents, and automated checks working in a terminal.

Terminal window
eidos linter # each file the rules would change; or clean
eidos linter Blueprints/specs # only some paths; --json
eidos linter --fix # tidy them, changing nothing else
eidos linter configure:on-save set date_modified today # a date rule; today or now, or remove <property>

--fix doesn’t stamp dates, so tidying never changes a page’s modified date. eidos linter exits 1 when a file has drifted and 0 when none has, so a CI job or pre-commit hook can rely on it. eidos check reports each drifted file as linter/<rule>.