0.0.0 • Published 5 years ago
eslint-plugin-onlyi18n v0.0.0
eslint-plugin-onlyi18n
only accept i18n variable in JSX value
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-onlyi18n:
$ npm install eslint-plugin-onlyi18n --save-devUsage
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
0.0.0
5 years ago