Commit Graph

30 Commits

Author SHA1 Message Date
Titus Wormer
255ca39799
Update unified, @types/mdast, etc 2023-11-09 14:45:02 +01:00
Titus Wormer
639271aed9
Fix table alignment related rules for micromark changes
Related-to: micromark#146.

Recently, an underlying package used throughout remark received some great
changes, improving performance significantly, and fixing several (uncommon)
bugs:
[`micromark-extension-gfm-table@1.0.6`](https://github.com/micromark/micromark-extension-gfm-table/releases/tag/1.0.6).

Unfortunately, that release changed *which* cell owns the pipes compared to
before.
Old behavior was that the first column would receive two pipes, and later ones
the final pipe.
New behavior is for the columns to receive one pipe, and the last column two.

I think the new behavior makes slightly more sense, but it’s a bit vague, and
as the behavior is unspecified, and the release is very tough to roll back, I
instead fixed the two packages that use the position info here.

If you’re getting these updated packages, you’re likely also getting last
week’s `micromark-extension-gfm-table`, and it’ll all work.
2023-05-16 15:55:08 +02:00
Titus Wormer
04cffeca1e
Use Node test runner 2023-05-16 13:32:02 +02:00
Titus Wormer
db9755fe97
Refactor types 2023-05-16 12:21:38 +02:00
Titus Wormer
0beb67b739
Refactor tsconfigs to improve build perf 2023-05-16 10:54:35 +02:00
Titus Wormer
f9a82c73d3
Update dev-dependencies 2022-09-09 20:17:08 +02:00
Sigurd Spieckermann
1ab55098cc
no-undefined-references: add support for regex as option
Closes GH-296.
Closes GH-297.

Reviewed-by: JounQin <admin@1stg.me>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
2022-09-09 19:58:38 +02:00
Jack Bates
a9ef2082fe
Update build scripts to use improved settings
Closes GH-286

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
2022-03-31 18:37:59 +02:00
Titus Wormer
96e8c4f543
Update dev-dependencies 2021-11-29 19:56:44 +01:00
Titus Wormer
411f616d0e
Refactor types 2021-11-25 08:48:30 +01:00
Remco Haszing
201e995044
Add urls pointing to docs on all messages
Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>

Closes GH-272.
Closes GH-273.
2021-09-18 12:54:49 +02:00
Titus Wormer
13b1971c5e
Update xo 2021-08-12 14:11:25 +02:00
Titus Wormer
1a1e7cc586
Add JSDoc based types 2021-08-12 14:01:59 +02:00
Titus Wormer
28d4e501b7
Refactor code-style 2021-08-11 15:18:49 +02:00
Titus Wormer
e0ad12089c
Update dev-dependencies 2021-08-11 15:18:48 +02:00
Titus Wormer
f5cb7d27c3
Use ESM 2021-08-11 15:18:43 +02:00
Titus Wormer
7ffbcb6fda
Update dev-dependencies 2021-06-25 10:37:33 +02:00
Titus Wormer
5d9631cf5c
Update dev-dependencies 2021-02-16 11:14:45 +01:00
Titus Wormer
7791db9450
Update for micromark in remark
* Update to a micromark parser
* The markdown parser is now CommonMark compliant
* Several rules work on GFM features (literal autolinks, tables,
  strikethrough, tasklist).
  Make sure to install `remark-gfm` if you’re using GFM
* A couple of positions in messages moved a tad bit to make more sense

Most plugins are fine, but some received majors.

The following plugins are made for the new parser and do not work on
the old.
While you’re still on remark 12, use their previous version.
Use the new versions for remark 13+.

* `remark-lint-checkbox-character-style`
* `remark-lint-checkbox-content-indent`
* `remark-lint-list-item-bullet-indent`
* `remark-lint-list-item-spacing`
* `remark-lint-no-blockquote-without-marker`
* `remark-lint-no-heading-indent`
* `remark-lint-no-paragraph-content-indent`
* `remark-lint-no-table-indentation`
* `remark-lint-table-cell-padding`
* `remark-lint-table-pipes`

These plugins generally work on old and new remark, but might miss some
messages in the old one now:

* `remark-lint-no-consecutive-blank-lines` (extra blank lines can no
  longer break out of lists)
* `remark-lint-no-heading-content-indent` (pedantic mode no longer
  supported)
* `remark-lint-no-inline-padding` (emphasis, strong, strikethrough
  can’t be padded anymore)
* `remark-lint-no-undefined-references` (undefined references are no
  longer parsed, so we have to do magic to find them)
2020-10-12 16:17:56 +02:00
Titus Wormer
acec739a4b
Refactor prose
…and improve some error messages
2020-03-24 11:35:17 +01:00
Titus Wormer
3a00413c97
Update dev-dependencies 2020-03-24 10:20:35 +01:00
Titus Wormer
906033b42e
Update dev-dependencies 2019-06-19 15:59:33 +02:00
Titus Wormer
5aee0dbc83
Fix tests 2019-02-09 15:58:00 -08:00
Titus Wormer
bdbdc9c10d Refactor code-style 2018-11-22 12:25:55 +01:00
Titus Wormer
c106224776 Update dev-dependencies 2018-10-23 09:40:18 +02:00
Titus Wormer
2dc68ce0d9 no-multiple-toplevel-headings: fix bug in message 2018-06-04 14:36:35 +02:00
Titus Wormer
6c1b4cf6b0 Refactor code-style 2018-05-19 13:51:23 +02:00
Titus Wormer
282d27606d Refactor readme.mds
This commit rewrites most of the documentation per rule and preset,
`remark-lint` itself, and `unified-lint-rule`.

* Better and more readable automatic examples
* Check and update all rule descriptions
* Use middot (·) and line-feed (␊) for relevant examples
* Unify descriptions of `'consistent`'
* Add some more docs where needed

Closes GH-158.
2017-08-17 13:52:59 +02:00
Titus Wormer
458d1f81f1 remark-lint-linebreak-style: add rule
Closes GH-145.
2017-07-21 15:12:14 -04:00
Titus Wormer
4a380fca27 Rewrite so that rules are published to npm individually
Additionally, this updates for remark@7.0.0, unified@6.0.0.
2017-02-23 18:07:52 +01:00