Tags: `spelling`Aliases: `proper-names`Parameters:`code_blocks`: Include code blocks (`boolean`, default `true`)`html_elements`: Include HTML elements (`boolean`, default `true`)`names`: List of proper names (`string[]`, default `[]`)Fixable: Some violations can be fixed by toolingThis rule is triggered when any of the strings in the `names` array do not havethe specified capitalization. It can be used to enforce a standard letter casefor the names of projects and products.For example, the language "JavaScript" is usually written with both the 'J' and'S' capitalized - though sometimes the 's' or 'j' appear in lower-case. Toenforce the proper capitalization, specify the desired letter case in the`names` array:[ "JavaScript" ] Sometimes a proper name is capitalized differently in certain contexts. In suchcases, add both forms to the `names` array:[ "GitHub", "github.com" ] Set the `code_blocks` parameter to `false` to disable this rule for code blocksand spans. Set the `html_elements` parameter to `false` to disable this rulefor HTML elements and attributes (such as when using a proper name as part ofa path for `a`/`href` or `img`/`src`).Rationale: Incorrect capitalization of proper names is usually a mistake.

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部
2.065550s