Skip to content

Files

Latest commit

 

History

History
26 lines (18 loc) · 407 Bytes

letter-case.md

File metadata and controls

26 lines (18 loc) · 407 Bytes

Pattern: Inconsistent letter case

Issue: -

Description

This rule is aimed to unify the case of letters.

Examples

/* eslint regexp/letter-case: ["error", { hexadecimalEscape: 'lowercase', controlEscape: 'uppercase' }] */

/* ✓ GOOD */
var foo = /a/i
var foo = /\u000a/
var foo = /\x0a/
var foo = /\cA/

/* ✗ BAD */
var foo = /A/i
var foo = /\u000A/
var foo = /\x0A/
var foo = /\ca/