Sublime Forum

Sublime LInter Disable doctype error

#1

I have many pages which are loaded via ajax and do not include doctype Declaration therefore these pages shows an error from the linter. I have package sublime Linter and also prettier.

error htmlhint Doctype must be declared first.

Would appreciate someone explaining how I can disable the error check for the doctype declaration.
Thanks
Paul.

0 Likes

#2

You can disable the error in a htmlhint configuration file .htmlhintrc in the root of the project
with the following stanza:

{
  "doctype-first": false
}


0 Likes

#3

Thank you.

0 Likes