@bratislava/eslint-config 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -40,6 +40,7 @@ export const typescriptRules = {
|
|
|
40
40
|
"@typescript-eslint/no-loop-func": "error",
|
|
41
41
|
"no-shadow": "off",
|
|
42
42
|
"@typescript-eslint/no-shadow": "error",
|
|
43
|
+
"require-await": "off",
|
|
43
44
|
"@typescript-eslint/require-await": "error",
|
|
44
45
|
|
|
45
46
|
// Other @typescript-eslint rules
|
|
@@ -82,6 +83,7 @@ export const eslintRules = {
|
|
|
82
83
|
eqeqeq: ["error", "smart"],
|
|
83
84
|
"guard-for-in": "error",
|
|
84
85
|
"new-cap": ["error", { capIsNew: false }],
|
|
86
|
+
"no-await-in-loop": "error",
|
|
85
87
|
"no-caller": "error",
|
|
86
88
|
"no-div-regex": "error",
|
|
87
89
|
"no-else-return": "error",
|
|
@@ -101,7 +103,6 @@ export const eslintRules = {
|
|
|
101
103
|
"prefer-const": "error",
|
|
102
104
|
"prefer-object-spread": "error",
|
|
103
105
|
"prefer-template": "error",
|
|
104
|
-
"require-await": "error",
|
|
105
106
|
yoda: "error",
|
|
106
107
|
};
|
|
107
108
|
|
|
@@ -127,8 +128,6 @@ export const disabledRules = {
|
|
|
127
128
|
"max-classes-per-file": "off",
|
|
128
129
|
"class-methods-use-this": "off",
|
|
129
130
|
"no-useless-catch": "off",
|
|
130
|
-
"no-await-in-loop": "off",
|
|
131
|
-
"@typescript-eslint/return-await": "off",
|
|
132
131
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
133
132
|
};
|
|
134
133
|
|