microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.67k stars 3.65k forks source link

[Feature] Make community ESLint plugin official #9474

Open mskelton opened 3 years ago

mskelton commented 3 years ago

There is a community ESLint plugin eslint-plugin-playwright that I've helped contribute towards. I think this could be valuable to make official and think of other ESLint rules that could be added to it. Currently, the plugin does two main things:

  1. Configures the ESLint environment for shared Node/browser and disables the no-empty-pattern rule
  2. Adds a new ESLint rule that auto fixes missing await statements before expect matchers and test.step.

Thoughts?

mskelton commented 3 years ago

Oh, forgot to post the link to the project 😂

https://github.com/playwright-community/eslint-plugin-playwright

Also, might be good to note that Cypress has an official ESLint plugin for what it's worth:

https://github.com/cypress-io/eslint-plugin-cypress