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.
- Host: GitHub
- URL: https://github.com/dsfields/eslint-plugin-radargun
- Owner: dsfields
- License: mit
- Created: 2018-01-01T15:28:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T20:47:41.000Z (over 8 years ago)
- Last Synced: 2025-06-13T19:54:44.716Z (about 1 year ago)
- Topics: benchmark, environment, eslint, plugin, radargun
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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`.