-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reformat repository with dprint (#370)
* chore: reformat repository with dprint * ci: change action name to reflect that it's not only markdown * fix: broken link
- Loading branch information
Showing
54 changed files
with
753 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Lint Markdown | ||
name: Lint with dprint | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^(http|https)://crates.io/" | ||
} | ||
] | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^(http|https)://crates.io/" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Generated output of mdbook | ||
/book | ||
.DS_Store | ||
.vscode/settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
{ | ||
"lineWidth": 80, | ||
"markdown": {}, | ||
"includes": [ | ||
"**/*.{md}" | ||
], | ||
"excludes": [], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/markdown-0.15.2.wasm" | ||
] | ||
} | ||
"lineWidth": 80, | ||
"markdown": { | ||
"lineWidth": 80, | ||
"emphasisKind": "asterisks", | ||
"strongKind": "asterisks", | ||
"textWrap": "always" | ||
}, | ||
"toml": { | ||
"lineWidth": 80 | ||
}, | ||
"json": { | ||
"lineWidth": 80, | ||
"indentWidth": 4 | ||
}, | ||
"includes": [ | ||
"**/*.{md}", | ||
"**/*.{toml}", | ||
"**/*.{json}" | ||
], | ||
"excludes": [ | ||
"target/**/*" | ||
], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/markdown-0.15.2.wasm", | ||
"https://plugins.dprint.dev/toml-0.5.4.wasm", | ||
"https://plugins.dprint.dev/json-0.17.4.wasm" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Anti-patterns | ||
|
||
An [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern) is a solution to | ||
a "recurring problem that is usually ineffective and risks being highly | ||
An [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern) is a solution to a | ||
"recurring problem that is usually ineffective and risks being highly | ||
counterproductive". Just as valuable as knowing how to solve a problem, is | ||
knowing how _not_ to solve it. Anti-patterns give us great counter-examples to | ||
knowing how *not* to solve it. Anti-patterns give us great counter-examples to | ||
consider relative to design patterns. Anti-patterns are not confined to code. | ||
For example, a process can be an anti-pattern, too. |
Oops, something went wrong.