-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
74 lines (74 loc) · 1.94 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"plugins": ["@typescript-eslint", "import"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"airbnb-base",
"plugin:node/recommended",
"plugin:prettier/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"],
}
}
},
"rules": {
"node/no-missing-import": ["error", {
"allowModules": ["express", "http-errors", "body-parser"],
"resolvePaths": ["./src"],
"tryExtensions": [".ts"]
}],
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
}
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"semi": false,
"trailingComma": "none",
"tabWidth": 2,
"arrowParens": "avoid"
}
],
"import/prefer-default-export": "off",
"node/no-unsupported-features/es-syntax": "off",
"consistent-return": "off",
"arrow-parens": [2, "as-needed"],
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"import/order": ["error", {
"newlines-between": "always",
"groups": ["builtin", "external", "internal", "parent", ["index", "sibling"]]
}],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}],
"space-before-function-paren": ["error", {
"named": "never",
"anonymous": "never",
"asyncArrow": "always"
}],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": ["block-like", "const", "let"], "next": "return" },
{ "blankLine": "always", "prev": "block-like", "next": "block-like" },
{ "blankLine": "always", "prev": "break", "next": ["case", "default"] }
]
},
}