Open marianfoo opened 3 weeks ago
This is a very reasonable enhancement.
We could also add support for projects of type module
. But from what I can see this still wouldn't help you since your ui5.yaml
only refers to the build result and not the sources (which you would probably want to lint).
I think i need to change my type in the ui5.yaml anyway, because application fits better to my project, right?
I think this is yet another case where the Component type would be a good fit: https://github.com/SAP/ui5-tooling/issues/45
Thanks for reporting!
Thank you for confirming the enhancement.
I know the issue and just now remember what I wanted to ask you at UI5con: When is the Component Type coming? 😃 Would be perfect for 4.0 😉
Would be great to see it in 4.X :) If you need any help or testing this feature just shout out
Internal reference: CPOUI5FOUNDATION-855
Is your feature request related to a problem? Please describe.
I´d like to run the ui5-linter for my Component. Out of the box this does not work because of the
type: module
in myui5.yaml
file. Because of this i think this is more a feature request then bug.Recreate the problem:
Output when i run
ui5lint
:Error comes from https://github.com/SAP/ui5-project/blob/a085232514ebdd8ad11f5fd49323b0c0bb5c240b/lib/specifications/types/Module.js#L31
Describe the solution you'd like
I use the middleware
ui5-middleware-ui5
to use the Component in my UI5 App, so use a special yaml file for this anyway ui5-serve.yaml change the type toapplication
.Most simple solution would that there would be a option so i can use the
ui5-serve.yaml
instead of the defaultui5.yaml
. I did not see the option in the cli yet. Something likeui5lint --configFile ui5-serve.yaml
Additional context
I think i need to change my type in the
ui5.yaml
anyway, becauseapplication
fits better to my project, right? Either way, a option to change the default yaml file would be great