DEV Community

Cover image for Question for EsLint lovers
Edgaras Stepanovas
Edgaras Stepanovas

Posted on • Updated on

Question for EsLint lovers

Hello Everyone! :)

Soo recently, I began using Eslint, and of course, it's a life saver.
I'm currently trying to learn how to set custom rules in Eslint, one of which is that I want my "img:src="cdn.""
to always contain a CDN letters in it. I'm using Vue as my frontend framework.
The issue is that I want to utilize CDN to store all of my photos and use them this way for better SEO and time to content, but other developers occasionally contribute to this project, thus I need a custom rule that only permits CDN as an image source.
Can somebody offer some advice on how to get it done?
Thanks in Advance!

Top comments (0)