eslint-plugin-settimeout
v2.0.1
Published
ESLint plugin for window.setTimeout
Downloads
28
Readme
Set Timeout ESLint Plugin
window.setTimeout
linting rules for ESLint.
Installation
Install ESLint locally.
$ yarn add eslint --dev
Install Set Timeout ESLint Plugin locally.
$ yarn add eslint-plugin-settimeout --dev
Configuration
Add a plugins
section and specify settimeout
as a plugin.
You can additionally add settings for the plugin.
List of provided rules
- settimeout/no-nonzero: Prevent
setTimeout
usages with a nonzero delay value.
Contributing
Contributions are always welcome! For more info, please get in touch with @udemy/team-f team. In a nutshell:
- Run
npm install
to install all dependencies. - Make your desired changes to any rule under
rules
folder. Or add a new rule underrules
folder following the existing code pattern. - Do update
version
number inpackage.json
file as necessary. - Run
npm run test
and make sure all tests and lints are passing. - Finally, run
npm publish
to publish your changes to npm.
License
(c) Copyright 2017 Udemy, Inc., all rights reserved.