-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
27 lines (27 loc) · 1.04 KB
/
.eslintrc.js
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
module.exports = {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "import"],
"extends": ["eslint:recommended", "plugin:import/errors", "plugin:import/warnings", "plugin:import/typescript", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"no-console": [1, {
allow: ['warn', 'error']
}],
"@typescript-eslint/ban-types": "off",
"prettier/prettier": 1,
"import/no-cycle": 0,
"@typescript-eslint/no-explicit-any": "off",
"import/no-named-as-default": 0,
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".js", ".jsx"]
},
'import/resolver': {
'typescript': {
'alwaysTryTypes': true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
},
}
}
};