Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.03 KB

prefer-t.md

File metadata and controls

47 lines (30 loc) · 1.03 KB
pageClass sidebarDepth title description since
rule-details
0
regexp/prefer-t
enforce using `\t`
v0.1.0

regexp/prefer-t

❌ This rule is deprecated. It was replaced by regexp/control-character-escape.

🔧 This rule is automatically fixable by the --fix CLI option.

enforce using \t

📖 Rule Details

This rule is aimed at using \t in regular expressions.

/* eslint regexp/prefer-t: "error" */

/* ✓ GOOD */
var foo = /\t/;

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

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-regexp v0.1.0

🔍 Implementation