Add eslint config file (eslintrc) to Vue project

If you created Vue project via vue create my_proj and had eslint enabled in the options, You should get a .eslintrc.js in the root folder. Sometimes, I have seen it isn’t created. Worry not, here is how you can generate it manually.

Make sure you have eslint module in node_modules folder.

Then in console, do this: (from your project root directory):
./node_modules/eslint/bin/eslint.js --init

that’s it. You will have to walk through a bunch of options, and then .eslintrc.* (.js , .json or whatever format you chose in options) will be there in your project root.




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *