Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for outputReport, similar to eslint-loader #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
mattlewis92 merged 16 commits into htmlhint:master from colinwkirk:master
Dec 16, 2016

Conversation

@colinwkirk
Copy link
Contributor

@colinwkirk colinwkirk commented Dec 14, 2016

eslint-loader has support for outputReport, which is very useful. It also provides easy access to the filepath being examined by adding it to the message. With these you could use something like

module.exports.htmlhint.outputReport = {
filePath: '../htmlhint.rpt',
formatter: require(path.join(__dirname, 'mycustomformatter')),
};

in your webpack.config.js to use your own custom formatter to output the results to a file.

Copy link
Member

This looks really nice, thanks! Would you mind adding a test for the new functionality and documenting it in the readme (copy paste from eslint-loader is fine! 😄)

Copy link
Contributor Author

Done. Not sure about the test, I only come to JS on occasion and am not terribly familiar with mocha.

Copy link
Member

FYI you can run the linter locally via npm run lint :)

Copy link
Contributor Author

But where's the fun in that when you can just test in production? ;)

Copy link
Member

image

😃

colinwkirk reacted with thumbs up emoji

Copy link
Member

Amazing, thank you! I will review, merge and cut a new release tomorrow with this change 👍🏻

colinwkirk reacted with hooray emoji

Copy link
Contributor Author

Thanks.

Copy link
Contributor Author

Added a small update, I'd forgotten to update the paths in the README from eslint to htmlhint. Only change in the last update...glad you hadn't merged yet. :)

Copy link
Contributor Author

And last update for now, added the ability to use -[name] in the filePath for the output. Otherwise you'll only get one output file, no matter how many files are linted.

If you could get this reviewed and merged fairly soon, that would be really useful.

Copy link
Member

mattlewis92 commented Dec 15, 2016 via email

Sorry didn't have time to review this today, I normally devote my Friday afternoons at work to open source so am 90% I will get it done then unless something urgent comes up 😀
...
On 15 Dec 2016, at 19:36, Colin Kirk ***@***.***> wrote: And last update for now, added the ability to use -[name] in the filePath for the output. Otherwise you'll only get one output file, no matter how many files are linted. If you could get this reviewed and merged fairly soon, that would be really useful. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
colinwkirk reacted with thumbs up emoji

@mattlewis92 mattlewis92 merged commit 5215d0f into htmlhint:master Dec 16, 2016
Copy link
Member

Published as 1.1.0, thanks for the contribution! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /