2.0.1 • Published 8 years ago
eslint-plugin-settimeout v2.0.1
Set Timeout ESLint Plugin
window.setTimeout linting rules for ESLint.
Installation
Install ESLint locally.
$ yarn add eslint --devInstall Set Timeout ESLint Plugin locally.
$ yarn add eslint-plugin-settimeout --devConfiguration
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
setTimeoutusages 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 installto install all dependencies. - Make your desired changes to any rule under
rulesfolder. Or add a new rule underrulesfolder following the existing code pattern. - Do update
versionnumber inpackage.jsonfile as necessary. - Run
npm run testand make sure all tests and lints are passing. - Finally, run
npm publishto publish your changes to npm.
License
(c) Copyright 2017 Udemy, Inc., all rights reserved.