From a4b3f477e3406711b19c797e38a219ad949b3628 Mon Sep 17 00:00:00 2001 From: Ben Lambert <46206905+benlambert43@users.noreply.github.com> Date: Fri, 20 Nov 2026 23:42:49 -0700 Subject: [PATCH] update dependabot settings --- .github/dependabot.yml | 23 +++++++++++++++++------ README.md | 2 +- template/.github/dependabot.yml | 23 +++++++++++++++++------ template/README.md | 2 +- 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 914dd9e..aa75d91 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,13 +3,17 @@ updates: - package-ecosystem: npm directories: ["/", "/template"] schedule: - interval: weekly + interval: monthly cooldown: default-days: 7 groups: - minor-and-patch: - patterns: ["*"] + npm-minor-and-patch: update-types: ["minor", "patch"] + npm-major: + update-types: ["major"] + npm-security: + applies-to: security-updates + patterns: ["*"] ignore: - dependency-name: typescript update-types: @@ -17,19 +21,26 @@ updates: - "version-update:semver-minor" - dependency-name: "@types/node" update-types: ["version-update:semver-major"] + - dependency-name: eslint + update-types: ["version-update:semver-major"] + - dependency-name: "@eslint/js" + update-types: ["version-update:semver-major"] - package-ecosystem: github-actions directory: / schedule: - interval: weekly + interval: monthly groups: - actions: + github-actions: patterns: ["*"] - package-ecosystem: docker-compose directory: /template schedule: - interval: weekly + interval: monthly + groups: + docker-compose: + patterns: ["*"] ignore: - dependency-name: postgres update-types: ["version-update:semver-major"] diff --git a/README.md b/README.md index c533110..0085d9c 100644 --- a/README.md +++ b/README.md @@ -228,5 +228,5 @@ CI runs the root preflight, installs the commit under test with npx exactly as a Dependabot updates the npm packages at the root and in the template, the Postgres image in the template, and the actions in this repository's workflow. Three things are left to do by hand: - Bump the `uses:` versions in `template/.github/workflows/ci.yml`, which Dependabot cannot see. -- Raise the major version of `@types/node` when its runtime moves: Node.js for most of the repository, and the Node.js inside Electron for the desktop app. Raise TypeScript's major and minor versions by hand as well. +- Raise the major version of `@types/node` when its runtime moves: Node.js for most of the repository, and the Node.js inside Electron for the desktop app. Raise TypeScript's major and minor versions, and the major versions of ESLint and `@eslint/js`, by hand as well. - Run `npm dedupe` in `template/` after updating by hand. npm can otherwise install a second copy of a package that one already present would satisfy, as it does with Rolldown after a fresh resolution. diff --git a/template/.github/dependabot.yml b/template/.github/dependabot.yml index 911ebec..338f5ee 100644 --- a/template/.github/dependabot.yml +++ b/template/.github/dependabot.yml @@ -3,18 +3,26 @@ updates: - package-ecosystem: npm directory: / schedule: - interval: weekly + interval: monthly cooldown: default-days: 7 groups: - minor-and-patch: - patterns: ["*"] + npm-minor-and-patch: update-types: ["minor", "patch"] + npm-major: + update-types: ["major"] + npm-security: + applies-to: security-updates + patterns: ["*"] ignore: - dependency-name: typescript update-types: - "version-update:semver-major" - "version-update:semver-minor" + - dependency-name: eslint + update-types: ["version-update:semver-major"] + - dependency-name: "@eslint/js" + update-types: ["version-update:semver-major"] # desktop:start - dependency-name: "@types/node" update-types: ["version-update:semver-major"] @@ -23,15 +31,18 @@ updates: - package-ecosystem: github-actions directory: / schedule: - interval: weekly + interval: monthly groups: - actions: + github-actions: patterns: ["*"] - package-ecosystem: docker-compose directory: / schedule: - interval: weekly + interval: monthly + groups: + docker-compose: + patterns: ["*"] ignore: - dependency-name: postgres update-types: ["version-update:semver-major"] diff --git a/template/README.md b/template/README.md index f0ab446..353093e 100644 --- a/template/README.md +++ b/template/README.md @@ -236,7 +236,7 @@ SITE_URL=https://example.com npm run build - **One config for the repository.** ESLint, Prettier, and lint-staged are configured at the root and cover every workspace, so run them from the root. Vitest's root config lists the workspace projects, each of which keeps its own `vitest.config.ts`. Every config file is TypeScript: Node.js 26 loads them directly, and ESLint reads `eslint.config.ts` through `jiti`. - **The editor agrees with preflight.** A passing `npm run preflight` should leave nothing underlined in VS Code. ESLint fails on deprecated APIs and lints Tailwind classes with `eslint-plugin-better-tailwindcss`, which makes the same checks as the Tailwind CSS IntelliSense extension, so `.vscode/settings.json` turns those three IntelliSense lints off. Prettier wraps long class lists, so the plugin's line-wrapping rule is the one rule switched off. - **ShellCheck reads `.shellcheckrc`**, so a script checked on its own in the editor follows `scripts/lib.sh` just as `lint:shell` does. -- **`overrides` in `package.json`.** One entry points every `eslint` peer dependency at the root ESLint 10, because some plugins bundled with `eslint-config-next` still declare ESLint 9. The other lets `@esbuild-kit/core-utils`, a deprecated package that `drizzle-kit` lists but never loads, share the esbuild already installed instead of adding an old release with a known advisory. +- **`overrides` in `package.json`.** One entry points every `eslint` peer dependency at the root ESLint 10, because some plugins bundled with `eslint-config-next` still declare ESLint 9. Dependabot leaves major versions of ESLint and `@eslint/js` alone, so bump them by hand. The other lets `@esbuild-kit/core-utils`, a deprecated package that `drizzle-kit` lists but never loads, share the esbuild already installed instead of adding an old release with a known advisory. - **`allowScripts` in `package.json`** is npm's install-script policy and names the packages whose install scripts may run. When `npm install` reports an unreviewed package, look at what its script does and approve it. `prune` drops the entries that an update has made unnecessary. ```sh