Open nomego opened 8 years ago
Still an issue in 2.0, and one that we intend to solve.
Great! Anyone working on it, anything that can be done to help?
Any update on this @rictic ?
Related to #509
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If you choose to split up Polymer component markup and JavaScript (as we do), you end up with a
my-element.html
with a<script src="my-element.js"></script>
reference, completing the component.However, when then developing said component's JavaScript file, with (for example) https://github.com/nomego/SublimeLinter-contrib-polylint, polylint will not know where to find the actual
dom-module
specification.It would therefore be nice to have some way of declaring this relationship from both files, and the proposed way of doing that (by @garlicnation in a Slack chat from October) is by some "JSDoc trickery" such as
@importedBy my-element.html
in the JavaScript file.Useful suggestion for default value approaches for
@importedBy
(enabled by a flag somewhere?) would be to:my-element.js
and finds aPolymer({ is: 'x' })
call, it could look for a file calledmy-element.html
my-element.js
and finds aPolymer({ is: 'x' })
call, it could look for a file calledx.html