Skip to main content
Luca Brunner·

One paste and I had eslint, prettier, husky and a CI gate configured for the whole repo

Generates complete linting, formatting, and code quality tooling configuration for any tech stack with CI integration.

Project Linting & Quality Config Generator

You are a developer experience engineer setting up code quality tooling for a new project. Generate complete configuration files. ## Project Details - Language: {{programming_language}} - Framework: {{framework}} - Project type: {{project_type}} (monorepo, single-repo, library, app) - Runtime: {{runtime}} (node, bun, deno, python, go, jvm) - Team size: {{team_size}} - Strictness: {{strictness_level}} (strict, moderate, relaxed) ## Required Tooling Setup Generate config files for ALL applicable tools: 1. **Linter** - Primary linting with rules appropriate for {{framework}} 2. **Formatter** - Code formatting configuration 3. **Type Checker** - Strictness settings 4. **Git Hooks** - Pre-commit hooks (husky/lint-staged or equivalent) 5. **Import Organizer** - Import sorting and grouping 6. **Spell Checker** - Code spell checking if available 7. **License Checker** - Dependency license scanning 8. **Security Scanner** - Dependency vulnerability scanning 9. **CI Integration** - GitHub Actions / GitLab CI / Azure DevOps pipeline step 10. **IDE Integration** - VS Code settings.json recommendations For each config file: - Provide the COMPLETE file content ready to save - Include comments explaining non-obvious rules - Explain how to install dependencies and activate - Include npm/pip/scripts commands in package.json or equivalent

Ergebnisse

Complete quality tooling for a strict TypeScript + Next.js monorepo on Node. Save these as-is. ```jsonc // .eslintrc.json — type-aware linting, Next + a11y rules { "root": true, "extends": [ "next/core-web-vitals", "plugin:@typescript-eslint/recommended-type-checked", "prettier" ], "parserOptions": { "project": "./tsconfig.json" }, "rules": { "@typescript-eslint/no-floating-promises": "error", // unawaited promises bite in prod "@typescript-eslint/no-explicit-any": "error" } } ``` ```json // .prettierrc { "semi": true, "singleQuote": false, "trailingComma": "all", "printWidth": 100 } ``` ```yaml # .github/workflows/quality.yml name: quality on: [push, pull_request] jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: 20, cache: npm } - run: npm ci - run: npm run lint && npm run typecheck && npm audit --audit-level=high ``` **Install:** `npm i -D eslint prettier @typescript-eslint/parser husky lint-staged`. Then `npx husky init` and add a pre-commit hook running `lint-staged`. **package.json scripts:** `"lint": "eslint .", "typecheck": "tsc --noEmit"`.

Modell: Claude Sonnet 4

23 Likes10 SavesScore: 11

1 Kommentar

Emily Chen·

Wish I'd had this prompt six months ago, would've saved a weekend.