Loading video player...
In this tutorial, Iβll show you how to configure **Prettier, ESLint, Husky, and lint-staged** in a **Playwright BDD (Cucumber / Gherkin) framework** so that every commit is automatically checked, formatted, and validated. π‘ Why watch this? Because catching formatting issues, lint errors, and Gherkin mistakes *before commit* saves time, prevents broken code, and enforces professional QA standards. β Whatβs covered in this video: - Setting up **Prettier** to format `.ts`, `.js`, `.json`, `.md`, and `.feature` files - Configuring **ESLint** for TypeScript + Playwright best practices - Adding **gherkin-lint + Prettier plugin** for `.feature` files - Writing a `lint-staged` config to run checks only on staged files - Using **Husky pre-commit hooks** to block bad commits automatically - Demo: see bad commits fail and clean commits pass --- π **GitHub Repo with Full Code:** π [https://github.com/TestRoverAutomation/Playwright_Learning](https://github.com/TestRoverAutomation/Playwright_Learning) --- This is a **step-by-step setup guide** for enforcing QA best practices in Playwright with TypeScript & BDD, ensuring **consistent, high-quality automation code** across the whole project. Perfect for: - **QA Engineers & SDETs** who want automated code quality gates - Teams working with **Playwright + TypeScript + Cucumber/BDD** --- β±οΈ **Timestamps** (add after upload): 0:00 β Intro 0:30 β Why Prettier + ESLint + Husky matter in QA Automation 1:10 β Setting up Prettier config for `.ts`, `.js`, `.json`, `.feature` files 3:00 β ESLint + Playwright recommended setup with rules 5:30 β Adding `gherkin-lint` & Prettier plugin for Gherkin files 7:00 β Husky + lint-staged pre-commit hook setup 9:00 β Demo: blocking commits with non-standard code 11:00 β Wrap-up and next steps --- π Donβt forget to **Like, Subscribe, and Comment** if you found this helpful! π¬ Share your setup issues below β Iβll help debug your config. #Playwright #AutomationTesting #BDD #Prettier #ESLint #Husky #lintstaged #QA #TestAutomation #TypeScript