The pluggable natural language linter for text and markdown.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 15 days ago
Full Changelog: https://github.com/textlint/textlint/compare/v14.2.0...v14.2.1
textlint-scripts init --yes
by @azu in https://github.com/textlint/textlint/pull/1417
This release will reduce audit warning.
Full Changelog: https://github.com/textlint/textlint/compare/v14.1.0...v14.2.0
Published by github-actions[bot] 2 months ago
linter.scanFilePath
API by @azu in https://github.com/textlint/textlint/pull/1414
Change Details
find-util
- it is used in scanFilePath
old-find-util
linter.scanFilePath(filePath)
API
linter.scanFilePath
API UsageIf you want to know the file path is lintable or not, please use scanFilePath
API.
import { createLinter, loadTextlintrc } from "textlint";
const textlintrcDescriptor = await loadTextlintrc();
const linter = createLinter({
descriptor: textlintrcDescriptor
});
const result = await linter.scanFilePath("README.md");
// result.status is "ok" or "ignored" or "error"
if (result.status === "ok") {
const lintResult = await linter.lintText("README content", "README.md");
console.log(lintResult);
}
linter.scanFilePath
is for combinating with lintText
API because lintText
API does not ignore any file.
Full Changelog: https://github.com/textlint/textlint/compare/v14.0.5...v14.1.0
Published by github-actions[bot] 2 months ago
--parallel
and --max-concurrency
in CLI by @chick-p in https://github.com/textlint/textlint/pull/1383
neotraverse
by @Jayllyz in https://github.com/textlint/textlint/pull/1401
Full Changelog: https://github.com/textlint/textlint/compare/v14.0.4...v14.0.5
Published by github-actions[bot] 7 months ago
Full Changelog: https://github.com/textlint/textlint/compare/v14.0.3...v14.0.4
Published by github-actions[bot] 8 months ago
is-file
dependencies by @azu in https://github.com/textlint/textlint/pull/1362
Full Changelog: https://github.com/textlint/textlint/compare/v14.0.2...v14.0.3
Published by github-actions[bot] 8 months ago
Full Changelog: https://github.com/textlint/textlint/compare/v14.0.1...v14.0.2
Published by github-actions[bot] 9 months ago
resetRules()
by @azu in https://github.com/textlint/textlint/pull/1353
Full Changelog: https://github.com/textlint/textlint/compare/v14.0.0...v14.0.1
Published by github-actions[bot] 9 months ago
We published a blog as a release note.
For more information, please read the following article.
--parallel
and --maxConcurrency
flag by @azu in https://github.com/textlint/textlint/pull/1338
Full Changelog: https://github.com/textlint/textlint/compare/v13.4.1...v14.0.0
Published by github-actions[bot] 11 months ago
[index:string]: any;
from TxtNode
by @azu in https://github.com/textlint/textlint/pull/1295
This PR fixed types of textlint.
It does not change the behavior of textlint.
[index:string]: any;
from TxtNode
preProcess
should return TxtDocumentNode
TxtNode
.For plugin developer:
You may be necessary to change the type that returns preProcess as follows
- preProcess(_text: string, _filePath: string): TxtNode {
+ preProcess(_text: string, _filePath: string): TxtDocumentNode {
Full Changelog: https://github.com/textlint/textlint/compare/v13.4.0...13.4.1
Published by github-actions[bot] 12 months ago
textlint-scripts
allow a rule to use native import()
.
It will help the rule to import ESM modules from CJS.
For example, alex is pure ESM package.
CJS package can not load via require("alex")
, but it can load await import("alex")
import()
by @azu in https://github.com/textlint/textlint/pull/1284
Full Changelog: https://github.com/textlint/textlint/compare/v13.3.3...13.4.0
Published by github-actions[bot] over 1 year ago
It reduces dependencies.
Full Changelog: https://github.com/textlint/textlint/compare/v13.3.2...13.3.3
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/textlint/textlint/compare/v13.3.1...13.3.2
Published by github-actions[bot] over 1 year ago
--dry-run
option is specified. by @Sean0628 in https://github.com/textlint/textlint/pull/1092
Full Changelog: https://github.com/textlint/textlint/compare/v13.3.0...13.3.1
Published by github-actions[bot] over 1 year ago
type
and ruleKey
to config descriptor by @azu in https://github.com/textlint/textlint/pull/1074
Full Changelog: https://github.com/textlint/textlint/compare/v13.2.0...13.3.0
Published by github-actions[bot] over 1 year ago
import TextLintTester from "textlint-tester";
import rule from "textlint-rule-no-todo";
const tester = new TextLintTester();
tester.run("rule name", rule, {
valid: [
{ text: "This is ok", description: "It is normal text" }
],
invalid: [
{
text: "- [ ] string",
description: "It todo test",
errors: [
{
message: "Found TODO: '- [ ] string'",
range: [2, 6]
}
]
}
]
});
Full Changelog: https://github.com/textlint/textlint/compare/v13.1.4...13.2.0
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/textlint/textlint/compare/v13.1.3...13.1.4
Published by github-actions[bot] over 1 year ago
engines
to require Node.js 16+ by @azu in https://github.com/textlint/textlint/pull/1054
Full Changelog: https://github.com/textlint/textlint/compare/v13.1.2...13.1.3
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/textlint/textlint/compare/v13.1.1...13.1.2
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/textlint/textlint/compare/v13.1.0...13.1.1