-
Notifications
You must be signed in to change notification settings - Fork 0
Code Quality
yhAutomationQA edited this page May 16, 2026
·
1 revision
Configuration in .eslintrc.json. Key rules:
| Rule | Level | Description |
|---|---|---|
curly |
error | Braces required after all if/else
|
cypress/unsafe-to-chain-command |
error | No chaining .clear().type()
|
cypress/no-async-tests |
error | No async test functions |
no-console |
warn | Allowed for cy.log() in hooks |
prefer-const |
error | Use const unless reassigning |
eqeqeq |
error | Always use ===
|
npm run lint # Check
npm run lint:fix # Auto-fixConfiguration in .prettierrc. Formats .js, .json, and .feature files (via prettier-plugin-gherkin).
npm run format # Write changes
npm run format:check # Check only (CI)