-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
44 lines (44 loc) · 1.02 KB
/
.eslintrc
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
37
38
39
40
41
42
43
44
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"globals": {
"process": "readonly"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
// 'plugin:import/recommended',
// https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import", "prettier"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
// https://www.npmjs.com/package/eslint-import-resolver-typescript
"import/resolver": {
// use <root>/tsconfig.json
"typescript": {}
}
},
"rules": {
"import/no-unresolved": "error",
"no-console": [
"warn",
{
"allow": ["info", "warn", "error"]
}
],
"prettier/prettier": 2
}
}