pageClass | sidebarDepth | title | description | since |
---|---|---|---|---|
rule-details |
0 |
regexp/prefer-t |
enforce using `\t` |
v0.1.0 |
❌ 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
This rule is aimed at using \t
in regular expressions.
/* eslint regexp/prefer-t: "error" */
/* ✓ GOOD */
var foo = /\t/;
/* ✗ BAD */
var foo = /\u0009/;
Nothing.
This rule was introduced in eslint-plugin-regexp v0.1.0