aboutsummaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-06-17 20:30:15 +0300
committerValentin Popov <info@valentineus.link>2020-06-17 20:33:14 +0300
commit802224efd3eabc428f4d91d6e21c19fc0b7f9db1 (patch)
tree80e0e7f5c9e39b424e15dc6f8aee9784d5f48f23 /src/rules
parent65cf95c441aaf9789e00ad68ba0b5fd2bbda4501 (diff)
downloadeslint-config-802224efd3eabc428f4d91d6e21c19fc0b7f9db1.tar.xz
eslint-config-802224efd3eabc428f4d91d6e21c19fc0b7f9db1.zip
Updated TypeScript rules
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/typescript/default.json24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 2b45050..fa868f6 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -16,6 +16,7 @@
"@typescript-eslint/explicit-function-return-type": [
"error",
{
+ "allowConciseArrowFunctionExpressionsStartingWithVoid": false,
"allowExpressions": false,
"allowHigherOrderFunctions": false,
"allowTypedFunctionExpressions": false
@@ -61,12 +62,9 @@
"outerIIFEBody": 1
}
],
- "@typescript-eslint/interface-name-prefix": [
+ "@typescript-eslint/method-signature-style": [
"error",
- {
- "allowUnderscorePrefix": false,
- "prefixWithI": "always"
- }
+ "property"
],
"@typescript-eslint/no-base-to-string": [
"error"
@@ -125,9 +123,7 @@
"@typescript-eslint/no-unnecessary-condition": [
"error",
{
- "allowConstantLoopConditions": false,
- "checkArrayPredicates": true,
- "ignoreRhs": true
+ "allowConstantLoopConditions": false
}
],
"@typescript-eslint/no-unnecessary-type-assertion": [
@@ -213,9 +209,13 @@
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
- "allowNullable": false,
- "allowSafe": false,
- "ignoreRhs": false
+ "allowAny": false,
+ "allowNullableBoolean": false,
+ "allowNullableNumber": false,
+ "allowNullableObject": false,
+ "allowNullableString": false,
+ "allowNumber": false,
+ "allowString": false
}
],
"@typescript-eslint/type-annotation-spacing": [
@@ -297,4 +297,4 @@
"space-before-function-paren": [
"off"
]
-}
+} \ No newline at end of file