A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ota-meshi.github.io/eslint-plugin-regexp/settings/ below:

Website Navigation


Settings | eslint-plugin-regexp

Settings

Shared settings are a way to configure multiple rules at once.

📖 Usage

All settings for this plugin use the regexp namespace.

Example .eslintrc.js:

js
module.exports = {
  // ... rules, plugins, etc.

  settings: {
    // all settings for this plugin have to be in the `regexp` namespace
    regexp: {
      // define settings here, such as:
      // allowedCharacterRanges: 'all'
    }
  }
}
⚙️ Available settings allowedCharacterRanges

Defines a set of allowed character ranges. Rules will only allow, create, and fix character ranges defined here.

Values

The following values are allowed:

Default

If the setting isn't defined, its value defaults to "alphanumeric".

Example js
module.exports = {
  // ... rules, plugins, etc.
  settings: {
    regexp: {
      // allow alphanumeric and cyrillic ranges
      allowedCharacterRanges: ['alphanumeric', 'а-я', 'А-Я']
    }
  }
}
Affected rules

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4