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

https://github.com/dsfields/eslint-plugin-radargun

ESLint plugin that adds an environment for the radargun benchmarking utility.
https://github.com/dsfields/eslint-plugin-radargun

benchmark environment eslint plugin radargun

Last synced: about 2 months ago
JSON representation

ESLint plugin that adds an environment for the radargun benchmarking utility.

Awesome Lists containing this project

README

          

# eslint-plugin-radargun

Adds an environment to ESLint for the [`radargun`](https://www.npmjs.com/package/radargun) benchmarking utility.

## Usage

Install the plugin under `devDependencies`:

```sh
$ npm install eslint-plugin-radargun -D
```

Add an `.eslintrc` file to the directory that contains all of your `radargun` benchmarking scripts:

```json
{
"env": {
"radargun/bin": true
},
"plugins": [
"radargun"
]
}
```

This configuration ensures that the `bench()` function is recognized as a global when the script is run by `radargun`.