-
-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy patheslint.config.js
More file actions
26 lines (25 loc) · 653 Bytes
/
Copy patheslint.config.js
File metadata and controls
26 lines (25 loc) · 653 Bytes
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
import tsPlugin from "@typescript-eslint/eslint-plugin";
import prettierConfig from "eslint-config-prettier/flat";
export default [
...tsPlugin.configs["flat/recommended"],
prettierConfig,
{
files: ["**/*.ts"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"no-console": "error",
},
},
{
files: ["src/utils/logger.ts"],
rules: {
"no-console": "off",
},
},
];