
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
babel-plugin-eslint-test-generator
Advanced tools
This is a Babel Plugin which will generate ci tests based on eslint results. Basically developers can't ignore linting when it's in CI
This is a Babel Plugin which will generate ci tests based on eslint results. Basically developers can't ignore linting when it's in CI
$ npm install babel-plugin-eslint-test-generator
The following is an example .babelrc
file:
{
"presets": ["es2015"],
"plugins": [
["eslint-test-generator", {
"template": "mocha",
"paths": [
"src/**/*.js",
"test/**/*.js",
]
}]
]
}
.eslintrc
It should be noted when using this module you should use explicit paths to plugins in your .eslintrc
. For instance:
"extends": [
"./node_modules/coding-standard/eslintDefaults.js",
"./node_modules/coding-standard/.eslintrc-es6",
"./node_modules/coding-standard/.eslintrc-jsx"
]
More on that here: http://eslint.org/docs/user-guide/configuring#using-a-configuration-file
template
- Required String which can be either be a handlebars
template. Or one of the following if you'd like to use a pre-existing template:
mocha
qunit
paths
- Required Array or String. Paths can be an Array of glob strings defining which files should be linted. You can also pass in a glob string instead of an Array.file
- A String that is a file that we'd like to append the generated tests into. eg. 'test-lint.js'
optsEslint
- Optional eslint
options object.MIT, see LICENSE.md for details.
FAQs
This is a Babel Plugin which will generate ci tests based on eslint results. Basically developers can't ignore linting when it's in CI
The npm package babel-plugin-eslint-test-generator receives a total of 0 weekly downloads. As such, babel-plugin-eslint-test-generator popularity was classified as not popular.
We found that babel-plugin-eslint-test-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.