Skip to content

plus/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 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 type-named-tuple-spacing: ["error"]*/
type T = [i: number] type T = [i?: number] type T = [i: ()=>void, j: number]
correct

Released under the MIT License.