14.5.0 • Published 3 months ago

@textlint/legacy-textlint-core v14.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@textlint/legacy-textlint-core

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

Install with npm:

npm install @textlint/legacy-textlint-core

Usage

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

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

14.5.0

3 months ago

14.4.1

5 months ago

14.4.2

5 months ago

14.4.0

7 months ago

14.3.0

8 months ago

14.2.1

8 months ago

14.1.0

10 months ago

14.2.0

10 months ago

14.0.5

10 months ago

14.0.4

1 year ago

14.0.3

1 year ago

14.0.2

1 year ago

14.0.1

1 year ago

14.0.0

1 year ago

13.4.2-next.0

1 year ago