0

I would like to add a linter for an existing Google Chrome extension project, is there any chance to add a linter for this kind of project?

Instead of package.json I have manifest.json, so when I run npm init @eslint/config, I have an error saying I need to have package.json.

  • You can use and config eslint for extensions the same way it's done for any other type of project. There's nothing specific for extensions that you need to configure (manifest.json is unrelated). If there's an error you should add it to the question. – wOxxOm Dec 07 '22 at 12:18
  • Judging by the error all you need is [create package.json](https://www.google.com/search?q=how+to+create+package.json). – wOxxOm Dec 07 '22 at 12:47
  • @wOxxOm is it okay to have both manifest.json and package.json in Google Chrome extension project? – Таня Біланюк Dec 07 '22 at 13:05
  • Of course it's okay. These files are completely unrelated. – wOxxOm Dec 07 '22 at 13:23

0 Answers0