|
1 |
| -SublimeLinter-contrib-htmlhint |
2 |
| -================================ |
3 |
| - |
4 |
| -<!--- [](https://travis-ci.org/SublimeLinter/SublimeLinter-contrib-htmlhint) --> |
| 1 | +<h1 align="center"> |
| 2 | + <br> |
| 3 | + SublimeLinter contrib HTMLHint |
| 4 | + <br> |
| 5 | +</h1> |
| 6 | + |
| 7 | +<h4 align="center">A SublimeLinter plugin for HTML, using HTMLHint.</h4> |
| 8 | + |
| 9 | +<p align="center"> |
| 10 | + <a href="https://travis-ci.org/htmlhint/SublimeLinter-contrib-htmlhint"> |
| 11 | + <img src="https://img.shields.io/travis/htmlhint/SublimeLinter-contrib-htmlhint.svg" alt="Travis Build Status"> |
| 12 | + </a> |
| 13 | + <a href="https://codecov.io/gh/htmlhint/SublimeLinter-contrib-htmlhint"> |
| 14 | + <img src="https://codecov.io/gh/htmlhint/SublimeLinter-contrib-htmlhint/branch/master/graph/badge.svg" alt="Codecov"> |
| 15 | + </a> |
| 16 | + <a href="https://www.npmjs.com/package/SublimeLinter-contrib-htmlhint"> |
| 17 | + <img src="https://img.shields.io/npm/dm/SublimeLinter-contrib-htmlhint.svg" alt="NPM count"> |
| 18 | + </a> |
| 19 | + <img src="https://badgen.net/badge/license/MIT/green" alt="MIT Licence" /> |
| 20 | + <a href="https://discord.gg/nJ6J9CP"> |
| 21 | + <img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat"> |
| 22 | + </a> |
| 23 | + <a href="http://roadmap.htmlhint.io/roadmap"> |
| 24 | + <img src="https://img.shields.io/badge/check-our%20roadmap-EE503E.svg" alt="Chat"> |
| 25 | + </a> |
| 26 | +</p> |
| 27 | + |
| 28 | +<p align="center"> |
| 29 | + <a href="#install">How To Use</a> • <a href="/CONTRIBUTING.md">Contributing</a> • <a href="http://roadmap.htmlhint.io/">Roadmap</a> • <a href="https://htmlhint.io">Website</a> |
| 30 | +</p> |
| 31 | + |
| 32 | +## Table of Contents |
| 33 | + |
| 34 | +- **[Install](#install)** |
| 35 | +- **[Settings](#settings)** |
5 | 36 |
|
6 | 37 | This linter plugin for [SublimeLinter][docs] provides an interface to [htmlhint](http://htmlhint.com/). It will be used with files that have the “HTML” syntax.
|
7 | 38 |
|
8 |
| -## Installation |
9 |
| -SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions [here][installation]. |
| 39 | +## Install |
| 40 | +SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions [here][install]. |
10 | 41 |
|
11 | 42 | ### Linter installation
|
12 | 43 | Before using this plugin, you must ensure that `htmlhint` is installed on your system. To install `htmlhint`, do the following:
|
@@ -42,30 +73,20 @@ To install via Package Control, do the following:
|
42 | 73 | 1. When the plugin list appears, type `htmlhint`. Among the entries you should see `SublimeLinter-contrib-htmlhint`. If that entry is not highlighted, use the keyboard or mouse to select it.
|
43 | 74 |
|
44 | 75 | ## Settings
|
| 76 | + |
45 | 77 | For general information on how SublimeLinter works with settings, please see [Settings][settings]. For information on generic linter settings, please see [Linter Settings][linter-settings].
|
46 | 78 |
|
47 | 79 | You can configure `htmlhint` options in the way you would from the command line, with `.htmlhintrc` files. For more information, see the [htmlhintrc docs](https://github.com/yaniswang/HTMLHint/wiki/Rules). The linter plugin does this by searching for a `.htmlhintrc` file itself, just as `htmlhint` does from the command line. You may provide a custom config file by setting the linter’s `"args"` setting to `["--config", "/path/to/file"]`. On Windows, be sure to double the backslashes in the path, for example `["--config", "C:\\Users\\Username\\htmlhint.conf"]`.
|
48 | 80 |
|
49 | 81 | The path to the `.htmlhintrc` file is cached, meaning if you create a new `.htmlhintrc` that should have precedence over the previous one (meaning it is closer to the .js file) you need to clear the cache for the linter to use the new `.htmlhintrc` You can clear the cache by going to: Tools > SublimeLinter > Clear Caches.
|
50 | 82 |
|
| 83 | +## LICENCE |
51 | 84 |
|
52 |
| -## Contributing |
53 |
| -If you would like to contribute enhancements or fixes, please do the following: |
54 |
| - |
55 |
| -1. Fork the plugin repository. |
56 |
| -1. Hack on a separate topic branch created from the latest `master`. |
57 |
| -1. Commit and push the topic branch. |
58 |
| -1. Make a pull request. |
59 |
| -1. Be patient. ;-) |
60 |
| - |
61 |
| -Please note that modifications should follow these coding guidelines: |
| 85 | +Project initially created by [@mmaday](https://github.com/mmaday) and transferred to the [HTMLHint](https://github.com/htmlhint) organization. |
62 | 86 |
|
63 |
| -- Indent is 4 spaces. |
64 |
| -- Code should pass flake8 and pep257 linters. |
65 |
| -- Vertical whitespace helps readability, don’t be afraid to use it. |
66 |
| -- Please use descriptive variable names, no abbreviations unless they are very well known. |
| 87 | +<a href="https://htmlhint.io"><img src="https://raw.githubusercontent.com/htmlhint/htmlhint/develop/src/img/htmlhint.png" alt="Logo HTMLHint" width="65"></a> |
67 | 88 |
|
68 |
| -Thank you for helping out! |
| 89 | +[MIT License](./LICENSE) |
69 | 90 |
|
70 | 91 | [docs]: http://sublimelinter.readthedocs.org
|
71 | 92 | [installation]: http://sublimelinter.readthedocs.org/en/latest/installation.html
|
|
0 commit comments