question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

esdocs ignores unnamed exports like `export default `

See original GitHub issue

I am trying use esdocs for Ember apps. Ember doesn’t uses class anywhere yet and all the import/exports are basically dealing with objects and when I run esdoc on the project it just ignores everyting. e.g below is a helper from project .

./addon/helpers/format-date-from-now.js

export default Ember.Helper.helper(function (params, hash) {
  let [value] = params;
  let withoutSuffix = hash.withoutSuffix;
  if (value) {
    return moment(value).fromNow(withoutSuffix);    
  }
});

esdocs.json

{
  "source": "./addon",
  "destination": "./out/esdoc"
}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
dougdomenycommented, Jan 17, 2018

esdoc’s esdoc-standard-plugin has an option to document unexported identifiers. You may also with to disable undocumented identifiers.

  "plugins": [
    {
      "name": "esdoc-standard-plugin",
      "option": {
        "undocumentIdentifier": { "enable": false },
        "unexportedIdentifier": { "enable": true },
0reactions
noahbenhamcommented, Dec 16, 2016

IMO this is a major project flaw that needs to be fixed. I would like to use esdoc but without supporting this, I won’t be able to.

Edit: I’m now using esdoc-node which is alleviating this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I get rid of the warning import/no-anonymous-default ...
I get the warning in the consle:"Assign object to a variable before exporting as module default import/no-anonymous-default-export.".
Read more >
Releases - ESDoc
Support anonymous class/function export (#13). export default class{} and export default function(){}. Show a detail log when ESDoc could not process a ...
Read more >
no-restricted-exports - ESLint - Pluggable JavaScript Linter
Rule Details. This rule disallows specified names from being used as exported names. Options. By default, this rule doesn't disallow any names.
Read more >
Configuring Jest
The configuration file should simply export an object: ... module.exports = config; ... Node.js core modules, like fs , are not mocked by...
Read more >
TSConfig Option: allowSyntheticDefaultImports - TypeScript
When the module does not explicitly specify a default export. For example, without allowSyntheticDefaultImports as true: ... module . exports = {.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found