Skip to content

Releases: remarkjs/remark-lint

remark-lint-no-undefined-references@1.1.0

01 Dec 21:20
315156a
Compare
Choose a tag to compare

remark-lint-maximum-line-length@1.2.0

01 Dec 21:21
c56e6d5
Compare
Choose a tag to compare

6.0.4

22 Nov 11:35
Compare
Choose a tag to compare

6.0.3

23 Oct 08:37
Compare
Choose a tag to compare
  • 02295bc Update logo
  • 0345ca0 remark-lint-list-item-indent: 1.0.3
  • 6eaf3e9 remark-lint-list-item-indent: add support for list.spread

6.0.2

04 Jun 14:29
Compare
Choose a tag to compare
Minor
Patches
  • 22f7092 linebreak-style: remove useless variable
  • 2dc68ce no-multiple-toplevel-headings: fix bug in message
  • b680c86 link-title-style: fix false-positives on parens (thanks @pvdlg)
  • 5372fdb linebreak-style: handle explicit default (thanks @Planeshifter)
  • c23a5ec no-paragraph-content-indent: fix crash caused by empty alt (thanks @Murderlon)
  • 1392178 remark-lint-no-paragraph-content-indent: fix typo (thanks @BubuAnabelas)
Chores
  • 19150d9 Add Contribute section to readme.md
  • ddfad50 Migrate to remarkjs
  • 6c1b4cf Refactor code-style
  • b4f1bae Fix typo in readme.md
  • ebda39b Add remark-lint-heading-whitespace to plugins list (thanks @vhf)
  • ada5cfd Fix broken links to using remark to fix markdown (thanks @kachkaev)

6.0.0

24 Feb 00:29
Compare
Choose a tag to compare

Hi! 👋

With 6.0.0, rules are no longer in the remark-lint package. In fact, remark lint doesn’t do much, other than controlling messages.

Rules are now each in their own package. You don’t have to npm install and .use() each package though, you can install and use presets instead. If you find yourself installing many rules to update, maybe create a preset too?

By giving more power to presets over the remark-lint package itself, I think rules, especially external rules, will prosper!

First off, if “presets” changed, the below diff shows how you can update:

 "dependencies": {
   "remark-cli": "^0.0.0",
   "remark-lint": "^0.0.0",
   "remark-preset-lint-consistent": "^0.0.0",
   // ...
 },
 "remarkConfig": {
-  "presets": ["lint-consistent"]
+  "plugins": ["preset-lint-consistent"]
 }

Second, if you used remark-lint directly, you need to change your config as follows.

 "dependencies": {
   "remark-cli": "^0.0.0",
   "remark-lint": "^0.0.0",
+  "remark-lint-unordered-list-marker-style": "^0.0.0",
+  "remark-lint-list-item-bullet-indent": "^0.0.0",
+  "remark-lint-no-multiple-toplevel-headings": "^0.0.0",
+  "remark-lint-maximum-line-length": "^0.0.0",
+  "remark-lint-maximum-heading-length": "^0.0.0",
+  "remark-lint-no-tabs": "^0.0.0",
   // ...
 },
 "remarkConfig": {
-  "plugins": {
-    "remark-lint": {
-    "unordered-list-marker-style": "consistent",
-    "list-item-bullet-indent": true,
-    "no-multiple-toplevel-headings": true,
-    "maximum-line-length": 9000,
-    "maximum-heading-length": 300,
-    "no-tabs": true,
-    //  ...
-  }
+  "plugins": [
+    "remark-lint",
+    ["remark-lint-unordered-list-marker-style", "consistent"],
+    "remark-lint-list-item-bullet-indent",
+    "remark-lint-no-multiple-toplevel-headings",
+    ["remark-lint-maximum-line-length", 9000],
+    ["remark-lint-maximum-heading-length", 300],
+    "remark-lint-no-tabs",
+    //  ...
+  ]

Finally, if you use remark on the API, change your code as follows:

var remark = require('remark');
var lint = require('remark-lint');
+var unorderedListMarkerStyle = require('remark-lint-unordered-list-marker-style');
+var listItemBulletIndent = require('remark-lint-list-item-bullet-indent');
+var noMultipleToplevelHeadings = require('remark-lint-no-multiple-toplevel-headings');

remark()
-  .use(lint, {
-    unorderedListMarkerStyle: 'consistent',
-    listItemBulletIndent: true,
-    noMultipleToplevelHeadings: true
-    maximumLineLength: false
-  })
+  .use(lint)
+  .use(unorderedListMarkerStyle, 'consistent')
+  .use(listItemBulletIndent)
+  .use(noMultipleToplevelHeadings)
  // ...

5.4.0

17 Dec 19:46
Compare
Choose a tag to compare
  • 5f024db Added remark-lint-appropriate-heading to plugins
  • 995d529 Add new rule no-empty-url
  • 3e4d99d Add new rule no-heading-like-paragraph
  • e340c2c Rewrite table-cell-padding with several fixes

5.3.0

26 Nov 16:05
Compare
Choose a tag to compare
  • c0bd224 Update unist-util-position, vfile-sort

5.2.0

01 Nov 20:12
Compare
Choose a tag to compare
  • f113f59 Add no-duplicate-headings-in-section rule
  • 1c3f0a3 Add no-reference-like-url rule
  • a7000bc Add support for string severities
  • 2dc4d61 Fix table-cell-padding warnings for empty cells
  • e4640fe no-file-name-articles: forbid teh

5.0.1

26 Aug 10:31
Compare
Choose a tag to compare
  • bca9530 Add readme.md to remark-lint package