-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.config.mjs
35 lines (34 loc) · 985 Bytes
/
eslint.config.mjs
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
import typescriptPlugin from "typescript-eslint";
import nodePlugin from "eslint-plugin-n";
import prettierRecommendedConfig from "eslint-plugin-prettier/recommended";
export default typescriptPlugin.config(
{
ignores: ["dist/", "scripts/", ".gen/"],
},
nodePlugin.configs["flat/recommended"],
...typescriptPlugin.configs.recommended,
prettierRecommendedConfig,
{
settings: {
n: {
tryExtensions: [".js", "/index.js", ".ts", "/index.ts"],
},
},
rules: {
"prefer-const": "error",
"n/hashbang": "off",
"n/no-process-exit": "off",
"n/no-unsupported-features/es-builtins": "error",
"n/no-unsupported-features/es-syntax": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-inferrable-types": [
"warn",
{
ignoreParameters: true,
},
],
"@typescript-eslint/no-unused-vars": "warn",
"prettier/prettier": "warn",
},
},
);