We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd64229 commit 8e1522dCopy full SHA for 8e1522d
2 files changed
deno.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@loat-dev/lint-plugins",
3
- "version": "0.3.9",
+ "version": "0.3.10",
4
"license": "./LICENSE",
5
"exports": {
6
"./colon_spacing": "./src/plugins/colon_spacing.ts",
src/plugins/colon_spacing.ts
@@ -124,7 +124,7 @@ const colonSpacing : Deno.lint.Plugin = {
124
}
125
},
126
Identifier(node) : void {
127
- if (node.typeAnnotation) {
+ if (node.typeAnnotation && node.parent.type !== 'TSIndexSignature') {
128
// Text _ from "<name>___?__:<type>"
129
const section : Deno.lint.Range = [node.range[1], node.typeAnnotation.range[0]]
130
0 commit comments