textlint rule that report error by node's type for debugging.
Opposite <-> textlint-rule-ignore-node-types.
npm install textlint-rule-report-node-types
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.
npm test
- 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