summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 23:13:43 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 23:13:43 +0300
commitbeb1b6ae5522ff25b6a35c447836fa0925c97e6b (patch)
tree6c519e6dabefc8494cda4ac84f9698357c6c5e79 /src/rules
parent4a5af3ad9664859a8d22ac3408bdbc46c4c7ec5e (diff)
downloadeslint-config-beb1b6ae5522ff25b6a35c447836fa0925c97e6b.tar.xz
eslint-config-beb1b6ae5522ff25b6a35c447836fa0925c97e6b.zip
feat(typescript): Rule "type-annotation-spacing"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/typescript/default.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 26bd453..3c10f32 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -101,6 +101,13 @@
"ignoreRhs": false
}
],
+ "@typescript-eslint/type-annotation-spacing": [
+ "error",
+ {
+ "after": true,
+ "before": false
+ }
+ ],
"indent": [
"off"
],