Update dependency textlint to v12.6.1 #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
12.0.2
->12.6.1
Release Notes
textlint/textlint (textlint)
v12.6.1
Compare Source
What's Changed
Refactoring
Dependency Updates
Full Changelog: textlint/textlint@v12.6.0...12.6.1
v12.6.0
Compare Source
What's Changed
Features
Bug Fixes
Refactoring
Dependency Updates
Full Changelog: textlint/textlint@v12.5.1...12.6.0
v12.5.2
Compare Source
What's Changed
Features
Bug Fixes
Refactoring
Dependency Updates
Full Changelog: textlint/textlint@v12.5.1...12.5.2
v12.5.1
Compare Source
Bug Fixes
Full Changelog: textlint/textlint@v12.5.0...v12.5.1
v12.5.0
Compare Source
Features
--format=fixed-result
option to fixer format (755dba5), closes #967 by @Sean0628 in https://github.com/textlint/textlint/pull/978Example:
$ cat README.md | npx textlint --stdin --stdin-filename README.md --fix --format fixed-result --output-file NEW.md
For more details, see https://textlint.github.io/docs/cli.html#pipe-to-textlint
New Contributors
Full Changelog: textlint/textlint@v12.4.0...v12.5.0
v12.4.0
Compare Source
Features
What's Changed
Full Changelog: textlint/textlint@v12.3.1...v12.4.0
v12.3.1
Compare Source
Bug Fixes
v12.3.0
Compare Source
Features
Overview
createLinter
/loadTextlintrc
/loadLinterFormatter
/loadFixerFormatter
TextLintCore
/TextFixEngine
/TextLintEngine
📝 ESM Rules/Filter/Pluugins only works in
createLinter
API.This is because
TextLintCore
/TextFixEngine
/TextLintEngine
were assumed to be synchronous processes.createLinter
API does loading as async.Breaking Changes
No changes in existing CLI.
Difference between Old-CLI and New-CLI
--stdin-filename
with--stdin
--stdin-filename
may be optional in Old-CLIExit Status on new CLI
0
: No Error1
: Lint Error2
: Fatal ErrorNew APIs
Ww introduce new API like
createLinter
for supporting Async APIs.v13 continue to support current
TextLintEngine
andTextFixEngine
for backward compatible.New
createLinter
andloadTextlintrc
support ESM rules/plugins.In other hands,
TextLintEngine
andTextFixEngine
can not support ESM rules/plugins.https://github.com/textlint/textlint/blob/60cea514f7eaefbff4411087d16a51daf68f12a4/packages/textlint/src/index.ts
◉ Linting is Async
◉ Fixing is Async
◉ Linting/Fixing is Async
createLinter
: create linter instancelintFiles(files)
: lint files and return linter messageslintText(text, filePath)
lint text with virtual filePath and return linter messagesfixFiles(files
lint text and return fixer messagesfixText(text, filePath)
lint text with virtual filePath and return fixer messagesfixFiles
andfixText
does not modify filesloadTextlintrc
: load.textlintrc
config file and return a descriptor objectloadLinerFormatter
andloadFixerFormatter
: load formatterLint files and output to console.
For more details, see https://textlint.github.io/docs/use-as-modules.html
How to use New CLI
New CLI is opt-in for avoiding Breaking Changes.
It will be default in next major version.
You can try new textlint CLI via
textlint-esm
command.Or, when
TEXTLINT_USE_NEW_CLI=1
is set, textlint use new CLI$ TEXTLINT_USE_NEW_CLI=1 textlint "**/*.md"
🔥 Welcome to feedback on Discussion: https://github.com/textlint/textlint/discussions/968
fix #868
fix https://github.com/textlint/textlint/issues/744 - new CLI fix this
fix https://github.com/textlint/textlint/issues/103 - new CLI fix this
fix #797 - extends
descriptor
instead ofConfig
fix #293 -
TextlintCore
will be removed in the futurev12.2.4
Compare Source
Bug Fixes
This release allow to lint dot file when setting dot file name for
extensions
.This version can lint
.lint-todo
file.v12.2.3
Compare Source
Bug Fixes
v12.2.2
Compare Source
Bug Fixes
mdast-util-gfm-autolink-literal
to explicit deps (#904) (d2888a5)This will fix pnpm issue #903
Dependencies Updates
v12.2.1
Compare Source
What's Changed
Full Changelog: textlint/textlint@v12.1.0...v12.2.1
v12.2.0
Compare Source
Features
Implement Improve error location RFC #835
It will make the error location more details.
This change is for rule developer.
loc
andrange
property toTextlintMessage
(result)padding
prorperty toRuleError(message, details)
.locator
object to rule's contextlcoator.at(index)
,locator.range([startIndex, endIndex])
, andlocator.loc({ start: { line, column }, end: { line, column }})
.valid
andinvalid
supportrange
propertyindex
,line
andcolumn
property onTextlintMessage
andreport
functionfilterMessages
to use newrange
property onTextlintMessage
readonly [number, number]
as range in all packagesfilterMessages
bug https://github.com/textlint/textlint/pull/836/commits/c8a670f9b4fd7ce628a940dc4c8faabd5e62d396padding
andlocator
objectpeerDependencies
notetextlint v12.2.0 will introduce
padding
andlocator
.~~If your will use it, please add
peerDependencies
topackage.json
on your rule package.~~For textlint rule creator
Before:
After:
If you want to get more correct location, please use
locator.range
orlocator.loc
For more details, see https://textlint.github.io/docs/rule.html#ruleerror
Changelogs
Bug Fixes
Features
padding
property andlocator
(#836) (f94d5f8)v12.1.1
Compare Source
Bug Fixes
It will resolve the following audit alert.
Thanks to @massongit
Commits
v12.1.0
Compare Source
Features
See also: https://textlint.github.io/docs/plugin.html#preprocesstext-filepath-txtparentnode---text-string-ast-txtparentnode-
Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.