mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
37 lines
883 B
JavaScript
37 lines
883 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import js from "@eslint/js";
|
|
import ts from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
|
|
const eslintConfig = defineConfig([
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": ts,
|
|
},
|
|
rules: {
|
|
...ts.configs.recommended.rules,
|
|
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
},
|
|
},
|
|
globalIgnores([
|
|
"dist/**",
|
|
"dist-electron/**",
|
|
"node_modules/**",
|
|
"server-bundle/**",
|
|
"release/**",
|
|
"src/routeTree.gen.ts",
|
|
]),
|
|
]);
|
|
|
|
export default eslintConfig;
|