facebook

Disabling Attribute lower case for html files

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #589872 Reply

    Matt Compton
    Participant

    How can I disable the warning for attributes in html files? All the angular attributes/directives are not in a lower case and it keeps me giving warnings for those, how can I disable it?

    #589880 Reply

    timwebb
    Keymaster

    From here:
    https://github.com/Microsoft/vscode-htmlhint/issues/13

    If you open your settings.json in Preferences : CodeMix : Workspace Settings — then choose to open the “settings.json” editor, you can then paste in the snippet suggested.

    Please let us know if this helps! I apologize that I don’t have time to check if this works but it is the same extension that provides HTML validation in CodeMix so I’m confident it will. Good luck and happy weekend!

    #589960 Reply

    Matt Compton
    Participant

    It works. Thanks

    #590822 Reply

    Matt Compton
    Participant

    Hi,

    How can I disable “Component must have a template or templateUrl” error in the component.ts file? I am building my app on rails and angular6, so all the HTML and CSS is built through web pack, hence my @component doesn’t contain “templateUrl”. But if I don’t add templateUrl then my IDE is giving error above mentioned error, how can I disable it?

    #590878 Reply

    support-swapna
    Moderator

    Matt,

    Can you tell us if you’re doing something like this: https://github.com/angular/angular/issues/23553
    Just trying to understand exactly how you’re developing your components and whether this is something new that Angular 6 adds (I couldn’d find this with a quick search).

    Unfortunately, at this point I can’t suggest a workaround that would prevent the validator from showing this message, but we’ll be looking into this issue.

    #590942 Reply

    Matt Compton
    Participant

    Hi,
    Yes, I am using require to load the template and it gives me that error, however, my application runs fine. I just want to “ignore” that error.

    • This reply was modified 5 years, 9 months ago by Matt Compton.
    #591511 Reply

    Brian Fernandes
    Moderator

    Matt,

    I just wanted to add that this stems from the Angular language services not supporting require: https://github.com/angular/vscode-ng-language-service/issues/165

    We’ll look at what options are available to us.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Disabling Attribute lower case for html files

You must be logged in to post in the forum log in