Commit Graph

66 Commits

Author SHA1 Message Date
Titus
014fca79e0
Add improved docs
Closes GH-276.
2021-12-03 10:06:36 +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
Titus Wormer
e7a7701963
Update docs 2021-08-11 15:18:48 +02:00
Denis Augsburger
06b11893b0
Add remark-lint-strikethrough-marker
Closes GH-259.
Closes GH-260.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
2021-06-25 10:30:11 +02:00
Daniele Tortora
718e94d758
Add docs on creating custom rules
Closes GH-261.
Closes GH-262.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
2021-04-07 19:07:15 +02:00
Titus Wormer
b40fe0f43e
Change master in links 2020-06-23 12:00:43 +02:00
Titus Wormer
e40d38c2d6
no-duplicate-defined-urls: create
Closes GH-225.
2020-03-30 15:19:01 +02:00
Titus Wormer
590669ad50
Update dev-dependencies 2020-03-30 14:11:23 +02:00
Titus Wormer
acec739a4b
Refactor prose
…and improve some error messages
2020-03-24 11:35:17 +01:00
Titus
d7e95efb68
Add rules to prefer collapsed over full references
Closes GH-192.
Closes GH-212.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
2019-06-20 16:16:07 +02:00
Titus Wormer
2e2105f0e4
Refactor prose in packages 2019-06-20 10:51:46 +02:00
Bob "Wombat" Hogg
b401a22021 Fix typo in rules.md
Closes GH-209.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
2019-03-20 21:29:59 -07:00
Titus Wormer
ddfad50650 Migrate to remarkjs 2017-12-08 15:39:26 +01:00
Titus Wormer
c301503b1b Remove cell padding in tables 2017-07-23 11:54:41 -04:00
Titus Wormer
ab313e0ee8 remark-lint-no-paragraph-content-indent: add rule 2017-07-21 17:02:47 -04:00
Titus Wormer
458d1f81f1 remark-lint-linebreak-style: add rule
Closes GH-145.
2017-07-21 15:12:14 -04:00
Titus Wormer
f55ebde1b3 no-blockquote-without-caret: rename to no-blockquote-without-marker
Closes GH-143.
2017-07-21 12:31:50 -04:00
Titus Wormer
42129d148d Fix typo’s 2017-04-29 12:50:49 +02:00
Titus Wormer
1b8a2068b9 Mention external rules in official list 2017-03-05 13:08:21 +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
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
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
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
Сковорода Никита Андреевич
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
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
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
d7abf05c85 Add better description to list-item-spacing
Closes GH-78.
2016-08-06 14:51:41 +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
31f82b2862 Add load-plugin to load external rules 2016-08-01 18:32:33 +02:00
John Vandenberg
622540e6fc Fix typo in comparison-to-markdownlint
Closes GH-72.
2016-06-14 11:17:05 +02:00
Titus Wormer
149a4a1b7c Update docs 2016-06-13 17:02:19 +02:00
Titus Wormer
fd908a4a80 Add support for setting allowed file-name characters
Add support for customising the allowed characters (through passing
a `string` or `RegExp`).

Closes GH-63.
2016-06-06 18:19:08 +02:00
Titus Wormer
019ff36470 Fix checkbox lists starting with links
Closes GH-68.
2016-06-06 17:43:45 +02:00
Titus Wormer
27d3444e06 3.2.1 2016-04-26 13:34:51 +02:00
Michael Mior
7f4a51ebdb Update main heading rules to accept preferred depth
Update `first-heading-level` and `no-multiple-toplevel-headings`
to accept a preferred main heading level.  The previous, and
default, state is defined as level 1 headings, but it’s now
possible to specify other levels as well.

Closes GH-51.
2016-04-03 21:03:41 +02:00
Ben Balter
d54441e8a7 Remove : requirement for no-emphasis-as-heading
Closes GH-48.
2016-02-29 10:45:16 +01:00
Titus Wormer
7fde792685 Update for changes in remark@4.0.0 2016-02-14 11:03:07 +01:00
Titus Wormer
6381e62f42 Fix invalid JSON in example 2016-02-14 10:54:13 +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
Titus Wormer
8f6e05562d Add no-undefined-references rule
This new rule warns when references to undefined definitions are
found.

Closes GH-35.
2016-01-09 22:12:05 +01:00
Titus Wormer
bde77abca6 Add no-unused-definitions rule
This new rule detects unused definitions and warns when they’re found.

Closes GH-34.
2016-01-09 21:55:12 +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
Titus Wormer
d78b63ac94 2.0.2 2015-12-27 20:45:49 +01:00