Skip to content

Commit

Permalink
chore: udpate prohibited strings to 1.5.1 (#86)
Browse files Browse the repository at this point in the history
Update remark-lint-prohibited-strings@1.5.1 and simplify configuration.
  • Loading branch information
Trott authored Apr 26, 2020
1 parent 0c360d7 commit 6300df3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
26 changes: 11 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports.plugins = [
require("remark-lint-checkbox-character-style"),
{
checked: "x",
unchecked: " "
}
unchecked: " ",
},
],
require("remark-lint-checkbox-content-indent"),
[require("remark-lint-code-block-style"), "fenced"],
Expand All @@ -39,27 +39,23 @@ module.exports.plugins = [
[
require("remark-lint-prohibited-strings"),
[
{ no: "End-Of-Life", yes: "End-of-Life" },
{ no: "End-of-life", yes: "End-of-Life" },
{ no: "Github", yes: "GitHub" },
{ yes: "End-of-Life" },
{ yes: "GitHub" },
{ no: "hostname", yes: "host name" },
{ no: "[Jj]avascript", yes: "JavaScript" },
{ yes: "JavaScript" },
{ no: "Node", yes: "Node.js" },
{ no: "Node\\.JS", yes: "Node.js" },
{ no: "node\\.js", yes: "Node.js" },
{ yes: "Node.js" },
{ no: "Node\\.js's?", yes: "the Node.js" },
{ no: "[Nn]ote that", yes: "<nothing>" },
{ no: "Rfc", yes: "RFC" },
{ yes: "RFC" },
{ no: "[Rr][Ff][Cc]\\d+", yes: "RFC <number>" },
{ no: "rfc", yes: "RFC" },
{ no: "UNIX", yes: "Unix" },
{ no: "unix", yes: "Unix" },
{ no: "v8", yes: "V8" }
]
{ yes: "Unix" },
{ yes: "V8" },
],
],
require("remark-lint-rule-style"),
[require("remark-lint-strong-marker"), "*"],
[require("remark-lint-table-cell-padding"), "padded"],
require("remark-lint-table-pipes"),
[require("remark-lint-unordered-list-marker-style"), "*"]
[require("remark-lint-unordered-list-marker-style"), "*"],
];
18 changes: 14 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"remark-lint-no-table-indentation": "^2.0.0",
"remark-lint-no-tabs": "^2.0.0",
"remark-lint-no-trailing-spaces": "^2.0.1",
"remark-lint-prohibited-strings": "^1.2.1",
"remark-lint-prohibited-strings": "^1.5.1",
"remark-lint-rule-style": "^2.0.0",
"remark-lint-strong-marker": "^2.0.0",
"remark-lint-table-cell-padding": "^2.0.0",
Expand Down

0 comments on commit 6300df3

Please sign in to comment.