0.1.0 • Published 3 years ago

eslint-plugin-no-string v0.1.0

Weekly downloads
8
License
UNLICENSED
Repository
github
Last release
3 years ago

eslint-plugin-no-string

In some projects, strings will be managed in a unified way to make projects is more friendly with i18n. So that, you may not want strings to appear in some files in your project.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-no-string:

$ npm install eslint-plugin-no-string --save-dev

Usage

Add no-string to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["no-string"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "no-string/files": [
      "error",
      "always",
      ["src/**", "src/index.ts", "**/*.jsx", "**/*.tsx"]
    ]
  }
}

Supported Rules

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago