Commit Graph

196 Commits

Author SHA1 Message Date
Greenkeeper
31965b702c Update browserify
Closes GH-118.
2017-01-25 11:50:52 +01:00
Titus Wormer
bb99ccad74 5.4.0 2016-12-17 20:45:55 +01:00
Titus Wormer
5ededd93d2 Fix code-span in docs 2016-12-17 20:45:00 +01:00
Titus
38bf4ce9b9 Fix dash 2016-12-14 21:52:09 +01:00
Richard Littauer
5f024dbe4a Added remark-lint-appropriate-heading to plugins
see https://github.com/wooorm/remark/pull/217#issuecomment-267150813
2016-12-14 21:51:03 +01:00
Titus Wormer
995d529157 Add new rule no-empty-url
Closes GH-109.
2016-12-12 19:53:49 +01:00
Titus Wormer
3e4d99d438 Add new rule no-heading-like-paragraph
Closes GH-107.
2016-12-12 19:39:25 +01:00
Titus Wormer
e340c2c830 Rewrite table-cell-padding with several fixes
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.
2016-12-12 19:16:02 +01:00
Titus Wormer
ce5995a46d Refactor tests to not swallow unknown errors 2016-12-12 19:10:35 +01:00
Titus Wormer
50b1e57627 Add mention of blank-line for control comments
Closes GH-112.
2016-12-03 22:03:47 +01:00
Titus Wormer
34e3cc9ced 5.3.0 2016-11-26 17:04:43 +01:00
Titus Wormer
e22140e643 Update contributors 2016-11-26 16:57:25 +01:00
Titus Wormer
c0bd22472c Update unist-util-position, vfile-sort 2016-11-26 16:54:16 +01:00
Titus Wormer
b032569972 Update strip-indent, nyc 2016-11-26 16:37:02 +01:00
Titus Wormer
e22c797f62 Remove reference to distribution files 2016-11-26 16:36:52 +01:00
Titus Wormer
1e7445d39d Update Node in Travis 2016-11-26 16:35:11 +01:00
Titus Wormer
a69e530e8f Remove history.md
A short changelog is available on GH Releases,
the long changelog is the commit messages.

Closes GH-105.
2016-11-02 10:18:55 +01:00
Titus Wormer
e0f13a2740 5.2.0 2016-11-01 21:09:21 +01:00
Titus Wormer
f113f596c4 Add no-duplicate-headings-in-section rule
This new rule warns when headings exist on the same
level, in the same section.  This rule is not yet in
any preset.

Closes GH-84.
2016-11-01 17:51:46 +01:00
Titus Wormer
1c3f0a3446 Add no-reference-like-url rule
This new rule warns when URLs are also defined
identifiers.  This rule is not yet in any preset.

Closes GH-36.
2016-11-01 17:19:04 +01:00
Titus Wormer
e16665140a Remove superfluous regex escapes 2016-11-01 16:22:28 +01:00
Titus Wormer
a7000bcf4f Add support for string severities
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.
2016-11-01 16:17:57 +01:00
Titus Wormer
2dc4d61f05 Fix table-cell-padding warnings for empty cells
Previously, the `table-cell-padding` rule messaged about empty cells.
This commit removes those messages, thus ignoring blank cells in
warnings.

Closes GH-104.
2016-11-01 15:42:12 +01:00
greenkeeperio-bot
65b8e56d18 Update xo
Closes GH-102.
2016-10-16 12:08:47 +02:00
Titus Wormer
772eaf324b remark-lint: 5.1.0 2016-10-02 12:50:33 +02:00
Сковорода Никита Андреевич
e4640fec96 no-file-name-articles: forbid teh
It is sometimes used as an alternative to "the", so
`no-file-name-articles` rule should also forbid it.

Closes GH-100.
2016-10-02 12:40:02 +02:00
Titus Wormer
3b11ff4a34 Update lerna 2016-09-10 11:51:53 +02:00
Titus Wormer
c09cdea7fa Update logo references 2016-09-09 19:28:47 +02:00
Titus Wormer
b177ac6f40 Use <path> in logo instead of <text> 2016-09-09 19:28:13 +02:00
Titus Wormer
f5b7bd79b9 5.0.1 2016-08-26 12:27:35 +02:00
Titus Wormer
70436d367f Fix ambiguous language 2016-08-26 12:26:45 +02:00
Titus Wormer
bca95306b9 Add readme.md to remark-lint package 2016-08-26 12:24:27 +02:00
Titus Wormer
b8df5e3750 5.0.0 2016-08-22 11:07:50 +02:00
Titus Wormer
78f1d92689 Remove deployment to npm from Travis 2016-08-22 11:06:51 +02:00
Titus Wormer
f5c1227218 Make reset the default
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.
2016-08-22 10:57:20 +02:00
Titus Wormer
6196124599 Update for changes in remark@6.0.0 2016-08-21 23:46:21 +02:00
Titus Wormer
77709f56ac Add support for passing severities
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.
2016-08-15 12:36:55 +02:00
Titus Wormer
9bdd69e653 4.2.0 2016-08-14 20:15:44 +02:00
Titus Wormer
a4085f2664 Add option to allow tight lists in no-missing-blank-lines
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.
2016-08-14 20:03:41 +02:00
Titus Wormer
956f380d86 Update dev-dependencies
Closes GH-86.
Closes GH-87.
2016-08-13 23:44:12 +02:00
Titus Wormer
d7abf05c85 Add better description to list-item-spacing
Closes GH-78.
2016-08-06 14:51:41 +02:00
Titus Wormer
0e178acc71 4.1.0 2016-08-02 23:25:57 +02:00
Titus Wormer
8dedd190c1 Add better external rule support, and refactor module
* Remove requirement for synchronous rules to accept, and
  invoke, a `done` handler;
* Add support for returning promises, generators, from
  rules.

* Add `doc/external.md`, with a description on how to use
  and create external rule packages;
* Add structural fixtures per-rule inline, which are now
  shown in (improved) `doc/rules.md`, and used in testing
  each rule;
* Add contributors to `package.json`;
* Remove history before stable from changelog;
* Refactor tests to use `tape` instead of `mocha`;
* Add automated generation of `rules.js` index;
* Fix incorrect badges.
2016-08-02 22:47:01 +02:00
Titus Wormer
60907ad17e Refactor code-style to use xo 2016-08-02 22:44:50 +02:00
Titus Wormer
d272ff257b Add support for rules as any trough ware 2016-08-01 19:06:05 +02:00
Titus Wormer
31f82b2862 Add load-plugin to load external rules 2016-08-01 18:32:33 +02:00
Titus Wormer
5a70271fdd Update dependencies 2016-08-01 18:09:58 +02:00
Titus Wormer
425328e088 4.0.2 2016-07-06 20:19:37 +02:00
Titus Wormer
7e926561ec Fix infinite loop when using carriage returns
Closes wooorm/remark#195.
2016-07-06 20:17:58 +02:00
John Vandenberg
622540e6fc Fix typo in comparison-to-markdownlint
Closes GH-72.
2016-06-14 11:17:05 +02:00