-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade deps, run Prettier, fix linter errors (#46)
- Loading branch information
Showing
51 changed files
with
3,558 additions
and
3,541 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.vscode/ | ||
|
||
.eslintcache | ||
|
||
|
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,5 +1,5 @@ | ||
module.exports = { | ||
trailingComma: "all", | ||
useTabs: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
useTabs: true, | ||
singleQuote: true, | ||
}; |
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,81 +1,120 @@ | ||
import { unified } from "unified"; | ||
import unifiedMessageControl from "unified-message-control"; | ||
import { unified } from 'unified'; | ||
import unifiedMessageControl from 'unified-message-control'; | ||
|
||
import { commentMarker } from "mdast-comment-marker"; | ||
import { commentMarker } from 'mdast-comment-marker'; | ||
|
||
import remarkFrontmatter from 'remark-frontmatter' | ||
import remarkDirective from 'remark-directive' | ||
import remarkGfm from 'remark-gfm' | ||
import remarkPresetLintRecommended from 'remark-preset-lint-recommended' | ||
import remarkPresetLintConsistent from 'remark-preset-lint-consistent' | ||
import remarkFrontmatter from 'remark-frontmatter'; | ||
import remarkDirective from 'remark-directive'; | ||
import remarkGfm from 'remark-gfm'; | ||
|
||
import remarkRetext from "remark-retext"; | ||
import retextEnglish from "retext-english"; | ||
import retextEquality from "retext-equality"; | ||
import retextProfanities from "retext-profanities"; | ||
import retextQuotes from "retext-quotes"; | ||
import retextSimplify from "retext-simplify"; | ||
import retextSyntaxMentions from "retext-syntax-mentions"; | ||
// remark-preset-lint-recommended: | ||
import remarkLint from 'remark-lint' | ||
import remarkLintFinalNewline from 'remark-lint-final-newline' | ||
import remarkLintListItemBulletIndent from 'remark-lint-list-item-bullet-indent' | ||
// import remarkLintListItemIndent from 'remark-lint-list-item-indent' // Incompatible with MDX | ||
import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker' | ||
import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls' | ||
import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style' | ||
import remarkLintHardBreakSpaces from 'remark-lint-hard-break-spaces' | ||
import remarkLintNoDuplicateDefinitions from 'remark-lint-no-duplicate-definitions' | ||
import remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent' | ||
import remarkLintNoInlinePadding from 'remark-lint-no-inline-padding' | ||
import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image' | ||
import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link' | ||
import remarkLintNoUndefinedReferences from 'remark-lint-no-undefined-references' | ||
import remarkLintNoUnusedDefinitions from 'remark-lint-no-unused-definitions' | ||
|
||
import remarkPresetLintConsistent from 'remark-preset-lint-consistent'; | ||
|
||
import remarkRetext from 'remark-retext'; | ||
import retextEnglish from 'retext-english'; | ||
import retextEquality from 'retext-equality'; | ||
import retextProfanities from 'retext-profanities'; | ||
import retextQuotes from 'retext-quotes'; | ||
import retextSimplify from 'retext-simplify'; | ||
import retextSyntaxMentions from 'retext-syntax-mentions'; | ||
|
||
const retextPreset = [ | ||
remarkRetext, | ||
unified() | ||
.use(retextEnglish) | ||
.use(retextEquality, { | ||
ignore: ["disabled", "host", "hosts", "invalid", "whitespace"], | ||
}) | ||
.use(retextProfanities, { sureness: 1 }) | ||
.use(retextQuotes) | ||
.use(retextSimplify, { | ||
ignore: [ | ||
"accurate", | ||
"address", | ||
"alternatively", | ||
"component", | ||
"equivalent", | ||
"function", | ||
"identify", | ||
"implement", | ||
"initial", | ||
"interface", | ||
"maintain", | ||
"maximum", | ||
"minimum", | ||
"option", | ||
"parameters", | ||
"provide", | ||
"render", | ||
"request", | ||
"selection", | ||
"submit", | ||
"type", | ||
"validate", | ||
], | ||
}) | ||
.use(retextSyntaxMentions), | ||
remarkRetext, | ||
unified() | ||
.use(retextEnglish) | ||
.use(retextEquality, { | ||
ignore: ['disabled', 'host', 'hosts', 'invalid', 'whitespace'], | ||
}) | ||
.use(retextProfanities, { sureness: 1 }) | ||
.use(retextQuotes) | ||
.use(retextSimplify, { | ||
ignore: [ | ||
'accurate', | ||
'address', | ||
'alternatively', | ||
'component', | ||
'equivalent', | ||
'frequently', | ||
'function', | ||
'identify', | ||
'implement', | ||
'initial', | ||
'interface', | ||
'maintain', | ||
'maximum', | ||
'minimum', | ||
'option', | ||
'parameters', | ||
'provide', | ||
'render', | ||
'request', | ||
'selection', | ||
'submit', | ||
'type', | ||
'validate', | ||
], | ||
}) | ||
.use(retextSyntaxMentions), | ||
]; | ||
|
||
const messageControlPreset = [ | ||
unifiedMessageControl, | ||
{ | ||
name: "retext-simplify", | ||
marker: commentMarker, | ||
test: "html", | ||
}, | ||
unifiedMessageControl, | ||
{ | ||
name: 'retext-simplify', | ||
marker: commentMarker, | ||
test: 'html', | ||
}, | ||
]; | ||
|
||
export default { | ||
settings: { | ||
emphasis: "_", | ||
strong: "*", | ||
}, | ||
plugins: [ | ||
remarkFrontmatter, // YAML in MD | ||
remarkGfm, // GitHub Flavored Markdown | ||
remarkDirective, // Admonitions | ||
remarkPresetLintConsistent, | ||
remarkPresetLintRecommended, | ||
retextPreset, | ||
messageControlPreset, | ||
], | ||
settings: { | ||
emphasis: '_', | ||
strong: '*', | ||
'tab-size': 1, | ||
}, | ||
plugins: [ | ||
remarkFrontmatter, // YAML in MD | ||
remarkGfm, // GitHub Flavored Markdown | ||
remarkDirective, // Admonitions | ||
remarkPresetLintConsistent, | ||
|
||
// remark-preset-lint-recommended: | ||
remarkLint, | ||
// Unix compatibility. | ||
remarkLintFinalNewline, | ||
// Rendering across vendors differs greatly if using other styles. | ||
remarkLintListItemBulletIndent, | ||
// [remarkLintListItemIndent, 'tab-size'], // Incompatible with MDX | ||
remarkLintNoBlockquoteWithoutMarker, | ||
remarkLintNoLiteralUrls, | ||
[remarkLintOrderedListMarkerStyle, '.'], | ||
|
||
// Mistakes. | ||
remarkLintHardBreakSpaces, | ||
remarkLintNoDuplicateDefinitions, | ||
remarkLintNoHeadingContentIndent, | ||
remarkLintNoInlinePadding, | ||
remarkLintNoShortcutReferenceImage, | ||
remarkLintNoShortcutReferenceLink, | ||
remarkLintNoUndefinedReferences, | ||
remarkLintNoUnusedDefinitions, | ||
retextPreset, | ||
messageControlPreset, | ||
], | ||
}; |
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,3 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
}; |
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,4 +1,4 @@ | ||
{ | ||
"label": "Custom stores", | ||
"position": 10 | ||
"label": "Custom stores", | ||
"position": 10 | ||
} |
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 @@ | ||
{ | ||
"label": "Framework integrations", | ||
"position": 8 | ||
"label": "Framework integrations", | ||
"position": 8 | ||
} |
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 @@ | ||
{ | ||
"label": "Guides", | ||
"position": 2 | ||
"label": "Guides", | ||
"position": 2 | ||
} |
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
Oops, something went wrong.