0.0.0 • Published 4 years ago

eslint-plugin-onlyi18n v0.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

eslint-plugin-onlyi18n

only accept i18n variable in JSX value

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-onlyi18n:

$ npm install eslint-plugin-onlyi18n --save-dev

Usage

Add entry-task-only-i18n-mark-chen to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["entry-task-only-i18n-mark-chen"]
}

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

{
  "rules": {
    "entry-task-only-i18n-mark-chen/rule-name": 2
  }
}

Supported Rules

  • Fill in provided rules here