Skip to content

Commit

Permalink
Use and extend remark-preset-lint-recommended (#21)
Browse files Browse the repository at this point in the history
* fix: Disable rules that don't pass from the preset

* feat: Use remark-preset-lint-recommended

* chore: remove rules overlapping preset
  • Loading branch information
nschonni authored and Trott committed Oct 12, 2019
1 parent d5cf71f commit f24b17e
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 23 deletions.
15 changes: 4 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Add in rules alphabetically
module.exports.plugins = [
require("remark-lint"),
// Leave preset at the top so it can be overridden
require("remark-preset-lint-recommended"),
[require("remark-lint-blockquote-indentation"), 2],
[
require("remark-lint-checkbox-character-style"),
Expand All @@ -19,31 +21,22 @@ module.exports.plugins = [
require("remark-lint-fenced-code-flag"),
[require("remark-lint-fenced-code-marker"), "`"],
[require("remark-lint-file-extension"), "md"],
[require("remark-lint-first-heading-level"), 1],
require("remark-lint-final-definition"),
require("remark-lint-final-newline"),
require("remark-lint-hard-break-spaces"),
require("remark-lint-hard-break-spaces"),
[require("remark-lint-first-heading-level"), 1],
[require("remark-lint-heading-style"), "atx"],
[require("remark-lint-list-item-indent"), "space"],
require("remark-lint-maximum-line-length"),
require("remark-lint-no-auto-link-without-protocol"),
require("remark-lint-no-blockquote-without-marker"),
require("remark-lint-no-consecutive-blank-lines"),
require("remark-lint-no-duplicate-definitions"),
require("remark-lint-no-file-name-articles"),
require("remark-lint-no-file-name-consecutive-dashes"),
require("remark-lint-no-file-name-outer-dashes"),
require("remark-lint-no-heading-content-indent"),
require("remark-lint-no-heading-indent"),
require("remark-lint-no-inline-padding"),
[require("remark-lint-no-literal-urls"), false],
require("remark-lint-no-multiple-toplevel-headings"),
require("remark-lint-no-shell-dollars"),
require("remark-lint-no-shortcut-reference-image"),
require("remark-lint-no-table-indentation"),
require("remark-lint-no-tabs"),
require("remark-lint-no-trailing-spaces"),
require("remark-lint-no-unused-definitions"),
[
require("remark-lint-prohibited-strings"),
[
Expand Down
92 changes: 90 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,30 @@
"remark-lint-fenced-code-marker": "^1.0.3",
"remark-lint-file-extension": "^1.0.3",
"remark-lint-final-definition": "^1.0.3",
"remark-lint-final-newline": "^1.0.3",
"remark-lint-first-heading-level": "^1.1.4",
"remark-lint-hard-break-spaces": "^1.0.4",
"remark-lint-heading-style": "^1.0.3",
"remark-lint-list-item-indent": "^1.0.4",
"remark-lint-maximum-line-length": "^1.2.1",
"remark-lint-no-auto-link-without-protocol": "^1.0.3",
"remark-lint-no-blockquote-without-marker": "^2.0.3",
"remark-lint-no-consecutive-blank-lines": "^1.0.3",
"remark-lint-no-duplicate-definitions": "^1.0.5",
"remark-lint-no-file-name-articles": "^1.0.3",
"remark-lint-no-file-name-consecutive-dashes": "^1.0.3",
"remark-lint-no-file-name-outer-dashes": "^1.0.4",
"remark-lint-no-heading-content-indent": "^1.0.3",
"remark-lint-no-heading-indent": "^1.0.3",
"remark-lint-no-inline-padding": "^1.0.4",
"remark-lint-no-literal-urls": "^1.0.3",
"remark-lint-no-multiple-toplevel-headings": "^1.0.4",
"remark-lint-no-shell-dollars": "^1.0.3",
"remark-lint-no-shortcut-reference-image": "^1.0.3",
"remark-lint-no-shortcut-reference-link": "^1.0.4",
"remark-lint-no-table-indentation": "^1.0.4",
"remark-lint-no-tabs": "^1.0.3",
"remark-lint-no-trailing-spaces": "^2.0.1",
"remark-lint-no-unused-definitions": "^1.0.5",
"remark-lint-no-undefined-references": "^1.1.1",
"remark-lint-prohibited-strings": "^1.1.0",
"remark-lint-rule-style": "^1.0.3",
"remark-lint-strong-marker": "^1.0.3",
"remark-lint-table-cell-padding": "^1.0.4",
"remark-lint-table-pipes": "^1.0.3",
"remark-lint-unordered-list-marker-style": "^1.0.3"
"remark-lint-unordered-list-marker-style": "^1.0.3",
"remark-preset-lint-recommended": "^3.0.3"
},
"devDependencies": {
"prettier": "^1.18.2",
Expand Down

0 comments on commit f24b17e

Please sign in to comment.