From ad533bfb667b9792648fdf0fa9a9f0d08cf008d6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 01:31:00 +0000 Subject: [PATCH] Configure Renovate (#690) * Add renovate.json * config updates * add beachball ignores * Change files Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Elizabeth Craig --- .prettierrc | 7 ------- .prettierrc.json5 | 16 ++++++++++++++++ .vscode/settings.json | 6 ++++++ beachball.config.js | 3 ++- ...all-a7c5fc58-9710-4dee-8e31-5ebf13294b2f.json | 7 +++++++ renovate.json5 | 9 +++++++++ 6 files changed, 40 insertions(+), 8 deletions(-) delete mode 100644 .prettierrc create mode 100644 .prettierrc.json5 create mode 100644 change/beachball-a7c5fc58-9710-4dee-8e31-5ebf13294b2f.json create mode 100644 renovate.json5 diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 35d2dd393..000000000 --- a/.prettierrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "trailingComma": "es5", - "tabWidth": 2, - "singleQuote": true, - "printWidth": 120, - "arrowParens": "avoid" -} diff --git a/.prettierrc.json5 b/.prettierrc.json5 new file mode 100644 index 000000000..f0a0a586a --- /dev/null +++ b/.prettierrc.json5 @@ -0,0 +1,16 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "singleQuote": true, + "printWidth": 120, + "arrowParens": "avoid", + "overrides": [ + { + // format .json5 files as jsonc for VS Code support + "files": ["*.json5"], + "options": { + "parser": "json" + } + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index fcbfd4e6b..8a6e398a9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,5 +10,11 @@ "search.exclude": { "**/node_modules": true, "**/lib": true + }, + "files.associations": { + // VS Code doesn't have json5 support, so handle .json5 files as jsonc. + // Note that Prettier must also be configured to format *.json5 as jsonc + // (since json5 allows things like unquoted keys that jsonc doesn't). + "*.json5": "jsonc" } } diff --git a/beachball.config.js b/beachball.config.js index c739596c4..5cd643544 100644 --- a/beachball.config.js +++ b/beachball.config.js @@ -5,10 +5,11 @@ module.exports = { ignorePatterns: [ '.*ignore', '.github/**', - '.prettierrc', + '.prettierrc.json5', '.vscode/**', 'docs/**', 'jest.*.js', + 'renovate.json5', 'src/__e2e__/**', 'src/__tests__/**', 'src/fixtures/**', diff --git a/change/beachball-a7c5fc58-9710-4dee-8e31-5ebf13294b2f.json b/change/beachball-a7c5fc58-9710-4dee-8e31-5ebf13294b2f.json new file mode 100644 index 000000000..c28098ad1 --- /dev/null +++ b/change/beachball-a7c5fc58-9710-4dee-8e31-5ebf13294b2f.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Configure Renovate", + "packageName": "beachball", + "email": "elcraig@microsoft.com", + "dependentChangeType": "none" +} diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 000000000..8d6385a85 --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,9 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "github>ecraig12345/renovate-config:beachballLibraryRecommended", + "github>ecraig12345/renovate-config:groupJest", + "github>ecraig12345/renovate-config:keepFresh" + ], + "labels": ["renovate"] +}