Linting and Formatting Taste

Linting and Formatting Taste

Lays out a JavaScript developer's rules for linting and formatting with Prettier and ESLint, from config and editor setup to pre-commit hooks and CI checks.

Linting and Formatting taste of a JavaScript developer who wants zero style debates

  • Let Prettier own all formatting and ESLint own only correctness, so the two tools never fight over the same rule. Confidence: 0.90
  • Use the ESLint flat config (eslint.config.js) for new projects and skip the legacy .eslintrc formats. Confidence: 0.85
  • Turn off every stylistic ESLint rule with eslint-config-prettier instead of tuning them one by one. Confidence: 0.85
  • Keep the Prettier config tiny and close to defaults; arguing about semicolons is not worth a meeting. Confidence: 0.90
  • Commit the formatter and linter configs to the repo and pin their versions so every machine gives the same result. Confidence: 0.90
  • Enable typescript-eslint with type-aware rules for TypeScript code, even though it makes linting a bit slower. Confidence: 0.80
  • Treat no-floating-promises and no-misused-promises as errors; unhandled promises are real bugs, not style. Confidence: 0.85
  • Prefer a short list of rules set to error over a long list of warn rules that everyone learns to ignore. Confidence: 0.85
  • Run the formatter on save in the editor so formatting never shows up as a separate task. Confidence: 0.85
  • Run lint and format checks on staged files only in a pre-commit hook with lint-staged, and keep that hook fast. Confidence: 0.75
  • Run prettier --check and eslint --max-warnings=0 in CI so nothing unformatted or noisy reaches the main branch. Confidence: 0.90
  • Land the first repo-wide format in a single dedicated commit and add it to .git-blame-ignore-revs. Confidence: 0.80
  • Allow inline eslint-disable comments only for one specific rule, always with a short reason next to it. Confidence: 0.85
  • Never disable a rule for the whole file just to get one tricky line through. Confidence: 0.75
  • Keep import sorting automatic with a plugin, so import order never comes up in code review. Confidence: 0.70
  • Add a .editorconfig for line endings, final newlines and indentation so non-JS files stay consistent too. Confidence: 0.70
  • Ignore generated code and build output in both tools instead of fixing lint errors in files nobody writes by hand. Confidence: 0.85
  • Review new lint rules as a team decision with a one-line reason in the config, not as a drive-by change. Confidence: 0.70
  • Consider Biome for new small projects that want one fast tool for both linting and formatting. Confidence: 0.60
  • Fix lint errors in the same pull request that adds them; a "clean up lint later" ticket never gets done. Confidence: 0.80

Public domain (CC0 1.0) · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…