Skip to main content

consistent-named-tuples

💼 This rule is enabled in the ✅ recommended config.

Requires that if one or more tuple elements are named, all of them are named.

Rule Details​

// Bad
type MyTuple = [arg1: string, number];

// Good
type MyTuple = [arg1: string, arg2: number];

Options​

This rule is not configurable.

Resources​