suppress eslint to use single quote in jsx other than using string literal

This commit is contained in:
myl7
2022-02-08 19:11:47 +08:00
parent da0fdec142
commit 1a8f145ed7
5 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ const FourOhFour: React.FC<{ errorMsg: string }> = ({ errorMsg }) => {
<div className="mt-6 text-gray-500 max-w-xl mx-auto">
<div className="text-xl font-bold mb-8">
<Trans>
Oops, that{"'"}s a <span className="underline decoration-wavy decoration-red-500">four-oh-four</span>.
{/* eslint-disable-next-line react/no-unescaped-entities */}
Oops, that's a <span className="underline decoration-wavy decoration-red-500">four-oh-four</span>.
</Trans>
</div>
<div className="font-mono border border-gray-400/20 rounded p-2 mb-4 text-xs bg-gray-50 dark:bg-gray-800">
+2 -1
View File
@@ -74,7 +74,8 @@ export default function OAuthStep2() {
<Trans>
The OAuth link for getting the authorisation code has been created. Click on the link above to get the{' '}
<b className="underline decoration-yellow-400 decoration-wavy">authorisation code</b>. Your browser will
open a new tab to Microsoft{"'"}s account login page. After logging in and authenticating with your
{/* eslint-disable-next-line react/no-unescaped-entities */}
open a new tab to Microsoft's account login page. After logging in and authenticating with your
Microsoft account, you will be redirected to a blank page on localhost. Paste{' '}
<b className="underline decoration-teal-500 decoration-wavy">the entire redirected URL</b> down below.
</Trans>
+2 -1
View File
@@ -139,7 +139,8 @@ export default function OAuthStep3({ accessToken, expiryTime, refreshToken, erro
rel="noopener noreferrer"
className="text-blue-600 hover:underline dark:text-blue-500"
>
Microsoft{"'"}s official explanation
{/* eslint-disable-next-line react/no-unescaped-entities */}
Microsoft's official explanation
</a>{' '}
on the error message.
</Trans>
+2 -2
View File
@@ -76,7 +76,7 @@
"of {{count}} file(s) -——loaded——other": "of {{count}} files -",
"of {{count}} file(s) -——loading——one": "of ... file(s) -",
"of {{count}} file(s) -——loading——other": "of ... file(s) -",
"Oops, that's a <3>four-oh-four</3>.": "Oops, that's a <3>four-oh-four</3>.",
"Oops, that's a <1>four-oh-four</1>.": "Oops, that's a <1>four-oh-four</1>.",
"Open URL": "Open URL",
"Open URL{{url}}": "Open URL{{url}}",
"Press <2>F12</2> and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions</6>.": "Press <2>F12</2> and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions</6>.",
@@ -97,7 +97,7 @@
"Storing tokens": "Storing tokens",
"Success! The API returned what we needed.": "Success! The API returned what we needed.",
"The authorisation code extracted is:": "The authorisation code extracted is:",
"The OAuth link for getting the authorisation code has been created. Click on the link above to get the <2>authorisation code</2>. Your browser will open a new tab to Microsoft's account login page. After logging in and authenticating with your Microsoft account, you will be redirected to a blank page on localhost. Paste <7>the entire redirected URL</7> down below.": "The OAuth link for getting the authorisation code has been created. Click on the link above to get the <2>authorisation code</2>. Your browser will open a new tab to Microsoft's account login page. After logging in and authenticating with your Microsoft account, you will be redirected to a blank page on localhost. Paste <7>the entire redirected URL</7> down below.",
"The OAuth link for getting the authorisation code has been created. Click on the link above to get the <2>authorisation code</2>. Your browser willopen a new tab to Microsoft's account login page. After logging in and authenticating with your Microsoft account, you will be redirected to a blank page on localhost. Paste <6>the entire redirected URL</6> down below.": "The OAuth link for getting the authorisation code has been created. Click on the link above to get the <2>authorisation code</2>. Your browser willopen a new tab to Microsoft's account login page. After logging in and authenticating with your Microsoft account, you will be redirected to a blank page on localhost. Paste <6>the entire redirected URL</6> down below.",
"These tokens are used to authenticate yourself into password protected folders, ": "These tokens are used to authenticate yourself into password protected folders, ",
"These tokens may take a few seconds to populate after you click the button below. ": "These tokens may take a few seconds to populate after you click the button below. ",
"This route (the folder itself and the files inside) is password protected. ": "This route (the folder itself and the files inside) is password protected. ",
+2 -2
View File
@@ -72,7 +72,7 @@
"OAuth Step 3 - {{title}}": "OAuth 第 3 步 - {{title}}",
"of {{count}} file(s) -——loaded——other": "共 {{count}} 个文件",
"of {{count}} file(s) -——loading——other": "共……个文件",
"Oops, that's a <3>four-oh-four</3>.": "Oops,这里是 <3>404</3> 页面。",
"Oops, that's a <1>four-oh-four</1>.": "Oops,这里是 <1>404</1> 页面。",
"Open URL": "打开 URL",
"Open URL{{url}}": "打开 URL{{url}}",
"Press <2>F12</2> and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions</6>.": "请按下 <2>F12</2> 来打开开发者工具窗口以获取详细信息,或是到 <6>onedrive-vercel-index 社区讨论</6> 处寻求帮助。",
@@ -93,7 +93,7 @@
"Storing tokens": "正在存储 tokens……",
"Success! The API returned what we needed.": "成功!此 API 返回了我们需要的东西。",
"The authorisation code extracted is:": "提取出的授权码为:",
"The OAuth link for getting the authorisation code has been created. Click on the link above to get the <2>authorisation code</2>. Your browser will open a new tab to Microsoft's account login page. After logging in and authenticating with your Microsoft account, you will be redirected to a blank page on localhost. Paste <7>the entire redirected URL</7> down below.": "创建出的这个 OAuth 链接是用来获取授权码的。点击上方链接以获取所需的 <2>授权码</2>。你的浏览器将打开一个新的标签页到 Microsoft 的帐号登录页面。在登录并验证你的 Microsoft 帐号之后,你将被重定向到一个域名为 localhost 的空白页面。请将<7>完整的重定向后的 URL</7> 复制粘贴到下方。",
"The OAuth link for getting the authorisation code has been created. Click on the link above to get the <2>authorisation code</2>. Your browser willopen a new tab to Microsoft's account login page. After logging in and authenticating with your Microsoft account, you will be redirected to a blank page on localhost. Paste <6>the entire redirected URL</6> down below.": "创建出的这个 OAuth 链接是用来获取授权码的。点击上方链接以获取所需的 <2>授权码</2>。你的浏览器将打开一个新的标签页到 Microsoft 的帐号登录页面。在登录并验证你的 Microsoft 帐号之后,你将被重定向到一个域名为 localhost 的空白页面。请将<6>完整的重定向后的 URL</6> 复制粘贴到下方。",
"These tokens are used to authenticate yourself into password protected folders, ": "这些密钥是用来验证您的身份以访问密钥保护下的文件夹的,",
"These tokens may take a few seconds to populate after you click the button below. ": "当你点击下方按钮之后,这些 tokens 可能需要几秒钟来生成出现。",
"This route (the folder itself and the files inside) is password protected. ": "此路由(此文件夹和其中的文件)是受密钥保护的。",