summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 19:49:02 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 19:49:02 +0300
commit72b09d417636ae0e8d17725eaa20664ab6bb3832 (patch)
tree07e518e04dd91b28fa42d281d8659aade95d9478 /src/rules
parente7da809741e4b2beafa50e4a4e4b7f801e9c206c (diff)
downloadeslint-config-72b09d417636ae0e8d17725eaa20664ab6bb3832.tar.xz
eslint-config-72b09d417636ae0e8d17725eaa20664ab6bb3832.zip
fix(typescript): type-annotation-spacing
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/typescript/default.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 70058a1..0b2fd46 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -140,7 +140,19 @@
}
],
"@typescript-eslint/type-annotation-spacing": [
- "error"
+ "error",
+ {
+ "overrides": {
+ "arrow": {
+ "after": true,
+ "before": true
+ },
+ "colon": {
+ "after": true,
+ "before": false
+ }
+ }
+ }
],
"@typescript-eslint/typedef": [
"error",