-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (43 loc) · 1.24 KB
/
Copy patheslint.config.js
File metadata and controls
47 lines (43 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import unusedImports from "eslint-plugin-unused-imports";
import prettier from "eslint-plugin-prettier/recommended";
export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
plugins: {
"unused-imports": unusedImports,
},
rules: {
// Reglas de Clean Code
"no-console": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/consistent-type-imports": "error",
// Limpieza automática de imports
"unused-imports/no-unused-imports": "error",
// Reglas para evitar errores en Streams/Async
"no-async-promise-executor": "error",
"no-await-in-loop": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-empty-object-type": "off",
"preserve-caught-error": "off",
// Prettier
"prettier/prettier": "warn",
},
},
{
// Ignorar archivos de build y config
ignores: [
"dist/**",
"node_modules/**",
"vite.config.ts",
"eslint.config.js",
"**/*.test.ts",
"**/*.spec.ts",
],
}
);