-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
58 lines (58 loc) · 1.79 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
{
"parserOptions": {
"project": "./tsconfig-lint.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest", "@stylistic"],
"root": true,
"rules": {
"no-extra-semi": ["off"],
"no-mixed-spaces-and-tabs": ["off"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-extra-semi": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/promise-function-async": ["error"],
"prefer-const": "warn",
"object-shorthand": "warn",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "mongoose",
"importNames": ["model", "db", "connection"],
"message": "Please use `connection.*`, importing `connection` from the utils directory instead."
},
{
"name": "fast-ts-helpers/parseDate",
"message": "Please use `DateTime` from `luxon` instead, taking care to use the proper time zone (`America/Chicago`)."
},
{
"name": "nodemailer",
"message": "Please use `sendMail` from the local `utils` folder instead."
}
]
}
],
"@stylistic/padding-line-between-statements": [
"warn",
{
"blankLine": "always",
"prev": "*",
"next": ["let", "const", "return", "block-like"]
},
{ "blankLine": "always", "prev": ["let", "const", "block-like"], "next": "*" },
{ "blankLine": "any", "prev": "case", "next": "case" },
{ "blankLine": "any", "prev": "let", "next": "let" },
{ "blankLine": "any", "prev": "const", "next": ["const", "type"] },
{ "blankLine": "any", "prev": "*", "next": ["export", "iife"] }
]
}
}