Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@fintechstudios/eslint-plugin-chai-as-promised
Advanced tools
Prevent common problems when using chai-as-promised
Prevent common problems when using chai-as-promised
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @fintechstudios/eslint-plugin-chai-as-promised
:
$ npm install @fintechstudios/eslint-plugin-chai-as-promised --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @fintechstudios/eslint-plugin-chai-as-promised
globally.
Add @fintechstudios/chai-as-promised
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@fintechstudios/eslint-plugin-chai-as-promised"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@fintechstudios/chai-as-promised/no-unhandled-promises": 2,
"@fintechstudios/chai-as-promised/no-await-in-condition": 2
}
}
Or, to just use the configuration above as is, you can simply add the following instead:
{
"extends": ["plugin:@fintechstudios/chai-as-promised/recommended"]
}
no-await-in-condition
: Must not use
await within chai-as-promised expressionsno-unhandled-promises
: Must handle
promises returned from chai-as-promised expressions3.0.0 (2020-03-23)
recommended
FAQs
Prevent common problems when using chai-as-promised
The npm package @fintechstudios/eslint-plugin-chai-as-promised receives a total of 1,823 weekly downloads. As such, @fintechstudios/eslint-plugin-chai-as-promised popularity was classified as popular.
We found that @fintechstudios/eslint-plugin-chai-as-promised demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.