1.0.0 • Published 6 years ago
eslint-plugin-no-generic-identifier v1.0.0
eslint-plugin-no-generic-identifier
Disallow generic declarations/assignments
Installation
You'll first need to install ESLint:
Yarn
$ yarn add eslint --devNPM
$ npm install eslint --save-devNext, install eslint-plugin-no-generic-identifier:
Yarn
$ yarn add eslint-plugin-no-generic-identifier --devNPM
$ npm install eslint-plugin-no-generic-identifier --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-generic-identifier globally.
Usage
Add no-generic-identifier to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"no-generic-identifier"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-generic-identifier/presentation": 2
}
}Rule Example:
Bad
const Presentation = () => {}Good
const WhatActuallyThisMethodDoes = () => {}