Skip to content

Commit c843f31

Browse files
committed
naming convention for default import
closes #101
1 parent 8a5e418 commit c843f31

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

js/red-javascript-style-guide/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Put them at the top of the file as they will be executed first. Put exports befo
280280
export { y };
281281
import { x } from "./x.js";
282282
import * as z from "./z.js";
283-
283+
import FastAverageColor from "fast-average-color/dist/index.esm.js";
284284

285285
const y = 5;
286286
```
@@ -554,7 +554,9 @@ Optionally Pascal case for creator/constructors.
554554

555555
Optionally all caps with underscores for top level constants that do not change across versions and runs.
556556

557-
Package/module names and script names with lowercase with dashes. No dots.
557+
Package/module names and script names with lowercase with dashes. No dots.
558+
559+
Default imports use the same letters as the package name.
558560

559561
#### Examples
560562

0 commit comments

Comments
 (0)