eslint-plugin-no-generic-identifier

1.0.0 • Public • Published

eslint-plugin-no-generic-identifier

Disallow generic declarations/assignments

Installation

You'll first need to install ESLint:

Yarn

$ yarn add eslint --dev

NPM

$ npm install eslint --save-dev

Next, install eslint-plugin-no-generic-identifier:

Yarn

$ yarn add eslint-plugin-no-generic-identifier --dev

NPM

$ npm install eslint-plugin-no-generic-identifier --save-dev

Note: 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 = () => {}

Package Sidebar

Install

npm i eslint-plugin-no-generic-identifier

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

43.3 kB

Total Files

6

Last publish

Collaborators

  • d7my11