You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop "rules" and "rulesConfig" from plugin #291#313
You can use preset feature instead of plugin.
The textlint plugin should focus on processor.
Disallow to use 3rd argument of context.report function #316
It prevent wrong usage of report function:
NG:
report(node,newRuleError(`using "please" in a set of instructions is overdoing the politeness.`),{
index,fix: fixer.replaceTextRange(range,result.replace)})
OK:
report(node,newRuleError(`using "please" in a set of instructions is overdoing the politeness.`,{
index,fix: fixer.replaceTextRange(range,result.replace)});)
The text was updated successfully, but these errors were encountered:
textlint 9.0.0 ChangeLog
♻️ Refactor
textlint-kernel: Convert JavaScript to TypeScript #248 #301
Convert @textlint/kernel from JavaScript to Typescript.
If you instersting in TypeScript support, please see #248 .
Currently, Type definition is unstable. It means that break change in minor version.
🆕 Feature
Plugins can be initialized with plugin options #296
Allow to specify following options.
For mode details, See document of plugin.
textlint-tester: support "index" expected param #324
Allow to write following
index
based testing.🐛 Bug Fixes
textlint: don't use error.code when catch error #323
Fix to use correct exit code. Thanks to @buzztaiki
🔥 BREAKING CHANGE
These breaking change is for plugin/rule author.
Remove
context.config
#294 #295You can use
context.getConfigBaseDir()
instead ofcontext.config
.getConfigBaseDir()
return config base directory path that is the place of.textlintrc
getConfigBaseDir()
return"/path/to/dir/"
.Related rules changes:
config.getConfigBaseDir()
by azu · Pull Request #8 · azu/textlint-rule-eslintDrop "rules" and "rulesConfig" from plugin #291 #313
You can use
preset
feature instead of plugin.The textlint plugin should focus on processor.
Disallow to use 3rd argument of
context.report
function #316It prevent wrong usage of
report
function:NG:
OK:
The text was updated successfully, but these errors were encountered: