forked from typeofweb-org/typeofweb-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
62 lines (62 loc) · 1.71 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "tsconfig.json",
"ecmaVersion": 2019
},
"plugins": ["functional", "@typescript-eslint"],
"extends": [
"prettier",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"no-const-assign": "error",
"no-param-reassign": "error",
"prefer-const": "error",
"no-var": "error",
"require-await": "error",
"import/no-anonymous-default-export": "error",
"import/no-default-export": "error",
"import/dynamic-import-chunkname": "error",
"import/order": ["error", { "newlines-between": "always", "alphabetize": { "order": "asc" } }],
"import/no-duplicates": "error",
"import/no-cycle": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/restrict-template-expressions": [
"error",
{ "allowNumber": true, "allowBoolean": true }
],
"functional/no-let": [
"error",
{
"allowLocalMutation": true,
"ignorePattern": "^mutable"
}
],
"functional/prefer-readonly-type": "error",
"functional/no-this-expression": "error",
"functional/no-loop-statement": "error"
},
"overrides": [
{
"files": ["src/commands/**.ts"],
"rules": {
"import/no-default-export": 0
}
},
{
"files": ["**/*.spec.ts"],
"rules": {
"no-magic-numbers": 0,
"no-implicit-dependencies": 0
}
}
]
}