This linter plugin for Linter provides an interface to htmlhint. It will be used with files that have the syntax.
Linter package must be installed in order to use this plugin. If Linter is not installed, please follow the instructions here.
$ apm install linter-htmlhint
This plugin will search for a htmlhint configuration file called .htmlhintrc
and use that file if it exists anywhere in the directory tree. It will stop at the first .htmlhintrc
file found.
If you are developing or testing this plugin, it's easy to load using apm link
First make sure you don't have linter-htmlhint installed.
apm uninstall linter-htmlhint
Clone this repository and then from the linter-htmlhint directory:
npm install
apm link
You can reload Atom with ctrl+opt+cmd+l
and to open the inspector opt+cmd+i
.
To put it all back:
apm unlink
apm install linter-htmlhint
You can configure linter-htmlhint by editing ~/.atom/config.cson (choose Open Your Config in Atom menu):
'linter-htmlhint':
'htmlhintExecutablePath': null #htmlhint path. run 'which htmlhint' to find the path
If you would like to contribute enhancements or fixes, please do the following:
- Fork the plugin repository.
- Hack on a separate topic branch created from the latest
master
. - Commit and push the topic branch.
- Make a pull request.
- welcome to the club
Please note that modifications should follow these coding guidelines:
- Indent is 2 spaces.
- Code should pass coffeelint linter.
- Vertical whitespace helps readability, don’t be afraid to use it.
Thank you for helping out!