Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/igat64/eslint-plugin-no-call

Forbid to use of particular functions and/or methods to call
https://github.com/igat64/eslint-plugin-no-call

eslint eslint-plugin eslint-plugin-no-call eslint-rules eslintplugin linter-plugin

Last synced: about 1 month ago
JSON representation

Forbid to use of particular functions and/or methods to call

Awesome Lists containing this project

README

        

# eslint-plugin-no-call

Eslint plugin with a rule that forbid the use of particular functions and/or methods to call.

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-no-call`:

```
$ npm install eslint-plugin-no-call --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-no-call` globally.

## Usage

Add `no-call` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": ["no-call"]
}
```

Then configure the rule.

```json
{
"rules": {
"no-call/no-call": [1, ["_.set"]]
}
}
```

## Supported Rules

* [no-call](https://github.com/igat64/eslint-plugin-no-call/blob/master/docs/rules/no-call.md) (docs are there)