mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	Update dependency eslint-plugin-unicorn to v61 (forgejo) (#9198)
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
This commit is contained in:
		
					parent
					
						
							
								b602d58161
							
						
					
				
			
			
				commit
				
					
						bafdd4a56e
					
				
			
		
					 6 changed files with 9 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -799,6 +799,7 @@ export default tseslint.config(
 | 
			
		|||
      'unicorn/prefer-array-some': [2],
 | 
			
		||||
      'unicorn/prefer-at': [0],
 | 
			
		||||
      'unicorn/prefer-blob-reading-methods': [2],
 | 
			
		||||
      'unicorn/prefer-classlist-toggle': [2],
 | 
			
		||||
      'unicorn/prefer-code-point': [0],
 | 
			
		||||
      'unicorn/prefer-date-now': [2],
 | 
			
		||||
      'unicorn/prefer-default-parameters': [0],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							| 
						 | 
				
			
			@ -81,7 +81,7 @@
 | 
			
		|||
        "eslint-plugin-regexp": "2.10.0",
 | 
			
		||||
        "eslint-plugin-sonarjs": "3.0.4",
 | 
			
		||||
        "eslint-plugin-toml": "0.12.0",
 | 
			
		||||
        "eslint-plugin-unicorn": "60.0.0",
 | 
			
		||||
        "eslint-plugin-unicorn": "61.0.1",
 | 
			
		||||
        "eslint-plugin-vitest-globals": "1.5.0",
 | 
			
		||||
        "eslint-plugin-vue": "10.4.0",
 | 
			
		||||
        "eslint-plugin-vue-scoped-css": "2.11.0",
 | 
			
		||||
| 
						 | 
				
			
			@ -7659,9 +7659,9 @@
 | 
			
		|||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/eslint-plugin-unicorn": {
 | 
			
		||||
      "version": "60.0.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-60.0.0.tgz",
 | 
			
		||||
      "integrity": "sha512-QUzTefvP8stfSXsqKQ+vBQSEsXIlAiCduS/V1Em+FKgL9c21U/IIm20/e3MFy1jyCf14tHAhqC1sX8OTy6VUCg==",
 | 
			
		||||
      "version": "61.0.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-61.0.1.tgz",
 | 
			
		||||
      "integrity": "sha512-RwXXqS8oTxW7dVs6e4ZBpZkn1wB4qqNZSbCJektP8/Nzp/woJdfN/t7LVNcpGMZ57xWBs33K0ymZ7MV+VeQnbA==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,7 +80,7 @@
 | 
			
		|||
    "eslint-plugin-regexp": "2.10.0",
 | 
			
		||||
    "eslint-plugin-sonarjs": "3.0.4",
 | 
			
		||||
    "eslint-plugin-toml": "0.12.0",
 | 
			
		||||
    "eslint-plugin-unicorn": "60.0.0",
 | 
			
		||||
    "eslint-plugin-unicorn": "61.0.1",
 | 
			
		||||
    "eslint-plugin-vitest-globals": "1.5.0",
 | 
			
		||||
    "eslint-plugin-vue": "10.4.0",
 | 
			
		||||
    "eslint-plugin-vue-scoped-css": "2.11.0",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -198,11 +198,7 @@ const sfc = {
 | 
			
		|||
    toggleGroupLogs(event) {
 | 
			
		||||
      const line = event.target.parentElement;
 | 
			
		||||
      const list = line.nextSibling;
 | 
			
		||||
      if (event.newState === 'open') {
 | 
			
		||||
        list.classList.remove('hidden');
 | 
			
		||||
      } else {
 | 
			
		||||
        list.classList.add('hidden');
 | 
			
		||||
      }
 | 
			
		||||
      list.classList.toggle('hidden', event.newState !== 'open');
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    createLogLine(line, startTime, stepIndex, group) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -248,11 +248,7 @@ export async function initDropzone(dropzoneEl, zone = undefined) {
 | 
			
		|||
    file.previewTemplate.append(copyLinkElement);
 | 
			
		||||
  };
 | 
			
		||||
  const updateDropzoneState = () => {
 | 
			
		||||
    if (dropzoneEl.querySelector('.dz-preview')) {
 | 
			
		||||
      dropzoneEl.classList.add('dz-started');
 | 
			
		||||
    } else {
 | 
			
		||||
      dropzoneEl.classList.remove('dz-started');
 | 
			
		||||
    }
 | 
			
		||||
    dropzoneEl.classList.toggle('dz-started', dropzoneEl.querySelector('.dz-preview'));
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  const dz = await createDropzone(dropzoneEl, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,11 +13,7 @@ function updateExclusiveLabelEdit(form) {
 | 
			
		|||
  if (isExclusiveScopeName(nameInput.value)) {
 | 
			
		||||
    exclusiveField?.classList.remove('muted');
 | 
			
		||||
    exclusiveField?.removeAttribute('aria-disabled');
 | 
			
		||||
    if (exclusiveCheckbox.checked && exclusiveCheckbox.getAttribute('data-exclusive-warn')) {
 | 
			
		||||
      exclusiveWarning?.classList.remove('tw-hidden');
 | 
			
		||||
    } else {
 | 
			
		||||
      exclusiveWarning?.classList.add('tw-hidden');
 | 
			
		||||
    }
 | 
			
		||||
    exclusiveWarning?.classList.toggle('tw-hidden', !(exclusiveCheckbox.checked && exclusiveCheckbox.getAttribute('data-exclusive-warn')));
 | 
			
		||||
  } else {
 | 
			
		||||
    exclusiveField?.classList.add('muted');
 | 
			
		||||
    exclusiveField?.setAttribute('aria-disabled', 'true');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue