This package provides legacy TextLintCore
compatible API.
[!WARNING] THIS PACKAGE IS DEPRECATED.
This compat package is deprecated. You should use @textlint/kernel
or new APIs instead of it.
Install with npm:
npm install @textlint/legacy-textlint-core
This package provided a procedural API.
import { TextLintCore } from "@textlint/legacy-textlint-core";
// example packages
import rule from "textlint-rule-example";
import plugin from "textlint-plugin-example";
const textlintCore = new TextLintCore();
textlintCore.setupRules({ "example-rule": rule });
textlintCore.setupPlugins({ "example-plugin": rule });
const results = await textlintCore.lintText("test", ".example");
textlintCore.resetRules(); // reset setup
See Releases page.
Install devDependencies and Run npm test
:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu