fix(front): address lint
This commit is contained in:
		
							parent
							
								
									87e81df558
								
							
						
					
					
						commit
						1ed8cdd817
					
				|  | @ -19,11 +19,13 @@ module.exports = { | |||
|     ecmaVersion: 2020 | ||||
|   }, | ||||
|   plugins: [ | ||||
|     'html', | ||||
|     'vue' | ||||
|   ], | ||||
|   ignorePatterns: [ | ||||
|     'src/locales/*.json', | ||||
|     'dist/' | ||||
|     'dist/', | ||||
|     'stats.html' | ||||
|   ], | ||||
|   rules: { | ||||
|     // NOTE: Nicer for the eye
 | ||||
|  |  | |||
|  | @ -97,5 +97,4 @@ | |||
|   <div id="app"></div> | ||||
|   <script type="module" src="/src/main.ts"></script> | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
|  |  | |||
|  | @ -101,7 +101,7 @@ | |||
|     "cypress": "13.6.4", | ||||
|     "eslint": "8.57.0", | ||||
|     "eslint-config-standard": "17.1.0", | ||||
|     "eslint-plugin-html": "8.0.0", | ||||
|     "eslint-plugin-html": "8.1.2", | ||||
|     "eslint-plugin-import": "2.29.1", | ||||
|     "eslint-plugin-n": "16.6.2", | ||||
|     "eslint-plugin-node": "11.1.0", | ||||
|  |  | |||
|  | @ -25,7 +25,7 @@ | |||
|     const id = params.get('id') | ||||
| 
 | ||||
|     // Error | ||||
|     let error = reactive({ value: false }) | ||||
|     const error = reactive({ value: false }) | ||||
|     if (!SUPPORTED_TYPES.includes(type)) { | ||||
|       error.value = `The embed widget doesn't support this media type: ${type}.` | ||||
|     } | ||||
|  | @ -38,7 +38,7 @@ | |||
|     try { | ||||
|       baseUrl = new URL(baseUrl).origin | ||||
|     } catch (err) { | ||||
|       console.error(err) | ||||
|       // console.error(err) | ||||
|       error.value = `The embed widget couldn't read the provided instance URL: ${baseUrl}.` | ||||
|     } | ||||
| 
 | ||||
|  | @ -147,7 +147,7 @@ | |||
| 
 | ||||
|         // NOTE: If we already have some tracks, let's fail silently | ||||
|         if (tracks.length > 0) { | ||||
|           console.error(error.value) | ||||
|           // console.error(error.value) | ||||
|           error.value = false | ||||
|         } | ||||
| 
 | ||||
|  | @ -181,7 +181,7 @@ | |||
|     // NOTE: Fetch tracks only if there is no error | ||||
|     if (error.value === false) { | ||||
|       fetchTracks().catch(err => { | ||||
|         console.error(err) | ||||
|         // console.error(err) | ||||
|         error.value = `An unknown error occurred while loading this ${type}.` | ||||
|       }) | ||||
|     } | ||||
|  |  | |||
|  | @ -529,6 +529,9 @@ | |||
|           "previous": "Previous track" | ||||
|         } | ||||
|       }, | ||||
|       "PlaylistCard": { | ||||
|         "title": "Updated on {date}" | ||||
|       }, | ||||
|       "Search": { | ||||
|         "empty": { | ||||
|           "noAlbums": "No album matched your query", | ||||
|  |  | |||
|  | @ -100,7 +100,7 @@ const isOpen = computed({ | |||
|   > | ||||
|     <template #alert> | ||||
|       <Alert yellow> | ||||
|         {{ `${t('components.library.FileUpload.message.tag')} | ||||
|         {{ `${t('components.library.FileUpload.message.local.tag')} | ||||
|         ${t('components.library.FileUpload.link.picard')}` }} | ||||
|       </Alert> | ||||
|     </template> | ||||
|  |  | |||
|  | @ -403,7 +403,7 @@ const getPrivacyLevelChoice = (privacyLevel: PrivacyLevel) => { | |||
|       <!-- 2. privacy_level --> | ||||
| 
 | ||||
|       <Pill | ||||
|         :title="t('components.manage.library.UploadsTable.table.upload.header.privacyLevel')" | ||||
|         :title="t('components.manage.library.UploadsTable.table.upload.header.visibility')" | ||||
|         v-bind="item.privacy_level | ||||
|           ? { onClick: () => addSearchToken('privacy_level', item.privacy_level as PrivacyLevel) } | ||||
|           : { disabled: true } | ||||
|  |  | |||
|  | @ -6670,10 +6670,10 @@ eslint-plugin-es@^4.1.0: | |||
|     eslint-utils "^2.0.0" | ||||
|     regexpp "^3.0.0" | ||||
| 
 | ||||
| eslint-plugin-html@8.0.0: | ||||
|   version "8.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-8.0.0.tgz#27f72f3c36718bcd54e3e0869ad7102ac368fd8b" | ||||
|   integrity sha512-NINLBAXM3mLa3k5Ezr/kNLHAJJwbot6lS7Ro+SUftDw4cA51KMmcDuCf98GP6Q6kTVPY1hIggzskxAdxfUPXSA== | ||||
| eslint-plugin-html@8.1.2: | ||||
|   version "8.1.2" | ||||
|   resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-8.1.2.tgz#3a7a092d1e19e7e494014ed0747c5873856d7e1c" | ||||
|   integrity sha512-pbRchDV2SmqbCi/Ev/q3aAikzG9BcFe0IjjqjtMn8eTLq71ZUggyJB6CDmuwGAXmYZHrXI12XTfCqvgcnPRqGw== | ||||
|   dependencies: | ||||
|     htmlparser2 "^9.1.0" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 ArneBo
						ArneBo