Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

ESLINT errors


I'm getting thousands of errors when trying to setup eslint properly. I didn’t find anything in the documentation.

I followed the steps and installed the theme using "npm install", but when I do "npm run serve" I get a message saying the eslintrc file is missing.

I tried to do "eslint --init" and setup the file but it always gives me a lot of errors.

Could someone please explain to me how to setup eslint at Metronic 8 Vue?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (8)


Hi Fernando,

Could you please specify which Metronic version are you using?

Also please attach a text of your error message?



I'm using Metronic 8 and I'm getting the following error:

"No ESLint configuration found"



ESLint configuration is included in the default package in the latest Metronic v8.0.38.

Do you have .eslintrc.js file in your demo folder?

Have you modified anything in our codebase?



I took all the files inside the demo1 folder, copied them to my project frontend folder.

I tried "yarn install" and "npm install" but both of them when I try to serve, get this same message.

ERROR Failed to compile with 1 error 17:04:16

error

No ESLint configuration found in /Users/fernandolangaro/Downloads/Programacao/futuroxapp/frontend/src.

ERROR in No ESLint configuration found in /Users/fernandolangaro/Downloads/Programacao/futuroxapp/frontend/src.

webpack compiled with 1 error



Folder structure looks like this:
https://ibb.co/P1QztvG



Hi,

It looks like you didn't copy all the required files.

Files like .eslintignore, .eslintrc.js, .env, and .gitignore are hidden by default but these files are required for the theme to work correctly.


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.

I wasn't copying the hidden files... problems solved!



Hi Fernando,

Glad to hear that, all the best with your project.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(