Skip to content

tools: Add no useless regex char class rule

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

tools

Description of change

Eslint Rule: Disallow useless escape in regex character class with optional override characters option and auto fixable with eslint --fix option.

Usage: no-useless-regex-char-class-escape: [2, { override: ['[', ']'] }]

Note : ~~~lint errors(10) due to this rule is not addressed. Reason is, override list is not finalised.~~~

CC: @trott

Merge request reports

Loading