-
Notifications
You must be signed in to change notification settings - Fork 14
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
Commented out lint rules #734
Comments
I flip that rule on temporarily sometimes during code reviews. But it is now deprecated and ESLint is dropping support for it, see https://eslint.org/docs/rules/valid-jsdoc |
I also see:
Mainly I want to know if we should do one of three things:
|
I've pulled the commented out rules into a dedicated file, and added it to the code review checklist. @zepumph can you please review? |
Looks great! |
Reopening. Slack developer channel: Chris Malley [4:30 PM] So for my first experience with this… Lots of noise, lots of busy-work, zero benefit so far. Michael Kauzmann [4:32 PM] |
In my single experience with this (phetsims/gas-properties#114), it identified no real problems, and only generated busy work. Some rules don't even match PhET conventions. 'no-use-before-define' is generating a lot of noise because it's PhET convention to define private functions after the class definition. I'd like to hear other developers' experiences. |
|
In #765 @jessegreenberg said: One of the steps in the code review checklist is
When I ran it for gravity-force-lab-basics it identified a number of lint issues mostly related to line length. We determined that these don't need to be fixed. Should the line length check be changed for sim_es6_eslintrc_review? It also flagged
I am not sure I understand the purpose of this check - since it is for es6 are we hoping that all es6 sims will pass these rules? Or is this just a way to flag things that might be problems. @samreid and @zepumph are listed as authors, what do you think? |
The *_review.js rules were intended to flag things that might be problems. But it sounds this supplemental eslint file is more trouble than it is worth. I recommend we move any desirable rules to the main eslint file and delete this one. |
+1 for moving desirable rules to the main eslint file and deleting sim_es6_eslintrc_review.js. |
Another +1 for moving desirable rules to the main eslint file. I am currently working through the code review checklist for "Gas Properties", and the item containing "Does linting with "sim_es6_eslintrc_review.js" reveal any problems that should be fixed?" feels like a waste of time. There is a rule |
Tagging for developer meeting to confirm exactly which rules we want to move to the main eslint file. I recommend to move the following rules:
Note that build-a-molecule/js/model/data/otherMoleculesData.js will need a file-oriented disable. |
eslint review file removed, trailing whitespace rule added, offending files addressed. Will monitor CT for a bit and close if all is clear. |
CT seems clear, closing. |
remove sim_es6_eslintrc_review from checklist, phetsims/chipper#734
While working on cleaning up phetsims/tasks#972, I saw
And wondered if we wanted to investigate this at all, or just delete it. @samreid do you have any insight?
The text was updated successfully, but these errors were encountered: