How to enforce a rule on importing path using alias by ESLint

Viewed 138

I want to setup a rule which will replace the dependency of using (../../js/fileName.js) this kind of style while importing any file from other path.

We need to enforce a rule so where ever we put '../../path' it will give a linting error to change it into '@/path/' like this.

Is there anyone worked before with this issue? Any suggestion will be helpful.

0 Answers
Related