mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 10:57:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|   // Enable the ESlint flat config support
 | |
|   // (remove this if your ESLint extension above v3.0.5)
 | |
|   "eslint.experimental.useFlatConfig": true,
 | |
| 
 | |
|   // Disable the default formatter, use eslint instead
 | |
|   "prettier.enable": false,
 | |
|   "editor.formatOnSave": false,
 | |
| 
 | |
|   // Auto fix
 | |
|   "editor.codeActionsOnSave": {
 | |
|     "source.fixAll.eslint": "explicit",
 | |
|     "source.organizeImports": "never"
 | |
|   },
 | |
| 
 | |
|   // Silent the stylistic rules in you IDE, but still auto fix them
 | |
|   "eslint.rules.customizations": [
 | |
|     { "rule": "style/*", "severity": "off" },
 | |
|     { "rule": "format/*", "severity": "off" },
 | |
|     { "rule": "*-indent", "severity": "off" },
 | |
|     { "rule": "*-spacing", "severity": "off" },
 | |
|     { "rule": "*-spaces", "severity": "off" },
 | |
|     { "rule": "*-order", "severity": "off" },
 | |
|     { "rule": "*-dangle", "severity": "off" },
 | |
|     { "rule": "*-newline", "severity": "off" },
 | |
|     { "rule": "*quotes", "severity": "off" },
 | |
|     { "rule": "*semi", "severity": "off" }
 | |
|   ],
 | |
| 
 | |
|   // Enable eslint for all supported languages
 | |
|   "eslint.validate": [
 | |
|     "javascript",
 | |
|     "javascriptreact",
 | |
|     "typescript",
 | |
|     "typescriptreact",
 | |
|     "vue",
 | |
|     "html",
 | |
|     "markdown",
 | |
|     "json",
 | |
|     "jsonc",
 | |
|     "yaml",
 | |
|     "toml",
 | |
|     "gql",
 | |
|     "graphql",
 | |
|     "astro"
 | |
|   ]
 | |
| }
 | 
