fix: ESLint + Vue no-useless-assingment
This commit is contained in:
		
							parent
							
								
									96d6507073
								
							
						
					
					
						commit
						710adcaa34
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		|  | @ -43,6 +43,7 @@ export default [ | ||||||
|             'no-unreachable-loop': 'warn', |             'no-unreachable-loop': 'warn', | ||||||
|             'no-use-before-define': 'error', |             'no-use-before-define': 'error', | ||||||
|             'no-useless-assignment': 'error', |             'no-useless-assignment': 'error', | ||||||
|  |             'no-unused-vars': 'error', | ||||||
| 
 | 
 | ||||||
|             'arrow-body-style': ['warn', 'as-needed'], |             'arrow-body-style': ['warn', 'as-needed'], | ||||||
|             'block-scoped-var': 'warn', |             'block-scoped-var': 'warn', | ||||||
|  |  | ||||||
|  | @ -14,6 +14,9 @@ const vueConfig = defineConfigWithVueTs( | ||||||
|     { |     { | ||||||
|         name: "app/files-to-lint", |         name: "app/files-to-lint", | ||||||
|         files: ["**/*.{ts,mts,tsx,vue}"], |         files: ["**/*.{ts,mts,tsx,vue}"], | ||||||
|  |         rules: { | ||||||
|  |             'no-useless-assignment': 'off' // Depend on `no-unused-vars` to catch this
 | ||||||
|  |         } | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     { |     { | ||||||
|  |  | ||||||
		Reference in a new issue