Skip to content

v15.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jun 15:09
· 108 commits to master since this release
86a95c9

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 - Disabled
  • warning: 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

  • feat: implement info severity level by @azu in #1610

Bug Fixes

  • fix: preserve preset severity settings when user provides true config by @azu in #1607

Documentation

Testing

  • test(config-loader): add user config is true case by @azu in #1609

CI

Dependency Updates

Other Changes

  • Update 2025-06-22-textlint-15.md by @azu in #1592
  • Update 2025-06-22-textlint-15.md by @azu in #1594

New Contributors

Full Changelog: v15.0.1...v15.1.0