Skip to content

Commit 8e1522d

Browse files
committed
fix: Colon spacing after
1 parent fd64229 commit 8e1522d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@loat-dev/lint-plugins",
3-
"version": "0.3.9",
3+
"version": "0.3.10",
44
"license": "./LICENSE",
55
"exports": {
66
"./colon_spacing": "./src/plugins/colon_spacing.ts",

src/plugins/colon_spacing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const colonSpacing : Deno.lint.Plugin = {
124124
}
125125
},
126126
Identifier(node) : void {
127-
if (node.typeAnnotation) {
127+
if (node.typeAnnotation && node.parent.type !== 'TSIndexSignature') {
128128
// Text _ from "<name>___?__:<type>"
129129
const section : Deno.lint.Range = [node.range[1], node.typeAnnotation.range[0]]
130130

0 commit comments

Comments
 (0)