angularjs-styleguide icon indicating copy to clipboard operation
angularjs-styleguide copied to clipboard

index.js (index.ts) usage

Open jkjustjoshing opened this issue 8 years ago • 0 comments

In the TypeScript styleguide, you mention that "Use index.ts for the module definition file, so you can import the module by directory name", but then go on to use componentName.module.ts as the module file name. Do you recommend using index.ts (or index.js for ES6+ projects) or componentName.module.ts/js?

I personally like index.js, but it's only mentioned in passing in the TS style guide and not at all in the JS style guide, so my guess is you'll respond to this by removing the reference to it in the TS guide.

Thanks!!

jkjustjoshing avatar Jun 14 '17 15:06 jkjustjoshing