pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/airbnb/javascript/pull/3072

"https://github.githubassets.com/assets/actions-902e75f4f51a80db.css" /> ISSUE#3032 by JASH9898567 · Pull Request #3072 · airbnb/javascript · GitHub
Skip to content

ISSUE#3032#3072

Draft
JASH9898567 wants to merge 2 commits intoairbnb:masterfrom
JASH9898567:galaxy
Draft

ISSUE#3032#3072
JASH9898567 wants to merge 2 commits intoairbnb:masterfrom
JASH9898567:galaxy

Conversation

@JASH9898567
Copy link
Copy Markdown

@JASH9898567 JASH9898567 commented Dec 15, 2024

Made some changes such as-

  1. export const MY_CONSTANT = 'should obviously not be uppercased' . In place of THING_TO_BE_CHANGED, it created unnecessary confusion as export const is not going to change across different files.

  2. Another is an example of //good coding in README - export const MY_EXPORTED_FUNCTION = () => {
    return 'hello function';
    }; . As no example of this was already available in file.

Fixes #3032.

Comment thread README.md Outdated
Comment on lines +3187 to +3189
export const MY_EXPORTED_FUNCTION = () => {
return 'hello function';
};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the indentation on this is incorrect, and there's no reason for this to be an arrow function, so it shouldn't be:

Suggested change
export const MY_EXPORTED_FUNCTION = () => {
return 'hello function';
};
export function MY_EXPORTED_FUNCTION() {
return 'hello function';
};

but also this example has nothing to do with dangling commas, which is the section you've placed it in

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still doesn't make any sense in this section.

@ljharb ljharb marked this pull request as draft December 16, 2024 00:03
Co-authored-by: Jordan Harband <ljharb@gmail.com>
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

Successfully merging this pull request may close these issues.

Incorrect constant export example

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy