Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 1009 Bytes

terNoSparseArraysRule.md

File metadata and controls

29 lines (20 loc) · 1009 Bytes

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