cypress-io / eslint-plugin-cypress

An ESLint plugin for projects that use Cypress
MIT License
705 stars 89 forks source link

Rule to prevent using xpath #218

Open wlsf82 opened 2 months ago

wlsf82 commented 2 months ago

A mentee of mine (@RenanDezotti) asked in my mentorship Slack group if it would be possible to create a rule using eslint-plugin-cypress to prevent users from using xpath selectors with Cypress.

I told him this wasn't possible but would be a great addition to the plugin.

So here's the idea.

I hope someone can pick it up and implement it.

jennifer-shehane commented 2 months ago

I agree with this sentiment. There are a lot more people than you think using xpath.

wlsf82 commented 2 months ago

I agree with this sentiment. There are a lot more people than you think using xpath.

I can imagine.

AndradeJV commented 2 months ago

I agree with you Walmyr and I think should interesting this rule!