forked from garden-io/garden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
92 lines (92 loc) · 2.45 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"extends": [
".eslintrc.autogenerated.cjs",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:chai-expect/recommended",
"plugin:chai-friendly/recommended"
],
"root": true,
"plugins": [
"unused-imports",
"mocha",
"header",
"chai-expect",
"chai-friendly"
],
"ignorePatterns": [
"*.d.ts*",
"garden-sea/tmp/**/*"
],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-shadow": [
"warn",
{
"hoist": "all"
}
],
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
// We allow empty functions for cases where callbacks are required but unneeded
"@typescript-eslint/no-empty-function": "warn",
// We use `{}` everywhere.
// To make this safe, we need to actually go through all the cases and see
// if it's supposed to be a plain object, any object, or really means "anything".
"@typescript-eslint/ban-types": "warn",
"arrow-body-style": "off",
"jsdoc/check-indentation": "off",
"jsdoc/newline-after-description": "off",
"no-console": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "off",
"chai-friendly/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"max-len": [
"warn",
{
"code": 120,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true
}
],
"mocha/no-skipped-tests": "warn",
"mocha/no-exclusive-tests": "error",
"unused-imports/no-unused-imports": "error",
"header/header": [
2,
"block",
[
"",
" * Copyright (C) 2018-2024 Garden Technologies, Inc. <[email protected]>",
" *",
" * This Source Code Form is subject to the terms of the Mozilla Public",
" * License, v. 2.0. If a copy of the MPL was not distributed with this",
" * file, You can obtain one at http://mozilla.org/MPL/2.0/.",
" "
]
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "warn"
}
}