Commit Graph

61 Commits

Author SHA1 Message Date
Titus
014fca79e0
Add improved docs
Closes GH-276.
2021-12-03 10:06:36 +01: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
Titus Wormer
c5c3832ef9
Mark no-auto-link-without-protocol as deprecated
* Add internal support for deprecated packages in tooling
* Remove `remark-lint-no-auto-link-without-protocol` from presets
* Add info to `remark-lint-no-auto-link-without-protocol` on why it’s deprecated

Related to remarkjs/remark#863.
2021-10-08 13:44:46 +02: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
Masafumi Koba
359cd0828e
Add repository.directory field to package.jsons
This change updates the `repository` field in all `package.json`s to add a `directory`.
This also modifies the scripts to get the repository URLs.

Closes GH-268.
Closes GH-269.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
2021-08-16 11:10:08 +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
5c215ec00b
Fix windows 2021-08-11 16:47:42 +02:00
Titus Wormer
5c398a8213
Replace dox w/ comment-parser 2021-08-11 16:41:00 +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
e7a7701963
Update docs 2021-08-11 15:18:48 +02:00
Titus Wormer
f5cb7d27c3
Use ESM 2021-08-11 15:18:43 +02:00
Titus Wormer
e633c2fbb7
Replace nyc with c8 2021-08-10 15:37:18 +02:00
Titus Wormer
7ffbcb6fda
Update dev-dependencies 2021-06-25 10:37:33 +02:00
Titus Wormer
00a6312656
Use Actions 2021-02-16 11:18:37 +01:00
Titus Wormer
5d9631cf5c
Update dev-dependencies 2021-02-16 11:14:45 +01:00
Titus Wormer
7cd0cde7c8
Remove unused dev-dependencies 2020-10-14 13:46:30 +02: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
ed33247153
Add Discussions 2020-08-22 15:33:21 +02:00
Titus Wormer
b40fe0f43e
Change master in links 2020-06-23 12:00:43 +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
d7750be12e
Add badges, contributing, etc to packages 2019-06-20 11:42:27 +02: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
38fcb399eb Move LICENSE > license 2018-10-23 09:30:30 +02:00
Titus Wormer
6c1b4cf6b0 Refactor code-style 2018-05-19 13:51:23 +02:00
Titus Wormer
30a25675f2 Fix options in presets in documentation 2017-08-17 15:18:04 +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
799f26f601 Remove superfluous comments 2017-07-23 11:56:34 -04:00
Titus Wormer
e6cb6e4dc5 Update build script to allow markdown in description of presets 2017-04-29 13:32:10 +02:00
greenkeeperio-bot
ec6810703d Update xo
Closes GH-136.
2017-03-18 17:22:19 +01:00
Titus Wormer
c48746a38b Use remark plugins to build lists 2017-03-09 19:48:09 +01:00
Titus Wormer
cf062c99c4 Add code to generate list of presets 2017-03-09 19:42:34 +01:00
Titus Wormer
74b3e66880 Fix typo 2017-03-09 19:35:33 +01:00
Titus Wormer
361828472d Add list of official rules 2017-03-02 16:05:14 +01: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
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
greenkeeperio-bot
65b8e56d18 Update xo
Closes GH-102.
2016-10-16 12:08:47 +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
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
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
31f82b2862 Add load-plugin to load external rules 2016-08-01 18:32:33 +02:00
Titus Wormer
7fde792685 Update for changes in remark@4.0.0 2016-02-14 11:03:07 +01:00
YJ Yang
589b4d7c18 Add support for global externals when running globally
Closes GH-38.
Closes GH-39.
2016-01-13 10:55:36 +01:00
Burak Yiğit Kaya
aada8e8133 Fix silent warnings for invalid options
Although there was a system in place to warn users about invalid
lint options, it failed to report those messages.

*   Additionally, fix several typographic errors in documentation.

Closes GH-33.
2016-01-06 10:11:13 +01:00
Titus Wormer
298b33ae64 Add list of external rules to readme.md 2015-12-28 18:42:32 +01:00