Skip to content

Instantly share code, notes, and snippets.

@davidsneighbour
Created October 18, 2020 12:42
Show Gist options
  • Save davidsneighbour/64fcefd167e8242bc52d6ecf253e16fb to your computer and use it in GitHub Desktop.
Save davidsneighbour/64fcefd167e8242bc52d6ecf253e16fb to your computer and use it in GitHub Desktop.
My textlint setup
{
"rules": {
"no-todo": true,
"textlint-rule-no-start-duplicated-conjunction": true,
"max-comma": {
"max": 3
},
"no-exclamation-question-mark": true,
"no-dead-link": {
"checkRelative": true,
"baseURI": null,
"ignore": [],
"preferGET": [],
"ignoreRedirects": false,
"retry": 3,
"userAgent": "textlint-rule-no-dead-link/1.0"
},
"en-spell": true,
"en-capitalization": {
"allowHeading": true,
"allowFigures": true,
"allowLists": true,
"allowWords": []
},
"stop-words": {
"defaultWords": true,
"skip": [
"Blockquote"
],
"exclude": [
"utilize",
"period of time"
]
},
"apostrophe": true,
"common-misspellings": {
"ignore": []
},
"date-weekday-mismatch": true,
"terminology": {
"defaultTerms": true,
"skip": [
"Blockquote"
],
"exclude": [
"CSS"
]
},
"alex": {
"allow": [
"boogeyman-boogeywoman"
]
},
"rousseau": {
"showLevels": [
"suggestion",
"warning",
"error"
]
},
"abbr-within-parentheses": true,
"spelling": {
"language": "en",
"skipPatterns": [
"JavaScript"
],
"wordDefinitionRegexp": "/[\\w']+/g",
"suggestCorrections": true
},
"unexpanded-acronym": {
"min_acronym_len": 3
},
"footnote-order": true,
"@textlint-rule/no-unmatched-pair": true,
"@textlint-rule/no-invalid-control-character": true,
"no-empty-section": true,
"no-start-duplicated-conjunction": {
"interval": 2
}
},
"plugins": [
"html"
]
}
npm install --global textlint @textlint-rule/textlint-rule-no-invalid-control-character \
@textlint-rule/textlint-rule-no-unmatched-pair textlint-plugin-html textlint-rule-abbr-within-parentheses \
textlint-rule-alex textlint-rule-apostrophe textlint-rule-common-misspellings \
textlint-rule-date-weekday-mismatch textlint-rule-en-capitalization textlint-rule-en-spell \
textlint-rule-footnote-order textlint-rule-max-comma textlint-rule-no-dead-link textlint-rule-no-empty-section \
textlint-rule-no-exclamation-question-mark textlint-rule-no-start-duplicated-conjunction textlint-rule-no-todo \
textlint-rule-rousseau textlint-rule-spelling textlint-rule-stop-words textlint-rule-terminology \
textlint-rule-unexpanded-acronym
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment