@textlint/source-code-fixer
TypeScript icon, indicating that this package has built-in type declarations

14.2.0 • Public • Published

@textlint/source-code-fixer

Apply @textlint/kernel lint result to text.

Almost user just use @textlint/kernel's fixText API instead of This package.

This package provide primitive functions for @textlint/kernel.

Install

Install with npm:

npm install @textlint/source-code-fixer

Usage

import { TextlintKernel } from "@textlint/kernel";
import { applyFixesToText } from "@textlint/source-code-fixer";
const kernel = new TextlintKernel();
const text = "text";
const result = kernel.lintText(text, {
    ...
});
const fixedOutput = applyFixesToText(text, result.messages);

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
13.4.2-next.00next
12.0.0-beta.30beta
14.2.025,610latest

Version History

VersionDownloads (Last 7 Days)Published
14.2.025,610
14.1.02
14.0.51,257
14.0.44,800
14.0.3420
14.0.2157
14.0.1213
14.0.0128
13.4.2-next.00
13.4.121,358
13.4.053
13.3.33,883
13.3.2564
13.3.128
13.3.018
13.2.087
13.1.42
13.1.30
13.1.22
13.1.148
13.1.06
13.0.52
13.0.42
13.0.32
13.0.22
13.0.10
13.0.00
12.6.16,665
12.6.0130
12.5.20
12.5.015
12.3.06
12.2.3158
12.2.2361
12.2.1457
12.2.00
12.1.11,283
12.1.01,161
12.0.2104
12.0.0576
12.0.0-beta.30
12.0.0-beta.20
12.0.0-beta.10
12.0.0-beta.01
3.4.52,273
3.4.410
3.4.30
3.4.246
3.4.10
3.4.00

Package Sidebar

Install

npm i @textlint/source-code-fixer

Weekly Downloads

57,899

Version

14.2.0

License

MIT

Unpacked Size

120 kB

Total Files

23

Last publish

Collaborators

  • textlint-user
  • azu
  • 0x6b