You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can HTMLHint be used with angular and other frameworks? #228
bot:staleIssue marked as stale because there was no activityenhancementFunctionality that enhances existing featurestriageAn HTMLHint team member will look at this issue
When I ran the the HTMLHint tool on an angular project, it gave an issue saying "ng-app must be in double quotes". Does this mean that HTMLHint can only be run for pure HTML files?
Reacted by Kevin, Chris Marx, Junior Dussouillez, Tim Schmidt and Jeroen van Warmerdam
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.
bot:staleIssue marked as stale because there was no activityenhancementFunctionality that enhances existing featurestriageAn HTMLHint team member will look at this issue
Activity
Shinigami92 commentedon Jan 16, 2018
Here my .htmlhintrc for AngularJS projects
{ "attr-lowercase": true, "attr-no-duplication": true, "attr-unsafe-chars": true, "attr-value-double-quotes": true, "doctype-first": false, "doctype-html5": true, "id-class-ad-disabled": true, "id-class-value": "dash", "id-unique": true, "inline-style-disabled": false, "space-tab-mixed-disabled": "tab", "spec-char-escape": true, "src-not-empty": true, "style-disabled": true, "tag-pair": true, "tag-self-close": false, "tagname-lowercase": true, "title-require": true, "csslint": { "display-property-grouping": true, "known-properties": true }, "jshint": {} }Just put this content in an .htmlhintrc in your project's directory
Maybe install a plugin for your IDE/Editor and it will recognize this file
scipper commentedon Jun 8, 2018
what about expressions in
idfor example? When I lint this code:<div id="{{ navigationItem.id }}"></div>the error
is thrown. When I have an expression like:
<span>{{ $ctrl.timer > 0 ? 'A' : 'B' }}</span>I get
This is really annoying, because it's valid AngularJs.
AbdealiLoKo commentedon May 2, 2019
I just evaluated this on a angular project I have and based on the false positives I saw, the following works for me:
feat(htmlhint): add RegExp and regex string
feat(htmlhint): add RegExp and regex string (#346)
feat(htmlhint): add RegExp and regex string (#346)
Merge develop <> Master (#366)
stale commentedon May 14, 2020
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.
WuglyakBolgoink commentedon Jan 11, 2021
Hallo @AbdealiJK
since last month I have some problems with
spec-char-escapeand in my template we have something like this
do u have the same problems now?