-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
49 lines (48 loc) · 1.42 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
45
46
47
48
49
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"airbnb-base",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "import"],
"rules": {
"prettier/prettier": [
"error",
{ "singleQuote": true, "parser": "typescript", "endOfLine": "crlf" }
],
"import/no-unresolved": "error",
"quotes": [1, "single", { "allowTemplateLiterals": true }],
"linebreak-style": [1, "windows"],
"@typescript-eslint/explicit-function-return-type": "off",
"no-underscore-dangle": "off",
"import/prefer-default-export": ["off", "never"],
"import/extensions": ["off", "never"],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"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`
// use an array of glob patterns
"project": ["packages/*/tsconfig.json", "tsconfig.json"]
}
}
}
}