New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

textlint-plugin-html

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-plugin-html

textlint HTML processsor plugin.

0.2.0
Source
npm
Version published
Weekly downloads
8.3K
39.33%
Maintainers
3
Weekly downloads
 
Created
Source

textlint-plugin-html Build Status

Add HTML support for textlint.

What is textlint plugin? Please see https://github.com/textlint/textlint/blob/master/docs/plugin.md

Installation

npm install textlint-plugin-html

Default supported extensions

  • .html
  • .htm

Usage

Manually add text plugin to do following:

{
    "plugins": [
        "html"
    ]
}

Lint HTML file with textlint

$ textlint index.html

Options

  • extensions: string[]
    • Additional file extensions for html

For example, if you want to treat .custom-ext as html, put following config to .textlintrc

{
   "plugins": {
       "html": {
           "extensions": [".custom-ext"]
       }
   }
}

Tests

npm test

Contributing

  • 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

License

MIT

Keywords

textlint

FAQs

Package last updated on 08 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts