Skip to content

Files

Latest commit

 

History

History
25 lines (19 loc) · 434 Bytes

no-invisible-character.md

File metadata and controls

25 lines (19 loc) · 434 Bytes

Pattern: Use of invisible raw character

Issue: -

Description

This rule disallows using invisible characters other than SPACE (U+0020) without using escapes.

Examples

/* eslint regexp/no-invisible-character: "error" */
/* ✓ GOOD */
var foo = /\t/;
var foo = /\v/;
var foo = /\f/;
var foo = /\u3000/;
var foo = / /; // SPACE (`U+0020`)

/* ✗ BAD */
var foo = /	/;
var foo = //;
var foo = //;
var foo = / /;