Git Product home page Git Product logo

Comments (8)

Algorush avatar Algorush commented on September 23, 2024

Now eslint is configured more strictly. Therefore, I will list some controversial points that had to be made.

  • About different versions of json-utils. I think we can leave only last one now? I deleted the rest.
  • In index.js I commented:
if (typeof VERSION !== 'undefined') {
  console.log(`3DStreet Version: ${VERSION}`);
}

from 3dstreet.

vincentfretin avatar vincentfretin commented on September 23, 2024

Yes keep only json-utils_1.1.js that's the one used, you can remove the other versions.

Keep the 3 lines, just add /* global VERSION */ on top. webpack is setting this VERSION variable.

from 3dstreet.

Algorush avatar Algorush commented on September 23, 2024

Yes keep only json-utils_1.1.js that's the one used, you can remove the other versions.

Keep the 3 lines, just add /* global VERSION */ on top. webpack is setting this VERSION variable.

Ok, thanks. I have problems running the command in my localhost: npm run lint. I'm looking for the reason, but perhaps anyone knows what this could be related with?

No files matching the pattern "'src/**/*.js'" were found.
Please check for typing mistakes in the pattern.

Although I run it from 3DStreet root dir.

from 3dstreet.

vincentfretin avatar vincentfretin commented on September 23, 2024

That's weird. Which OS are you using? Windows?
Can you try to change the lint command to eslint --ext .js,.jsx src to see if that helps?

from 3dstreet.

Algorush avatar Algorush commented on September 23, 2024

That's weird. Which OS are you using? Windows? Can you try to change the lint command to eslint --ext .js,.jsx src to see if that helps?

Yes, windows. The problem went away when I removed the quotes here: 'src/**/*.js'
Or if escape double quotes, it will work on unix/windows, as chatGPT says:
"lint": "eslint \"src/**/*.js\" \"src/**/*.jsx\"",

from 3dstreet.

vincentfretin avatar vincentfretin commented on September 23, 2024

Ok, let's change the command to eslint --ext .js,.jsx src there is no quotes in it.

from 3dstreet.

Algorush avatar Algorush commented on September 23, 2024

Its is done: #530

from 3dstreet.

kfarr avatar kfarr commented on September 23, 2024

closed by #530

from 3dstreet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.