v15.1.0
What's Changed
Key Features
This release includes two major improvements to textlint's severity system and configuration handling:
1. New info
Severity Level (PR #1610)
We've implemented proper support for the info
severity level, which provides more flexible linting for informational messages that are less critical than warnings.
Background: Previously, info
had the same value as none
(0), causing confusion. Now info
has its own distinct value (3) and is properly supported across all formatters.
Use Case: This is particularly useful for AI-assisted writing rules, such as those in textlint-ja/textlint-rule-preset-ai-writing, which provides LLM-oriented rules for guidelines. These rules can be somewhat broad and may produce false positives if used as errors, but when reported as info
, they provide more flexible feedback for AI agents and human writers.
Severity Levels:
none: 0
- Disabledwarning: 1
- Warning (yellow)error: 2
- Error (red)info: 3
- Informational (green)
Example Usage:
{
"rules": {
"my-rule": {
"severity": "info" // Now properly displays as green "info"
}
}
}
2. Fixed Preset Severity Preservation (PR #1607)
Fixed an issue where preset-defined severity settings were lost when users provided partial rule configuration in their .textlintrc
file.
Problem: When using a preset that defined severity levels for rules, those settings were completely lost if users added any custom options for those rules.
Solution: Implemented a clear priority system where user configuration completely overrides preset configuration when provided (no merging), making behavior predictable and consistent.
Related Issues: Fixes #1608, #1606
Features
Bug Fixes
Documentation
- chore: fix typos by @noritaka1166 in #1604
Testing
CI
- fix: skip deploy-pr-preview for external repository PRs by @devin-ai-integration in #1605
Dependency Updates
- chore: update npm-run-all2 from v5 to v8 by @noritaka1166 in #1593
- chore(deps): update patch updates (patch) by @renovate in #1595
- chore(deps): update eslint to ^8.34.1 (patch) by @renovate in #1597
- chore: update lint-staged from v13 to v16 by @noritaka1166 in #1596
- fix(deps): update dependency zod to ^3.25.67 by @renovate in #1598
- chore: update globals from v15 to v16 by @noritaka1166 in #1599
- chore(deps): update dependency vitest to ^3.2.4 by @renovate in #1600
- chore(deps): update dependency @types/lodash to ^4.17.18 by @renovate in #1602
- fix(deps): update dependency @modelcontextprotocol/sdk to ^1.13.0 by @renovate in #1603
- chore: update eslint-config-prettier from v9 to v10 by @noritaka1166 in #1601
Other Changes
New Contributors
- @devin-ai-integration made their first contribution in #1605
Full Changelog: v15.0.1...v15.1.0