Tidy some linting code in mail/components
Categories
(MailNews Core :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
Details
Attachments
(1 file, 3 obsolete files)
|
65.02 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Updated•7 years ago
|
| Assignee | ||
Comment 9•7 years ago
|
||
| Assignee | ||
Comment 10•7 years ago
|
||
(In reply to Ben Bucksch (:BenB) from comment #4)
Is it possible to put the "import-globals-from" all in one line, instead of
making 12 lines for that?
No, it doesn't support that, which is sad.
+var {
- cleanUpHostName,
- isLegalHo
This is massively ugly. Could you please leave this as it was before?
I don't disagree it's ugly. It's how we're doing things for now. That JSM is one of the most annoying examples and is high on my list of things to fix.
(In reply to Ben Bucksch (:BenB) from comment #7)
This is a JSDoc function documentation. If you put eslint directives between
the function signature and the comment right above it that documents the
function, it breaks the JSDoc parser and any other JavaDoc-based
documentation parser.
I forgot about that, so I've gone back and fixed the other places I made the same mistake.
Comment 11•7 years ago
|
||
Hey Goeff,
thanks for the responses.
Could you please also revert |if| change mentioned in comment 5/6 and the sanitizeDataTypes.js imports?
I don't disagree it's ugly.
Can you please just leave it as-is? It's not a problem to import all symbols from the module.
If you absolutely want to import only selected symbols, please put it in all in one line. If eslint doesn't allow it, please adapt the role globally, because that should be possible.
[JSDoc]
I've gone back and fixed the other places I made the same mistake.
Thank you! :)
Comment 12•7 years ago
|
||
Could you please also revert |if| change mentioned in comment 5/6
Ah, I see you did that. Thank you!
Leaves the 2 comments:
- Keep sanitizeDatatypes.js imports local / autonomous (comment 7 part 2)
- Keep all imports on a single line (comment 11)
| Assignee | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Comment on attachment 9036232 [details] [diff] [review]
1517664-eslint-again-3.diff
Thanks, Geoff.
Comment 15•7 years ago
|
||
| Assignee | ||
Comment 16•7 years ago
|
||
Up to you if you read this again or just look at the interdiff, but I know which I'd do. :)
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/881cf0d594f2
Tidy some linting code in mail/components; r=aceman
| Assignee | ||
Comment 19•7 years ago
|
||
It seems I upset the delicate balance of circular import-globals-from references. Added a few more to fix.
Description
•