Skip to content

textlint/textlint-rule-report-node-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-report-node-types Build Status

textlint rule that report error by node's type for debugging.

Opposite <-> textlint-rule-ignore-node-types.

Installation

npm install textlint-rule-report-node-types

Usage

If you want to report BlockQuote node, define "BlockQuote" to "nodeTypes".

.textlintrc

{
    "rules": {
        "report-node-types": {
            "nodeTypes": ["BlockQuote"]
        }
    }
}

OR

.textlintrc as JavaScript config file.

const TextLintNodeType = require("textlint").TextLintNodeType;
module.exports = {
    "rules": {
        "report-node-types": {
            "nodeTypes": [TextLintNodeType.BlockQuote]
        }
    }
}

If you want to know all types of TxtNode, please see the document.

Tests

npm test

Contributing

  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

License

MIT

About

textlint rule that report error by node's type for debugging.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published