type-named-tuple-spacing
Expect space before the type declaration in the named tuple.
Rule Details
Expect space before the type declaration in the named tuple.
Options
This rule has no options.
Examples of incorrect code for this rule:
ts
/*eslint @stylistic/type-named-tuple-spacing: ["error"]*/
type T = [i:number]
type T = [i? :number]
type T = [i:()=>void, j:number]
incorrect
Examples of correct code for this rule:
ts
/*eslint @stylistic/type-named-tuple-spacing: ["error"]*/
type T = [i: number]
type T = [i?: number]
type T = [i: ()=>void, j: number]
correct