Anolilab 文本折叠的编码标准.
Daniel Bannert的开源工作得到了社区的支持 GitHub 赞助商
安装
npm install @anolilab/textlint-config
yarn add @anolilab/textlint-config
pnpm add @anolilab/textlint-config
使用量
如果你没有 .textlintrc 或支持的其他文件名和 .textlintignore,我们可以在安装后为您创建文件 @anolilab/textlint-config电话 pnpm textlint-config:install。 。 。 .
注意: 如果脚本检测到已有的
.textlintrc或者说.textlintignore文件,它不会覆盖它.
如果你已经有一个 .textlintrc,然后可以扩展 .textlintrc,与 @anolilab/textlint-config。 。 。 .
{
"@textlint/markdown": {
"extensions": [".md", ".mdx"]
},
"filters": {
"comments": true
},
"rules": {
"en-capitalization": true,
"footnote-order": true,
"no-todo": true,
"no-dead-link": {
"ignore": ["bc_data_*"]
},
"no-empty-section": true,
"terminology": true,
"apostrophe": true,
"diacritics": true,
"@textlint-rule/no-invalid-control-character": true,
"@textlint-rule/no-unmatched-pair": true,
"abbr-within-parentheses": true,
"alex": {
"allow": ["period", "european", "failure", "fore", "attack", "execution", "executed", "remain", "execute"]
},
"@textlint-rule/preset-google": true,
"write-good": {
"passive": false,
"eprime": false
},
"common-misspellings": true,
"terminology": {
"defaultTerms": false,
"terms": [
// Abbreviations
"API",
["API['']?s", "APIs"],
"Ajax",
"CLI",
"CSS",
"CORS",
["^E2E", "E2E"],
"gif",
["^HTML", "HTML"],
["^URL(s?)", "URL$1"],
["^HTTP", "HTTP"],
["^HTTPS", "HTTPS"],
"SSO",
["^XHR(s?)", "XHR$1"],
["^XHR['']?s", "XHRs"],
"Xvfb",
"YAML",
// Words and phrases
["\\(s\\)he", "they"],
["he or she", "they"],
["he/she", "they"],
["crazy", "complex"],
["crazier", "more complex"],
["craziest", "most complex"],
["dumb", "unintended"],
["insane", "outrageous"],
// Prefer American spelling
["behaviour", "behavior"],
["cancelled", "canceled"],
["cancelling", "canceling"],
["centre", "center"],
["colour", "color"],
["customise", "customize"],
["customisation", "customization"],
["favourite", "favorite"],
["labelled", "labeled"],
["licence", "license"],
["organise", "organize"],
// Common misspellings
["gaurantee", "guarantee"],
// Words we would like to not use altogether
["simply", ""],
// Single word
["change[- ]log(s?)", "changelog$1"],
["code[- ]base(es?)", "codebase$1"],
["e[- ]mail(s?)", "email$1"],
["end[- ]point(s?)", "endpoint$1"],
["file[- ]name(s?)", "filename$1"],
["can[- ]not", "cannot$1"],
// Multiple words
["back-?end(s?)", "back end$1"],
["front-?end(s?)", "front end$1"],
["full-?stack(s?)", "full stack$1"],
["open-?source(ed?)", "open source$1"],
["web-?page(s?)", "web page$1"],
// Hyphenated
["end ?to ?end", "end-to-end"],
["retryability", "retry-ability"],
["retriability", "retry-ability"],
["some", ""],
["filetype", "file type"],
["stylesheet", "style sheet"],
["like this", ""],
["probably", ""],
["known as", ""],
["really", ""],
["just", ""],
["simple", ""],
["obvious", ""],
["straightforward", ""],
["very", ""],
["a little", ""],
["note that", ""],
["good to note", ""],
["good to remember", ""],
["basically", ""],
["actually", ""],
["pretty", ""],
["easy", ""],
["interesting", ""],
["way to", ""],
["In order to", "To"],
["in order to", "to"],
["might", ""],
["us", ""],
["I'll", ""],
["I've", ""],
["they'll", ""],
["it is", "it's"],
["It is", "It's"]
]
}
}
}
相关
支持的节点.js版本
这一生态系统中的图书馆尽最大努力追踪 Node.js的释放时间表。 。 。 .
这里 关于为什么我们认为这很重要的文章。 。 。 .
捐款
说明: 请注意,该项目已连同《协助者行为守则》一起公布。 通过参加这个项目,你同意遵守其条款.
贷项
在阿诺利拉布制造的
这是一个开源项目,将永远可以自由使用。 如果你觉得很酷. 阿诺利拉布 是一个开发与AI工作室。 联系时间: 你好@anolilab.com 如果你需要帮助 这些技术 或者想打个招呼!
许可证
Anolilab textlint-config是开源软件,根据该软件许可 麻省理工学院