Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
babel-plugin-eslint-test-generator
Advanced tools
Readme
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.maxWarnings
- Optional (default: -1), equivalent to --max-warnings
on
eslint's CLI. -1
means there is no maximum.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 5 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.