Skip to content

Commit c8442b4

Browse files
committed
[modules] add link to @reissbaker's explanation of bangs, cat, ASI, and newlines
1 parent a0cefb8 commit c8442b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@
12701270
12711271
## <a name='modules'>Modules</a>
12721272
1273-
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated.
1273+
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated. [Explanation](https://github.com/airbnb/javascript/issues/44#issuecomment-13063933)
12741274
- The file should be named with camelCase, live in a folder with the same name, and match the name of the single export.
12751275
- Add a method called noConflict() that sets the exported module to the previous version and returns this one.
12761276
- Always declare `'use strict';` at the top of the module.

0 commit comments

Comments
 (0)