Gathering detailed insights and metrics for babel-plugin-eslint-test-generator
Gathering detailed insights and metrics for babel-plugin-eslint-test-generator
Gathering detailed insights and metrics for babel-plugin-eslint-test-generator
Gathering detailed insights and metrics for babel-plugin-eslint-test-generator
npm install babel-plugin-eslint-test-generator
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
22 Commits
2 Forks
439 Watchers
2 Branches
7,064 Contributors
Updated on Jan 29, 2023
Latest Version
1.0.2
Package Id
babel-plugin-eslint-test-generator@1.0.2
Size
4.78 kB
NPM Version
3.6.0
Node Version
5.7.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
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
1$ npm install babel-plugin-eslint-test-generator
The following is an example .babelrc
file:
1{ 2 "presets": ["es2015"], 3 "plugins": [ 4 ["eslint-test-generator", { 5 "template": "mocha", 6 "paths": [ 7 "src/**/*.js", 8 "test/**/*.js", 9 ] 10 }] 11 ] 12}
.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.
No vulnerabilities found.
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 1/20 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-07-01
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More