Skip to content

garretpatten/template

Template Repository

A GitHub template for new projects with formatting standards, PR-scoped linting, security guardrails, CODEOWNERS enforcement, and community docs preconfigured.

Quick start

  1. Click Use this template on GitHub (or clone and reinitialize).
  2. Update .github/CODEOWNERS with your maintainers.
  3. Replace placeholder URLs in .github/ISSUE_TEMPLATE/config.yml and CONTRIBUTING.md.
  4. Trim unused *_run inputs in .github/workflows/quality-checks.yaml for your stack.
  5. Run npm install and npm run lint before opening pull requests.

Formatting and lint config

File Purpose
.prettierrc Prettier defaults (100-char prose, 80-char YAML)
.prettierignore Build artifacts and lockfiles
.markdownlint.yaml Markdown rules (MD013 off; Prettier wraps)
.yamllint YAML rules (80-char lines)
.truffleignore TruffleHog exclusions
.trivyignore Trivy vulnerability/license exclusions

Local lint entrypoint:

npm install
npm run lint

GitHub workflows

Workflow Reusable source Purpose
quality-checks garretpatten/quality-checks PR-scoped linters (Prettier, Markdownlint, Yamllint, Shellcheck, ESLint, Ruff, …)
security-guardrails garretpatten/security-guardrails OpenGrep SAST, verified TruffleHog, dependency review, Trivy
codeowners-enforcer garretpatten/codeowners-enforcer Fail PRs when changed files lack CODEOWNERS coverage

Set each *_run input to false for tools your project does not use. Jobs no-op when nothing relevant changed.

GitHub configuration

Project docs

VS Code

Requirements

  • Node.js (for Prettier and Markdownlint)
  • GitHub Actions enabled
  • Optional locally: yamllint, actionlint, and stack-specific linters enabled in quality-checks

License

MIT — see LICENSE.

About

Template repository

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors