Skip to content

Instantly share code, notes, and snippets.

@viT-1
Last active January 13, 2022 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viT-1/acf80272b364e41ece7d526be6dc7476 to your computer and use it in GitHub Desktop.
Save viT-1/acf80272b364e41ece7d526be6dc7476 to your computer and use it in GitHub Desktop.
#gist-bookmark #eslint #js #esm #export #airbnb

Prefer (or require) named exports from all modules, regardless of how many exports they have! By Thomas Randolph 2019.09.05

Before airbnb-base we can use only one rule: "import/no-default-export": "error" but after airbnb (which want to use default exports) you must to add second rule: "import/prefer-default-export": "off"

Why I've stopped exporting defaults from my JavaScript modules by Nicholas C. Zakas 2019.01.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment