Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
eslint-plugin-builtin-compat
Advanced tools
Checks built-in methods compatibility. It uses browser-compat-data to determine incompatible method calls.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-builtin-compat
:
$ npm install eslint-plugin-builtin-compat --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-builtin-compat
globally.
Add builtin-compat
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["builtin-compat"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"builtin-compat/no-incompatible-builtins": 2
}
}
You can ignore certain built-ins, usually after adding a polyfill:
{
"settings": {
"builtin-compat-ignore": ["assign", "startsWith"]
}
}
Configure supported browsers in package.json
(see browserslist):
{
"browserslist": ["last 1 versions", "not ie <= 8"]
}
Contributions are welcome! Just open an issues with any idea or pull-request if it is no-brainer. Make sure all tests and linting rules pass.
FAQs
Checks built-in objects compatibility
The npm package eslint-plugin-builtin-compat receives a total of 997 weekly downloads. As such, eslint-plugin-builtin-compat popularity was classified as not popular.
We found that eslint-plugin-builtin-compat 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.