mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Fix eslint parsing errors, remove eslint-plugin-html (#20323)
Introduce a separate .eslintrc in the Vue components folder to selectively enable vue-eslint-parser there, so that the rest of the files can use eslint's core parser which can deal with hashbangs. The fact that the eslint-disable comments worked in HTML was a unintended side-effect of the files being parsed via vue-eslint-parser, so I had to disable the parsing of these files in .eslintrc.yaml to make it work, and finally decided to remove eslint-plugin-html as it causes more issues than it solves.
This commit is contained in:
		
							
								
								
									
										16
									
								
								web_src/js/components/.eslintrc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								web_src/js/components/.eslintrc.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| plugins: | ||||
|   - eslint-plugin-vue | ||||
|  | ||||
| extends: | ||||
|   - ../../../.eslintrc.yaml | ||||
|   - plugin:vue/recommended | ||||
|  | ||||
| env: | ||||
|   browser: true | ||||
|  | ||||
| rules: | ||||
|   vue/attributes-order: [0] | ||||
|   vue/component-definition-name-casing: [0] | ||||
|   vue/html-closing-bracket-spacing: [0] | ||||
|   vue/max-attributes-per-line: [0] | ||||
|   vue/one-component-per-file: [0] | ||||
		Reference in New Issue
	
	Block a user