Skip to content

Commit

Permalink
Bump prettier from 3.1.1 to 3.2.2 (#31732)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jan 15, 2024
1 parent 6aaa918 commit 9fc0a77
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"config": {
"extends": "./.markdownlint.jsonc"
"extends": "./.markdownlint.jsonc",
},
"customRules": ["markdownlint-rule-search-replace"],
"ignores": ["node_modules", ".git", ".github", "tests"]
"ignores": ["node_modules", ".git", ".github", "tests"],
}
56 changes: 28 additions & 28 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@
// Disabled, as some callouts include headings.
"heading-increment": false,
"ul-style": {
"style": "dash"
"style": "dash",
},
"ul-indent": {
"indent": 2
"indent": 2,
},
"no-hard-tabs": {
"spaces_per_tab": 2
"spaces_per_tab": 2,
},
"line-length": false,
"no-duplicate-heading": {
"siblings_only": true
"siblings_only": true,
},
"single-title": {
"front_matter_title": "^\\s*title\\s*[:=]"
"front_matter_title": "^\\s*title\\s*[:=]",
},
"no-trailing-punctuation": {
"punctuation": ".,;:"
"punctuation": ".,;:",
},
// Consecutive Notes/Callouts currently don't conform with this rule
"no-blanks-blockquote": false,
// Force ordered numbering to catch accidental list ending from indenting
"ol-prefix": {
"style": "ordered"
"style": "ordered",
},
"no-inline-html": {
"allowed_elements": [
Expand Down Expand Up @@ -99,8 +99,8 @@
"thead",
"tr",
"ul",
"var"
]
"var",
],
},
"no-bare-urls": false,
// Produces too many false positives
Expand All @@ -109,13 +109,13 @@
// See https://github.com/mdn/content/pull/20026, as macros currently break this
"no-empty-links": false,
"code-block-style": {
"style": "fenced"
"style": "fenced",
},
"emphasis-style": {
"style": "underscore"
"style": "underscore",
},
"strong-style": {
"style": "asterisk"
"style": "asterisk",
},
// Disabled, as yari generates link fragments by replacing spaces with underscores, not dashes.
"link-fragments": false,
Expand All @@ -128,90 +128,90 @@
"message": "Don't use curly double quotes",
"searchPattern": "/“|”/g",
"replace": "\"",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "curly-single-quotes",
"message": "Don't use curly single quotes",
"searchPattern": "/‘|’/g",
"replace": "'",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "nbsp",
"message": "Don't use no-break spaces",
"searchPattern": "/ /g",
"replace": " ",
"searchScope": "all"
"searchScope": "all",
},
{
"name": "m-dash",
"message": "Don't use '--'. Use m-dash — instead",
"search": " -- ",
"replace": " — ",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "relative-link",
"message": "Internal links should start with '/'",
"searchPattern": "/([\\(\"])en-US\\/docs/g",
"replace": "$1/en-US/docs",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "relative-link-path",
"message": "Don't use relative paths",
"search": "](..",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "trailing-spaces",
"message": "Avoid trailing spaces",
"searchPattern": "/ +$/gm",
"replace": "",
"searchScope": "all"
"searchScope": "all",
},
{
"name": "double-spaces",
"message": "Avoid double spaces",
"searchPattern": "/([^\\s>]) ([^\\s|])/g",
"replace": "$1 $2",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "stuck-definition",
"message": "Character is stuck to definition description marker",
"searchPattern": "/- :(\\w)/g",
"replace": "- : $1",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "fqdn-moz-links",
"message": "Don't use developer.mozilla.org for links, except for blog posts",
"searchPattern": "/\\]\\(https:\\/\\/developer.mozilla.org\\/(?!en-US\\/blog\\/)/g",
"replace": "](/",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "incorrect-spelling",
"message": "Incorrect spelling",
"searchPattern": ["/e-mail/ig", "/(w)eb site/ig"],
"replace": ["email", "$1ebsite"],
"searchScope": "all"
"searchScope": "all",
},
{
"name": "localhost-links",
"message": "Don't use localhost for links",
"searchPattern": "/\\]\\(https?:\\/\\/localhost:\\d+\\//g",
"replace": "](/",
"searchScope": "text"
"searchScope": "text",
},
{
"name": "un-closed-md-link",
"message": "Missing closing bracket ')'",
"searchPattern": "/(\\[[^\\]]*?\\]\\(([^\\)\\n]|\\([^\\)\\n]\\)|\\s[\"'])+?)(\\n|\\s|[,:][\\s\\n])/gm",
"searchScope": "text"
}
]
}
"searchScope": "text",
},
],
},
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"lint-staged": "15.2.0",
"markdownlint-cli2": "0.12.1",
"markdownlint-rule-search-replace": "1.2.0",
"prettier": "3.1.1"
"prettier": "3.2.2"
},
"devDependencies": {
"jest": "^29.7.0"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6249,10 +6249,10 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==

prettier@3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848"
integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==
prettier@3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.2.tgz#96e580f7ca9c96090ad054616c0c4597e2844b65"
integrity sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==

pretty-format@^29.7.0:
version "29.7.0"
Expand Down

0 comments on commit 9fc0a77

Please sign in to comment.