
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
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.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 4 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.