Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(presets): add config:best-practices preset #21239

Merged
merged 19 commits into from
Jul 2, 2023
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/config/presets/internal/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ export const presets: Record<string, Preset> = {
'workarounds:all',
DuncanCasteleyn marked this conversation as resolved.
Show resolved Hide resolved
],
},
'best-practices': {
DuncanCasteleyn marked this conversation as resolved.
Show resolved Hide resolved
configMigration: true,
description: 'Preset with best practices from the Renovate maintainers.',
extends: [
'config:base',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viceice This should be 'config:recommended', or? I noticed that in documentation. Not sure what should be updated. Only this file and docs will be generate automatically?

Copy link
Collaborator

@HonkingGoose HonkingGoose Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config:best-practices preset still uses config:base in the current main branch:

import type { Preset } from '../types';
/* eslint sort-keys: ["error", "asc", {caseSensitive: false, natural: true}] */
export const presets: Record<string, Preset> = {
'best-practices': {
configMigration: true,
description: 'Preset with best practices from the Renovate maintainers.',
extends: [
'config:base',
'docker:pinDigests',
'helpers:pinGitHubActionDigests',
':pinDevDependencies',
],
},

I think this was caused because we merged the config:best-practices preset to main before we merged the config:base -> config:recommended PR. The config:base rename PR didn't fix up this file.

'docker:pinDigests',
'helpers:pinGitHubActionDigests',
':pinDevDependencies',
],
},
'js-app': {
description: 'Default configuration for webapps.',
extends: ['config:base', ':pinAllExceptPeerDependencies'],
Expand Down