Skip to content

Custom Eslint plugin that enforce the use of try catch on async await functions

Notifications You must be signed in to change notification settings

finnoconsult/eslint-plugin-no-await-without-try-catch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

npm install --save-dev eslint-plugin-safeasync

And configure your .eslintrc file accordingly. For example:

{
    "plugins": [
        "safeasync",
    ],
    "rules": {
        "safeasync/no-await-without-trycatch": "warn",
        "safeasync/no-await-without-trycatch-in-callback": "warn",
    }
}

About

Custom Eslint plugin that enforce the use of try catch on async await functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published