-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
36 lines (36 loc) · 1.29 KB
/
.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
31
32
33
34
35
36
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"rules": {
"no-console": 0,
"prefer-template": "off",
"lines-between-class-members": "off",
"prefer-destructuring": "off",
"sort-imports": "off", // Disable builtin sort import
"simple-import-sort/imports": "warn",
"@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true, "ignoreProperties": true }],
"@typescript-eslint/no-explicit-any": ["warn", { "fixToUnknown": true }],
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
}
}
], // Disable "interfaces should begin with I"
"prettier/prettier": "warn"
}
}