-
-
Notifications
You must be signed in to change notification settings - Fork 154
Comparing changes
Open a pull request
base repository: textlint/textlint
base: v15.1.0
head repository: textlint/textlint
compare: v15.1.1
- 12 commits
- 152 files changed
- 4 contributors
Commits on Jun 29, 2025
-
CI(website-preview): fix checkout condition (#1612)
* feat: add support for 'info' severity level in textlint rules and formatters * feat: implement 'info' severity level handling in stylish and checkstyle formatters * feat: add support for 'info' severity level in various formatters and tests * fix: correct stylish formatter test expectation for info severity level The test was expecting '1 warning' but should expect '1 info' when severity is 3. This aligns with the actual formatter output that correctly displays info messages. * refactor: remove @textlint/kernel dependency from formatters - Replace TextlintRuleSeverityLevelKeys with numeric values (1: warning, 2: error, 3: info) - Remove dependency on @textlint/kernel from formatter packages to maintain clean architecture - Update all 10 formatters: stylish, compact, unix, table, checkstyle, junit, tap, pretty-error, fixer-formatter - All tests continue to pass with numeric severity level checks * docs: update formatter.md to document severity levels - Add detailed explanation of severity levels (1: warning, 2: error, 3: info) - Update examples to include severity property - Remove outdated reference to SeverityLevel.js file - Add practical examples showing info level usage * test: add comprehensive tests for filter-severity-process - Add tests for filterWarningMessages function to ensure it filters out info messages (severity 3) and warning messages (severity 1) - Add tests for through function to verify it passes all messages unchanged - Add tests for createSeverityFilter to verify --quiet flag behavior - Ensure info messages are properly filtered when using --quiet mode - Tests validate that only error messages (severity 2) are shown in quiet mode * fix: correct table formatter test expectation for info severity - Fix test case to expect '1 Info' instead of '1 Warning' for info severity (3) - Update warningCount from 1 to 0 in test data to match actual behavior - Info messages should be counted separately from warnings and errors - Table formatter correctly displays info messages with their own category * refactor: remove deprecated createFormatter test from linter formatter tests * Add tests for various formatters in the linter-formatter package - Implement tests for the pretty-error formatter to validate error output formatting. - Add tests for the stylish formatter to ensure correct handling of messages and severity levels. - Create tests for the table formatter to verify the output structure for different message scenarios. - Introduce tests for the tap formatter to check the output format for single and multiple messages. - Develop tests for the unix formatter to confirm the correct formatting of error messages across multiple files. * refactor: update table formatter tests to use expect and inline snapshots * refactor: remove deprecated tests and add new comprehensive tests for formatter functionality * refactor: streamline error summary formatting in stylish formatter and tests * refactor: remove unused dependencies from package.json and pnpm-lock.yaml * CI(website-preview): remove redundant condition for checkout step
Configuration menu - View commit details
-
Copy full SHA for 7220e04 - Browse repository at this point
Copy the full SHA 7220e04View commit details
Commits on Jun 30, 2025
-
chore(deps): update pnpm to v10.12.2 (#1614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 77ee822 - Browse repository at this point
Copy the full SHA 77ee822View commit details -
feat(mcp): add detailed descriptions to Zod schemas for better API do…
…cumentation (#1613) * feat(mcp): enhance input/output schema descriptions for linting functions * test(mcp): update tests for schema descriptions - Update outputSchema snapshot to include new descriptions for severity, line, column, fix fields - Add comprehensive validation for input schema descriptions - Add test to verify all tools have proper descriptions for severity levels - Verify 1-based vs 0-based indexing documentation is correct
Configuration menu - View commit details
-
Copy full SHA for e77ea85 - Browse repository at this point
Copy the full SHA e77ea85View commit details -
chore(deps): update eslint to ^8.35.0 (#1615)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f936640 - Browse repository at this point
Copy the full SHA f936640View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ab62cb - Browse repository at this point
Copy the full SHA 7ab62cbView commit details
Commits on Jul 1, 2025
-
chore(deps): update node.js to v22.17.0 (#1617)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aefbb48 - Browse repository at this point
Copy the full SHA aefbb48View commit details
Commits on Jul 2, 2025
-
chore(deps): update patch updates (#1619)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0f4b46b - Browse repository at this point
Copy the full SHA 0f4b46bView commit details -
refactor(eslint): fix eslint warning (#1618)
* refactor(eslint): fix eslint warning * refactor(eslint): replace any types with proper TypeScript types - Replace 'any' with 'unknown' for better type safety - Add proper type imports and interfaces where needed - Fix type assertions and property access patterns - Maintain existing behavior while improving type safety - Reduce ESLint @typescript-eslint/no-explicit-any warnings from 209 to 136 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * refactor: replace interface with type for consistency - Change DiffPart interface to type in diff.ts - Change Visitor interface to type in ast-traverse index.ts - Maintain consistency with project's preference for type over interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * refactor: replace unsafe type assertions with type guards - Add type guard functions to safely check object properties before access - Replace `as Record<string, unknown>` with proper type guards - Improve type safety while maintaining functionality - Reduce reliance on `as` type assertions for better runtime safety 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve TypeScript type errors from type assertion improvements - Fix AnyTxtNode to Record<string, unknown> casting in ast-traverse - Add null coalescing for plugin options in textlint-tester - Add helper function for creating test TextlintMessage objects - Remove unused @ts-expect-error directive - Improve type safety while maintaining functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: configure TypeScript outDir for example-ts project - Add outDir and declarationDir to tsconfig.json for organized build output - Update .gitignore to exclude dist/ directory instead of individual files - Prevent future commits of generated TypeScript compilation artifacts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(types): resolve TypeScript errors and improve type safety - Fix all TypeScript compilation errors from type-check - Add createTestMessage helper functions for test type safety - Replace unsafe type assertions with double assertions - Improve type guards in config-loader for unknown values - Fix import path for ES modules compatibility - Support both TextlintPluginOptions and boolean in TestPluginSet - Remove unused imports and add proper type annotations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(vitest): use context.skip() instead of this.skip() for Vitest compatibility Replace this.skip() with context.skip() according to Vitest API: https://vitest.dev/api/#test-skip 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix(test): handle undefined line/column in junit formatter tests Set line and column to undefined for test cases that expect line 0, col 0 output. This matches the junit formatter behavior where missing line/column defaults to 0. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Delete eslint-suppressions.json --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for da70632 - Browse repository at this point
Copy the full SHA da70632View commit details -
refactor: fix all ESLint no-explicit-any warnings (#1620)
* refactor: fix all ESLint no-explicit-any warnings - Replace any types with appropriate specific types (unknown, TxtNode, TextlintMessage, etc.) - Add ESLint disable comments for cases where any is necessary for functionality - Create test helper functions for better type safety in test files - Improve type safety across textlint packages while maintaining existing behavior Fixes 135 ESLint warnings without breaking changes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: revert problematic type changes that break builds - Revert any -> unknown changes that cause type compatibility issues - Add eslint-disable-next-line comments instead to suppress warnings - Keep existing behavior while maintaining ESLint compliance * fix: remove unused imports to reduce type errors - Remove unused AnyTxtNode imports - Keep ESLint compliance while reducing build errors * fix: resolve remaining type errors in tests and CLI utilities - Fix stylish formatter test by creating proper TextlintMessage objects - Update CLI test mocks to match Logger interface with spread parameters - Add proper type assertions for complex test objects - Remove unused imports to eliminate TypeScript warnings - Maintain all existing functionality while improving type safety * fix: resolve final type check errors and clean up ESLint warnings - Fix severity type mismatch in fixer and linter processors - Fix config loader plugin options type - Fix example TypeScript code to return Promise<void> - Clean up unused ESLint disable comments and improve type assertions All ESLint warnings resolved and TypeScript builds successfully! --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 96b064b - Browse repository at this point
Copy the full SHA 96b064bView commit details
Commits on Jul 3, 2025
-
fix(mcp): allow additional properties in TextlintMessage schema (#1623)
* fix(mcp): allow additional properties in TextlintMessage schema Fixes schema validation errors in MCP server when TextlintMessage contains additional properties like type, data, index, range, and loc. - Add explicit properties for all TextlintMessage fields - Enable additionalProperties via .passthrough() for future extensibility - Add comprehensive test coverage for schema validation - Ensure compatibility with complete TextlintMessage interface Resolves #1622 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * refactor --------- Co-authored-by: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 64c557c - Browse repository at this point
Copy the full SHA 64c557cView commit details -
chore(deps): update dependency @types/lodash to ^4.17.19 (#1621)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e014b91 - Browse repository at this point
Copy the full SHA e014b91View commit details -
chore(release): v15.1.1 (#1624)
Co-authored-by: azu <azu@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1b3a571 - Browse repository at this point
Copy the full SHA 1b3a571View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v15.1.0...v15.1.1