-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
I was trying to get this working for testing, but looks like the textstat plugin is no longer compatible with the latest textlint api?
Here's the error I'm getting when I try run one of the only public examples I could find at https://github.com/asciidwango/js-primer/blob/master/tools/textstat.js
Error: Plugin should have Processor property.
module.exports = {
Processor: class Processor{ ... }
}
at new TextlintPluginDescriptor (/Users/jrudolph/dev/tmp/js-primer/node_modules/@textlint/kernel/lib/descriptor/TextlintPluginDescriptor.js:32:19)
at /Users/jrudolph/dev/tmp/js-primer/node_modules/@textstat/kernel/lib/src/TextstatKernel.js:26:16
at Array.map (<anonymous>)
at Object.exports.createParser (/Users/jrudolph/dev/tmp/js-primer/node_modules/@textstat/kernel/lib/src/TextstatKernel.js:25:45)
at TextstatKernel.report (/Users/jrudolph/dev/tmp/js-primer/node_modules/@textstat/kernel/lib/src/TextstatKernel.js:64:34)
at /Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:74:41
at Array.map (<anonymous>)
at Object.<anonymous> (/Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:72:41)
at step (/Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:32:23)
at Object.next (/Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:13:53)
What would it take to fix those?