mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-10-31 17:07:52 +08:00 
			
		
		
		
	 d3bff26307
			
		
	
	d3bff26307
	
	
	
		
			
			* chore: eslint flat config * chore: format * update according to review * chore: remove prettier config and format * fix: move handler to script to bypass eslint * chore: config eslint for lang=js block * docs: add surrounding empty lines for code block * chore: also minify css in csp build * chore: publint
		
			
				
	
	
		
			31 lines
		
	
	
		
			935 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			935 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import {
 | |
|   defineConfigWithVueTs,
 | |
|   vueTsConfigs,
 | |
|   configureVueProject,
 | |
| } from "@vue/eslint-config-typescript";
 | |
| import pluginVue from "eslint-plugin-vue";
 | |
| import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
 | |
| // The inferred type of 'default' cannot be named without a reference to "@typescript-eslint/utils"
 | |
| import type {} from "@typescript-eslint/utils";
 | |
| 
 | |
| // To allow more languages other than `ts` in `.vue` files
 | |
| // More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
 | |
| configureVueProject({ scriptLangs: ["ts", "js"] });
 | |
| 
 | |
| export default defineConfigWithVueTs(
 | |
|   {
 | |
|     name: "app/files-to-lint",
 | |
|     files: ["**/*.{ts,mts,tsx,vue}"],
 | |
|   },
 | |
|   { ignores: ["**/dist/**"] },
 | |
|   pluginVue.configs["flat/essential"],
 | |
|   vueTsConfigs.recommended,
 | |
|   skipFormatting,
 | |
|   {
 | |
|     rules: {
 | |
|       "vue/multi-word-component-names": "off",
 | |
|       "@typescript-eslint/no-explicit-any": "off",
 | |
|     },
 | |
|   },
 | |
| );
 |