Skip to content

Plugin should have Processor property #4

@JohannesRudolph

Description

@JohannesRudolph

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions