eslint-plugin-detect-hard-code
v0.1.0
Published
Detect hardcoded strings.
Maintainers
Readme
eslint-plugin-detect-hard-code
Detect hard coded strings.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devor if you use yarn
$ yarn add eslint -DNext, install eslint-plugin-detect-hard-code:
$ npm install eslint-plugin-detect-hard-code --save-devor
$ yarn add eslint-plugin-detect-hard-code -DUsage
Add detect-hard-code to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["detect-hard-code"],
"rules": {
"detect-hard-code/detect-hard-code": "error"
}
}