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
then I run npm run build and textlint --rulesdir lib/ example.md -f pretty-error to test the rule with some sample document, I got this error message Cannot read property 'fixer' of undefined as output. I don't think there is anything related to the fixer in this rule. Do you know what might cause this problem? Thanks
The text was updated successfully, but these errors were encountered:
Probably, npm run build has converted export default function (context, options = {}) { to module.exports.default = function (context, options = {}) {.
textlint --rulesdir expected to export module.exports = function (context, options = {}) { (without .default).
Maybe, rewrite export default function (context, options = {}) { to module.exports = function (context, options = {}) { and textlint --rulesdir can load it.
Hi, @azu
Hope you are having a great day.
I forked this rule and tried to build it on my laptop with some new features. Before I run
npm run build
, I need to install the helper npm packages:then I run
npm run build
andtextlint --rulesdir lib/ example.md -f pretty-error
to test the rule with some sample document, I got this error messageCannot read property 'fixer' of undefined
as output. I don't think there is anything related to the fixer in this rule. Do you know what might cause this problem? ThanksThe text was updated successfully, but these errors were encountered: