mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	
		
			
	
	
		
			42 lines
		
	
	
		
			869 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			42 lines
		
	
	
		
			869 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								import antfu from "@antfu/eslint-config";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export default antfu(
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    type: "app",
							 | 
						||
| 
								 | 
							
								    typescript: true,
							 | 
						||
| 
								 | 
							
								    formatters: true,
							 | 
						||
| 
								 | 
							
								    next: true,
							 | 
						||
| 
								 | 
							
								    stylistic: {
							 | 
						||
| 
								 | 
							
								      indent: 2,
							 | 
						||
| 
								 | 
							
								      semi: true,
							 | 
						||
| 
								 | 
							
								      quotes: "double",
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    ignores: ["src/components/ui/**", "README.md", "public/json/**"],
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    rules: {
							 | 
						||
| 
								 | 
							
								      "ts/no-redeclare": "off",
							 | 
						||
| 
								 | 
							
								      "ts/consistent-type-definitions": ["error", "type"],
							 | 
						||
| 
								 | 
							
								      "no-console": ["warn"],
							 | 
						||
| 
								 | 
							
								      "antfu/no-top-level-await": ["off"],
							 | 
						||
| 
								 | 
							
								      "node/prefer-global/process": ["off"],
							 | 
						||
| 
								 | 
							
								      "node/no-process-env": ["error"],
							 | 
						||
| 
								 | 
							
								      "perfectionist/sort-imports": [
							 | 
						||
| 
								 | 
							
								        "error",
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								          type: "line-length",
							 | 
						||
| 
								 | 
							
								          order: "desc",
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								      ],
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								      "unicorn/filename-case": [
							 | 
						||
| 
								 | 
							
								        "error",
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								          case: "kebabCase",
							 | 
						||
| 
								 | 
							
								          ignore: ["README.md"],
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								      ],
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								);
							 |