-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
30 lines (30 loc) · 866 Bytes
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["import", "unused-imports"],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"import/no-unused-modules": "error",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "caughtErrorsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"no-console": ["error", { "allow": ["warn", "error", "info", "debug"] }]
},
"overrides": [
{
"files": ["src/index.ts"],
"rules": {
"no-console": "off"
}
}
]
}