-
Notifications
You must be signed in to change notification settings - Fork 160
Reformat code to follow standard #1242
Comments
Hey @Gozala , I'm going to work on this. But just to be sure, you prefer one PR for each file, right? It would be a lot easier if I submit a PR for each directory of files. What do you think? |
Thanks that would be really great!
If it's just formatting changes (as it should be) I don't mind multiple files or even all files in one PR.
Only reason I think file by file PRs would be better though is because that would reduce possibility of merge conflicts. |
The command isn't
A quick tip to easily move all the commas at the end of the previous line, if you're using vim: |
Ok so once #1241 lands we'll be linting all new code to comply with standard style. Unfortunately automatically reformatting all of the existing code tracked by #1238 seems far from trivial task and still unclear if it's a worthy effort.
Alternative approach would be to just run a lint file by file and address errors programmatically or manually. As far as I can tell
eslint --fix ./path/to/file.js
seems to address majority of errors, but not the comma first issues (see eslint/eslint#6941).This is also maybe an easy first contribution patch. In case you want to contribute to this issue you should:
.eslintignore
file.Note: This way we can gradually reformat our code.
P.S: No need to reformat stuff in
src/About/Newtab/Demos/
as that code is not maintained in this repo.The text was updated successfully, but these errors were encountered: