1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | module.exports = {
|
13 | "parser": "@typescript-eslint/parser",
|
14 |
|
15 | "extends": [
|
16 | "plugin:import/typescript",
|
17 | "plugin:@typescript-eslint/eslint-recommended",
|
18 | "plugin:@typescript-eslint/recommended",
|
19 | "plugin:@typescript-eslint/recommended-requiring-type-checking",
|
20 | "@gjv/eslint-config"
|
21 | ],
|
22 | "rules": {
|
23 |
|
24 | "@typescript-eslint/explicit-function-return-type": ["error", {
|
25 | "allowExpressions": true,
|
26 | "allowTypedFunctionExpressions": true,
|
27 | "allowHigherOrderFunctions": true
|
28 | }],
|
29 | "@typescript-eslint/no-explicit-any": "off",
|
30 | "@typescript-eslint/interface-name-prefix": ["error", {
|
31 | "prefixWithI": "always",
|
32 | "allowUnderscorePrefix": false
|
33 | }],
|
34 | "@typescript-eslint/promise-function-async": "error"
|
35 | }
|
36 | };
|