-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add 4.x migration guide (#5206)
Co-authored-by: Murderlon <[email protected]>
- Loading branch information
Showing
4 changed files
with
157 additions
and
47 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
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,45 +1,28 @@ | ||
import remarkRetext from 'remark-retext' | ||
import { unified } from 'unified' | ||
import retextEnglish from 'retext-english' | ||
// eslint-disable-next-line import/no-unresolved | ||
import retextEquality from 'retext-equality' | ||
// eslint-disable-next-line import/no-unresolved | ||
import retextProfanities from 'retext-profanities' | ||
import retextQuotes from 'retext-quotes' | ||
import retextSimplify from 'retext-simplify' | ||
import retextSyntaxMentions from 'retext-syntax-mentions' | ||
|
||
export default [ | ||
remarkRetext, | ||
unified() | ||
.use(retextEnglish) | ||
.use(retextEquality, { ignore: ['disabled', 'host', 'hosts', 'invalid', 'whitespace', 'of course'] }) | ||
.use(retextProfanities, { sureness: 1 }) | ||
.use(retextQuotes) | ||
.use(retextSimplify, { | ||
.use(retextEquality, { | ||
ignore: [ | ||
'accurate', | ||
'address', | ||
'alternatively', | ||
'component', | ||
'equivalent', | ||
'function', | ||
'identify', | ||
'implement', | ||
'initial', | ||
'interface', | ||
'maintain', | ||
'maximum', | ||
'minimum', | ||
'option', | ||
'parameters', | ||
'provide', | ||
'render', | ||
'request', | ||
'selection', | ||
'submit', | ||
'type', | ||
'validate', | ||
'however', | ||
'disabled', | ||
'host', | ||
'hosts', | ||
'invalid', | ||
'whitespace', | ||
'of course', | ||
], | ||
}) | ||
.use(retextProfanities, { sureness: 1 }) | ||
.use(retextQuotes) | ||
.use(retextSyntaxMentions), | ||
] |
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