Closed KengoTODA closed 6 years ago
I've confirmed it.
This error is caused by frozen context
object.
It is introduced in textlint 11
// Throw Error because `context` is read-only object
context.report = () => {}
This change aim to prevent that hacky way :-)
I've fixed it and released https://github.com/textlint-rule/textlint-rule-preset-google/releases/tag/v0.1.2
I met following error when I run latest textlint-rule-preset-google@0.1.0 with textlint@11.0.0:
This is caused by
Object.assign
in the following code. https://github.com/textlint-rule/textlint-rule-preset-google/blob/v0.1.0/packages/textlint-rule-google-capitalization/src/textlint-rule-google-capitalization.js#L13-L19Maybe this plugin needs to follow the breaking change in textlint 11, but I cannot find related change in the release note.