-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 1.37 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
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "prettier"],
"extends": ["prettier"],
"ignorePatterns": ["lib/**/*"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"prettier/prettier": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object"]
}
],
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"no-return-await": "error",
"semi": "error",
"no-tabs": "error",
"no-unused-vars": "warn",
"object-curly-newline": "off",
"no-empty-function": "warn",
"no-trailing-spaces": "error",
"object-curly-spacing": [2, "always"],
"key-spacing": [2, { "afterColon": true }],
"no-empty": "warn",
"newline-per-chained-call": "off",
"prefer-destructuring": "warn",
"quotes": [2, "single", { "avoidEscape": false, "allowTemplateLiterals": true }],
"no-redeclare": "off",
"max-len": [
"error",
120,
2,
{
"ignoreComments": true,
"ignoreTemplateLiterals": true
}
],
"no-undef-init": "error",
"no-useless-escape": "warn",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }]
}
}