{"id":28752359,"url":"https://github.com/msankhala/drupal-pre-committer","last_synced_at":"2026-05-06T00:34:38.078Z","repository":{"id":299366585,"uuid":"1002779629","full_name":"msankhala/drupal-pre-committer","owner":"msankhala","description":"The drupal-pre-committer package that allows you to setup git pre-commit hooks in any Drupal project using husky npm package and provides the basic config/ignore files templates for different linters.","archived":false,"fork":false,"pushed_at":"2025-06-16T06:31:25.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-16T07:28:10.822Z","etag":null,"topics":["drupal","drupal-pre-commit","git","pre-commit"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msankhala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-16T06:11:57.000Z","updated_at":"2025-06-16T06:31:29.000Z","dependencies_parsed_at":"2025-06-16T07:28:13.762Z","dependency_job_id":"222f1e74-5f96-4ed3-8aac-52b79d8bc060","html_url":"https://github.com/msankhala/drupal-pre-committer","commit_stats":null,"previous_names":["msankhala/drupal-pre-committer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msankhala/drupal-pre-committer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msankhala%2Fdrupal-pre-committer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msankhala%2Fdrupal-pre-committer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msankhala%2Fdrupal-pre-committer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msankhala%2Fdrupal-pre-committer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msankhala","download_url":"https://codeload.github.com/msankhala/drupal-pre-committer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msankhala%2Fdrupal-pre-committer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260263575,"owners_count":22982737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-pre-commit","git","pre-commit"],"created_at":"2025-06-17T00:00:48.979Z","updated_at":"2025-10-28T21:17:41.714Z","avatar_url":"https://github.com/msankhala.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @msankhala/drupal-pre-committer\n\n## 🧩 Introduction\n\n`@msankhala/drupal-pre-committer` is a meta-package designed to bootstrap Drupal projects with essential linting and formatting tools. It provides starter configurations and an interactive CLI to help you quickly set up a consistent code quality environment.\n\n## 📦 Installation\n\nYou can use this package via `npx` without installing it.\n\n### ⚙️ Usage\n\nRun the CLI:\n\n```bash\nnpx drupal-pre-committer config\n```\n\nSelect the linting tools you want to install from the list:\n\n1. Secretlint\n1. ESLint\n1. Stylelint\n1. Prettier\n1. Twig CS Fixer\n1. PhpCodeSniffer\n1. Twig CS Fixer\n\n**The CLI will:**\n\n1. Install the selected tools as dev dependencies.\n1. Copy starter configuration files (e.g., .eslintrc.js, .stylelintrc.js, etc.) to your project root\n\n## 🛠️ Supported Tools\n\n1. Secretlint\n1. ESLint\n1. Stylelint\n1. Prettier\n1. Twig CS Fixer\n1. PhpCodeSniffer\n1. Twig CS Fixer\n\n## 📁 Configuration Files\n\nEach tool includes:\n\n1. A default configuration file (e.g., .stylelintrc.js)\n1. An ignore file (e.g., .stylelintignore)\nThese are copied to your project root when selected.\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests to improve configurations or add support for more tools.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsankhala%2Fdrupal-pre-committer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsankhala%2Fdrupal-pre-committer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsankhala%2Fdrupal-pre-committer/lists"}