eslint-plugin

@masknet/type/no-empty-literal

Disallow empty {array,object} literal

Rule Details

Disallow empty {array,object} literal

Options

/**
 * @minItems Infinity
 */
export type Options = [
  {
    array?: string
    object?: string
  },
]

:x: Incorrect

const foo = []
const bar = {}

Attributes