Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix linting errors #527

Closed
kfarr opened this issue May 21, 2024 · 8 comments
Closed

fix linting errors #527

kfarr opened this issue May 21, 2024 · 8 comments
Assignees

Comments

@kfarr
Copy link
Collaborator

kfarr commented May 21, 2024

there are many linting errors that require manual work to fix them

@kfarr kfarr moved this from Backlog (Not Ready) to To Do - High Prio in 3DStreet Dev Tracking May 21, 2024
@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in 3DStreet Dev Tracking May 21, 2024
@Algorush
Copy link
Collaborator

Algorush commented May 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}`);
}

@vincentfretin
Copy link
Collaborator

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.

@Algorush
Copy link
Collaborator

Algorush commented May 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.

@vincentfretin
Copy link
Collaborator

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?

@Algorush
Copy link
Collaborator

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\"",

@vincentfretin
Copy link
Collaborator

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

@Algorush
Copy link
Collaborator

Algorush commented May 26, 2024

Its is done: #530

@kfarr kfarr moved this from To Do - High Prio to Done in 3DStreet Dev Tracking May 27, 2024
@kfarr
Copy link
Collaborator Author

kfarr commented May 27, 2024

closed by #530

@kfarr kfarr closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants