Просмотр исходного кода

fix non-autofixable biome errors

Futa Arai 6 месяцев назад
Родитель
Сommit
233a795a0c

+ 11 - 3
apps/app/src/features/growi-plugin/client/components/Admin/PluginsExtensionPageContents/PluginInstallerForm.tsx

@@ -43,9 +43,12 @@ export const PluginInstallerForm = (): JSX.Element => {
   );
 
   return (
-    <form role="form" onSubmit={submitHandler}>
+    <form onSubmit={submitHandler}>
       <div className="row">
-        <label className="text-start text-md-end col-md-3 col-form-label">
+        <label
+          className="text-start text-md-end col-md-3 col-form-label"
+          htmlFor="repoUrl"
+        >
           {t('plugins.form.label_url')}
         </label>
         <div className="col-md-6">
@@ -55,12 +58,16 @@ export const PluginInstallerForm = (): JSX.Element => {
             name="pluginInstallerForm[url]"
             placeholder="https://github.com/weseek/growi-plugins-example"
             required
+            id="repoUrl"
           />
           <p className="form-text text-muted">{t('plugins.form.desc_url')}</p>
         </div>
       </div>
       <div className="row">
-        <label className="text-start text-md-end col-md-3 col-form-label">
+        <label
+          className="text-start text-md-end col-md-3 col-form-label"
+          htmlFor="branchName"
+        >
           {t('plugins.form.label_branch')}
         </label>
         <div className="col-md-6">
@@ -69,6 +76,7 @@ export const PluginInstallerForm = (): JSX.Element => {
             type="text"
             name="pluginInstallerForm[ghBranch]"
             placeholder="main"
+            id="branchName"
           />
           <p className="form-text text-muted">
             {t('plugins.form.desc_branch')}

+ 1 - 1
apps/app/src/features/growi-plugin/server/models/vo/github-url.ts

@@ -56,7 +56,7 @@ export class GitHubUrl {
   }
 
   constructor(url: string, branchName = 'main', tagName = '') {
-    let matched;
+    let matched: RegExpMatchArray | null;
     try {
       const ghUrl = new URL(url);
 

+ 1 - 1
apps/app/src/features/growi-plugin/server/services/growi-plugin/growi-plugin.ts

@@ -425,7 +425,7 @@ export class GrowiPluginService implements IGrowiPluginService {
       return null;
     }
 
-    let themeHref;
+    let themeHref: string;
     try {
       const manifest = retrievePluginManifest(matchedPlugin);
       if (manifest == null) {