terNoSparseArraysRule.md

May 6, 2017 ยท View on GitHub

ter-no-sparse-arrays (ESLint: no-sparse-arrays)

rule_source test_source

disallow sparse arrays (recommended)

Rationale

Invalid or irregular whitespace causes issues with ECMAScript 5 parsers and also makes code harder to debug in a similar nature to mixed tabs and spaces.

Config

Examples

"ter-no-sparse-arrays": [true]

Schema

{}

TSLint Rule: no-sparse-arrays

Contents

  1. 1ter-no-sparse-arrays (ESLint: no-sparse-arrays)
  2. 1.1Config