mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:21:14 +08:00
114 lines
2.9 KiB
Plaintext
114 lines
2.9 KiB
Plaintext
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": [
|
|
"config:base",
|
|
"group:allNonMajor"
|
|
],
|
|
"prHourlyLimit": 1,
|
|
"prConcurrentLimit": 1,
|
|
// Custom ignore paths to include our `examples/` directory
|
|
"ignorePaths": [
|
|
"**/node_modules/**",
|
|
"**/bower_components/**",
|
|
"**/vendor/**",
|
|
"**/__tests__/**",
|
|
"**/test/**",
|
|
"**/tests/**",
|
|
"**/__fixtures__/**"
|
|
],
|
|
"enabledManagers": [
|
|
"npm"
|
|
],
|
|
// Ignore release notes for non-breaking changes
|
|
"fetchReleaseNotes": false,
|
|
// Always bump minor/patch to latest
|
|
"rangeStrategy": "bump",
|
|
"major": {
|
|
// Replace ranges when there is a major
|
|
"rangeStrategy": "replace",
|
|
// Get us the release notes for breaking changes
|
|
"fetchReleaseNotes": true
|
|
},
|
|
"packageRules": [
|
|
// Leave peerDependencies and engines alone
|
|
{
|
|
"depTypeList": [
|
|
"peerDependencies",
|
|
"engines"
|
|
],
|
|
"enabled": false
|
|
},
|
|
// Handle patch updates under 0.1.0 as potentially breaking
|
|
// Workaround for https://github.com/renovatebot/renovate/issues/3588
|
|
{
|
|
"managers": [
|
|
"npm"
|
|
],
|
|
"matchCurrentVersion": "<0.1.0",
|
|
"rangeStrategy": "replace",
|
|
"groupName": "maybe breaking patch updates",
|
|
"groupSlug": "maybe-breaking-patch",
|
|
// Get us the release notes for potentially breaking changes
|
|
"fetchReleaseNotes": true
|
|
},
|
|
// Handle minor updates under 1.0.0 as potentially breaking
|
|
// Workaround for https://github.com/renovatebot/renovate/issues/3588
|
|
{
|
|
"managers": [
|
|
"npm"
|
|
],
|
|
"matchCurrentVersion": "<1.0.0 >=0.1.0",
|
|
"minor": {
|
|
"rangeStrategy": "replace",
|
|
"groupName": "maybe breaking minor updates",
|
|
"groupSlug": "maybe-breaking-minor",
|
|
// Get us the release notes for potentially breaking changes
|
|
"fetchReleaseNotes": true
|
|
}
|
|
},
|
|
// Group Storybook's linter configs together
|
|
{
|
|
"packageNames": [
|
|
"@storybook/eslint-config-storybook",
|
|
"@storybook/linter-config"
|
|
],
|
|
"groupName": "storybook linting"
|
|
},
|
|
// Group Puppeteer packages together
|
|
{
|
|
"packagePatterns": [
|
|
"^puppeteer",
|
|
"^@types/puppeteer"
|
|
],
|
|
"groupName": "puppeteer"
|
|
},
|
|
// Group Acorn packages together
|
|
{
|
|
"packagePatterns": [
|
|
"^acorn"
|
|
],
|
|
"groupName": "acorn"
|
|
},
|
|
// Group React packages together
|
|
{
|
|
"packageNames": [
|
|
"react",
|
|
"@types/react",
|
|
"react-dom",
|
|
"@types/react-dom"
|
|
],
|
|
"groupName": "react"
|
|
}
|
|
],
|
|
// Simplifies the PR body
|
|
"prBodyTemplate": "{{{table}}}{{{notes}}}{{{changelogs}}}",
|
|
"prBodyColumns": [
|
|
"Package",
|
|
"Change"
|
|
],
|
|
// https://docs.renovatebot.com/merge-confidence/#enabling-and-disabling
|
|
"ignorePresets": [
|
|
"github>whitesource/merge-confidence:beta"
|
|
]
|
|
}
|