@putout/plugin-coverage
v2.1.1
Published
🐊Putout plugin helps with coverage configs
Maintainers
Readme
@putout/plugin-coverage 
🐊Putout plugin helps with coverage configuration files, like :.nycrc.json, c8rc.json.
Checkout in 🐊Putout Editor.
Install
npm i @putout/plugin-coverage -DRules
Config
{
"rules": {
"coverage/add-to-exclude": ["on", {
"dismiss": ["*.spec.*"]
}],
"coverage/sort-ignore": "on"
}
}add-to-exclude
{
"exclude": [
- "test"
+ "test",
+ *.config.*
]
}sort-ignore
❌ Example of incorrect code
{
"exclude": [
"**/*.spec.*",
"**/fixture",
"test",
".*.*",
"**/*.config.*"
]
}✅ Example of correct code
{
"exclude": [
"**/*.spec.*",
"**/fixture",
"**/*.config.*",
".*.*",
"test"
]
}License
MIT
