gulp-htmlhint icon indicating copy to clipboard operation
gulp-htmlhint copied to clipboard

Improve .htmlhintrc handling

Open bezoerb opened this issue 9 years ago • 1 comments

currently the .htmlhintrc needs to be specified relative to the project root.

Maybe something like this would be much nicer:

  • Try to autodetect file based on the current filepath up to the project root
  • When file is found -> use (no explicit htmlhintrc setting needed)
  • When file is specified, use specified one
  • Specified rules will overwrite rules in .htmlhintrc

bezoerb avatar Apr 09 '15 20:04 bezoerb

I think it should follow what eslint does.

eslint has a root rc, then sub rc files can override the root or compliment it. A top-down approach.

ghost avatar Apr 09 '15 22:04 ghost