mirror of
				https://github.com/SikongJueluo/cc-utils.git
				synced 2025-11-04 11:17:50 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1005 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1005 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// @ts-check
 | 
						|
 | 
						|
import eslint from "@eslint/js";
 | 
						|
import { defineConfig } from "eslint/config";
 | 
						|
import tseslint from "typescript-eslint";
 | 
						|
 | 
						|
export default defineConfig(
 | 
						|
  eslint.configs.recommended,
 | 
						|
  ...tseslint.configs.recommendedTypeChecked,
 | 
						|
  ...tseslint.configs.stylisticTypeChecked,
 | 
						|
  {
 | 
						|
    languageOptions: {
 | 
						|
      parserOptions: {
 | 
						|
        project: ["./tsconfig.json", "./tsconfig.autocraft.json"],
 | 
						|
      },
 | 
						|
    },
 | 
						|
    rules: {
 | 
						|
      "@typescript-eslint/strict-boolean-expressions": "error",
 | 
						|
      "@typescript-eslint/prefer-nullish-coalescing": "error",
 | 
						|
      "@typescript-eslint/no-unused-vars": [
 | 
						|
        "error",
 | 
						|
        {
 | 
						|
          args: "all",
 | 
						|
          argsIgnorePattern: "^_",
 | 
						|
          caughtErrors: "all",
 | 
						|
          caughtErrorsIgnorePattern: "^_",
 | 
						|
          destructuredArrayIgnorePattern: "^_",
 | 
						|
          varsIgnorePattern: "^_",
 | 
						|
          ignoreRestSiblings: true,
 | 
						|
        },
 | 
						|
      ],
 | 
						|
    },
 | 
						|
  },
 | 
						|
  {
 | 
						|
    files: ["**/*.js", "**/*.mjs"],
 | 
						|
    ...tseslint.configs.disableTypeChecked,
 | 
						|
  },
 | 
						|
);
 |