Basically, the rule is rewritten as the previous one did not work
as expected. The behaviour now is what previously was intended.
More cells are checked. When compact, everything but the biggest
cell is ignored (as shorter cells may be padded for aligning fences).
Empty body- and heading cells are also handled properly.
Finally, there’s a better message when `'padded'`, if the biggest
cell is padded more than required.
Closes GH-108.
Closes GH-97.
Previously, severities could be passed in as numbers,
for example: `[1, 80]`. This commit introduces support
for passing in these severities as strings. Thus adding
the right most column:
| Type | Off | Warning | Error |
| ------- | ------- | ---------------- | --------- |
| boolean | `false` | `true` | |
| number | `0` | `1` | `2` |
| string | `'off'` | `'on'`, `'warn'` | `'error'` |
> Note that strings cannot (currently) be passed in
> directly: they must be wrapped in an array: `'error'`
> does not work, `['error']` does.
Previously, the `table-cell-padding` rule messaged about empty cells.
This commit removes those messages, thus ignoring blank cells in
warnings.
Closes GH-104.
Closes GH-81.
This adds proper support for presets in **remark-lint**.
This is a big one: **remark-lint** no longer does anything
without you telling it to.
* Update internals, docs, examples, to turn `reset`
on by default;
* Refactor project to monorepo;
* Move library to `./packages/remark-lint`;
* Add the following preset packages:
* `remark-preset-lint-consistent`;
* `remark-preset-lint-recommended`;
* `remark-preset-lint-legacy`.
If you’re using the CLI, please add one or more of these presets
to your configuration file.
On the API, note that presets are node modules, so it’s possible
to `require` them as well.
Previously, messages could be either turned on (as warnings), or
turned off. This update adds support for setting these through an
integer (`1` and `0` respectivly), in array form:
```js
remark().use(lint, {finalNewline:[0]});
```
Additionally, the integer `2` can be passed to turn a message into
a fatal error:
```js
remark().use(lint, {maximumLineLength: [2, 72]});
```
Closes GH-65.
This new feature adds support for allowing missing blank lines between
block-level nodes in lists, through passing `{exceptTightLists: true}`
to `no-missing-blank-lines` (default: false).
Closes GH-85.