facebook

space indentation expected (indent)

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

    Dale
    Participant

    After updating, each is highlighted yellow with the warning: ‘space indentation expected (indent)’ how to fix?

    This either happens when the file opens or when i format (ctrl + shift + f)

    • This topic was modified 5 years, 6 months ago by Dale.
    • This topic was modified 5 years, 6 months ago by Dale. Reason: added more info
    Attachments:
    You must be logged in to view attached files.
    #615648 Reply

    support-swapna
    Moderator

    Dale,

    If you are using tabs instead of spaces in the Typescript file, then you can turn off the warnings by adding the below rule to the project’s tslint.json :

    "indent": [
      true,
      "tabs",
      4
    ]

    Please also see this reference : https://palantir.github.io/tslint/rules/indent/

    Hope this helps. Please let us know how it works for you.

    –Swapna
    Genuitec Support

    #616073 Reply

    Dale
    Participant

    Hi

    I was still seeing the error after adding in the tslint config? I’ve switched to use spaces instead and the problem has gone.

    Thanks
    Dale

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: space indentation expected (indent)

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