-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: eslint plugin playwright #433
feat: eslint plugin playwright #433
Conversation
Nice one @georgi-mateev |
utils/renderEslint.ts
Outdated
@@ -35,6 +35,11 @@ export default function renderEslint( | |||
additionalDependencies['eslint-plugin-cypress'] = eslintDeps['eslint-plugin-cypress'] | |||
} | |||
|
|||
if (needsPlaywright) { | |||
additionalConfig.extends = ['plugin:playwright/recommended'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the plugin apply only the Playwright files (as done for Cypress above)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, ESLint will apply the rules defined in the root of your configuration to all files in your project (which is not ideal).
@georgi-mateev Can you target e2e folder - something like files: ['e2e/**/*.{js,ts,jsx,tsx}']
?
@cexbrayat, @Yordan-Ramchev Thanks for the feedback and the help, appreciate it! ChangesPlugin now only applies to specified files - Regarding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks @georgi-mateev 👍
Re #422
"extends": ["plugin:playwright/recommended"]