Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/igat64/eslint-plugin-no-call
- Owner: igat64
- License: mit
- Created: 2018-01-23T16:22:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T05:08:15.000Z (almost 3 years ago)
- Last Synced: 2024-11-16T13:45:45.981Z (2 months ago)
- Topics: eslint, eslint-plugin, eslint-plugin-no-call, eslint-rules, eslintplugin, linter-plugin
- Language: JavaScript
- Homepage:
- Size: 95.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)