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

Get lint running #22

Closed
jessegreenberg opened this issue Jan 30, 2023 · 5 comments
Closed

Get lint running #22

jessegreenberg opened this issue Jan 30, 2023 · 5 comments
Assignees

Comments

@jessegreenberg
Copy link
Contributor

We would like lint to work in this repo. There is some lint support form the original project, but when we tried to run it it didn't work. We could figure out why. But even better, we should see if we can use PhET's lint rules in this repo.

@brettfiedler
Copy link
Contributor

JB indicated he wanted to work on this, so elevating the priority.

@brettfiedler
Copy link
Contributor

We confirmed synchronously that the work completed yesterday passes on my machine after a npm update and npm run lint. More work to align with part of PhET's config happening now.

@jbphet
Copy link
Contributor

jbphet commented Mar 16, 2023

As @BLFiedler noted above, we have a working and reasonably useful lint setup working. I set this up independently of the PhET lint configuration because I did a quick check with the PhET config, and there were tons of fails. However, after giving it more thought, it's worth a bit more investment of time to make the PhET configuration work and just disable a bunch of the rules that the legacy code won't pass, and to clean up the legacy code to work with some of the rules that I don't want to disable. This will make the code in this repo more consistent with PhET's standards and will also work better with the IDE setups. I'll invest an hour or tow in this and see where I get.

@jbphet
Copy link
Contributor

jbphet commented Mar 16, 2023

I was able to get the PhET setup for ESLint working. I touched a lot of code while doing this, so we will need to keep an eye out for any unintended consequences.

This should put us in a position where other developers can jump in more easily, since the code will look stylistically similar to what they are used to. It should also help us to avoid bugs while extending this.

@jbphet
Copy link
Contributor

jbphet commented Mar 21, 2023

This has been working well for several days now, and I think we can close it.

@jbphet jbphet closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants