diff --git a/.eslintrc.js b/.eslintrc.js index ddbe40ab4f0..6a01e343588 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -49,7 +49,6 @@ module.exports = defineConfig({ // Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently. 'unicorn/better-regex': 'off', 'unicorn/consistent-function-scoping': 'off', - 'unicorn/escape-case': 'off', 'unicorn/filename-case': 'off', 'unicorn/import-style': 'off', 'unicorn/no-array-callback-reference': 'off', diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index ec73c149cea..cbbeb3518e7 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -2,7 +2,7 @@ import type { Faker } from '../..'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; import { deprecated } from '../../internal/deprecated'; -const nbsp = '\u00a0'; +const nbsp = '\u00A0'; /** * Module to generate git related entries. diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 22d8491f0b6..81007156995 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -190,7 +190,7 @@ export class SimpleHelpersModule { slugify(string: string = ''): string { return string .normalize('NFKD') //for example è decomposes to as e + ̀ - .replace(/[\u0300-\u036f]/g, '') // removes combining marks + .replace(/[\u0300-\u036F]/g, '') // removes combining marks .replace(/ /g, '-') // replaces spaces with hyphens .replace(/[^\w.-]+/g, ''); // removes all non-word characters except for dots and hyphens } diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 947edfbaab0..42d05c5523d 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -636,7 +636,7 @@ export class InternetModule { // First remove simple accents etc result = result .normalize('NFKD') //for example è decomposes to as e + ̀ - .replace(/[\u0300-\u036f]/g, ''); // removes combining marks + .replace(/[\u0300-\u036F]/g, ''); // removes combining marks result = [...result] .map((char) => {