mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
chore: Rename Twitter links/labels to X (#10509)
This commit is contained in:
parent
a435fbd36e
commit
95e2d469e3
95 changed files with 217 additions and 218 deletions
|
@ -25,14 +25,14 @@ ruleTester.run('prefer-docusaurus-link', rule, {
|
|||
code: '<Link to="/test">test</Link>',
|
||||
},
|
||||
{
|
||||
code: '<Link to="https://twitter.com/docusaurus">Twitter</Link>',
|
||||
code: '<Link to="https://x.com/docusaurus">X</Link>',
|
||||
},
|
||||
{
|
||||
code: '<a href="https://twitter.com/docusaurus">Twitter</a>',
|
||||
code: '<a href="https://x.com/docusaurus">X</a>',
|
||||
options: [{ignoreFullyResolved: true}],
|
||||
},
|
||||
{
|
||||
code: '<a href={`https://twitter.com/docusaurus`}>Twitter</a>',
|
||||
code: '<a href={`https://x.com/docusaurus`}>X</a>',
|
||||
options: [{ignoreFullyResolved: true}],
|
||||
},
|
||||
{
|
||||
|
@ -50,11 +50,11 @@ ruleTester.run('prefer-docusaurus-link', rule, {
|
|||
errors: errorsJSX,
|
||||
},
|
||||
{
|
||||
code: '<a href="https://twitter.com/docusaurus" target="_blank">test</a>',
|
||||
code: '<a href="https://x.com/docusaurus" target="_blank">test</a>',
|
||||
errors: errorsJSX,
|
||||
},
|
||||
{
|
||||
code: '<a href="https://twitter.com/docusaurus" target="_blank" rel="noopener noreferrer">test</a>',
|
||||
code: '<a href="https://x.com/docusaurus" target="_blank" rel="noopener noreferrer">test</a>',
|
||||
errors: errorsJSX,
|
||||
},
|
||||
{
|
||||
|
@ -82,7 +82,7 @@ ruleTester.run('prefer-docusaurus-link', rule, {
|
|||
// TODO we might want to make this test pass
|
||||
// Can template literals be statically pre-evaluated? (Babel can do it)
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
code: '<a href={`https://twitter.com/${"docu" + "saurus"} ${"rex"}`}>Twitter</a>',
|
||||
code: '<a href={`https://x.com/${"docu" + "saurus"} ${"rex"}`}>Twitter</a>',
|
||||
options: [{ignoreFullyResolved: true}],
|
||||
errors: errorsJSX,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue