Closed pdehaan closed 9 years ago
Added and published
Nice! Left a comment https://github.com/rrdelaney/jadelint/commit/1aac5455e38c89e58dd7aa9f76bac591943981c0#commitcomment-12596787 (re: path.join()
)
Here's my current output (which shows the double "//" in the path since I tried linting views/
):
➜ idea-town git:(master) ✗ npm run jadelint
> idea-town@0.0.1 jadelint /Users/pdehaan/dev/github/idea-town
> jadelint views/
views//includes/header.jade
✖ line 2 Only use UTF-8 as charset
views//layout.jade
✖ line 1 Only HTML doctypes are allowed
✖ 2 warnings
I added your fix
I tried running jadelint@0.2.3 against my views/ directory and got the following error:
Not sure if you need to add a couple more checks to src/jadelint.coffee to see if the filename is a file or directory before trying to call
fs.readFileSync()
.Workaround: