Skip to content

Commit

Permalink
Add "error" severity level to rules in preset, fixes RichardLitt#36
Browse files Browse the repository at this point in the history
  • Loading branch information
dietergeerts committed Aug 13, 2020
1 parent 278f023 commit f578f2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
exports.plugins = [
require('remark-lint-appropriate-heading'),
require('./rules/file-stem'),
require('./rules/file-extension'),
require('./rules/require-file-extension'),
require('./rules/no-unknown-sections'),
require('./rules/require-sections'),
require('./rules/section-order')
[require('remark-lint-appropriate-heading'), ['error']],
[require('./rules/file-stem'), ['error']],
[require('./rules/file-extension'), ['error']],
[require('./rules/require-file-extension'), ['error']],
[require('./rules/no-unknown-sections'), ['error']],
[require('./rules/require-sections'), ['error']],
[require('./rules/section-order'), ['error']]
]
2 changes: 1 addition & 1 deletion lint-readme/require-rules-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = rule(
const rules = select.selectAll('listItem link inlineCode', rulesList)
const foundRules = rules.map((rule) => rule.value)

const expectedRules = preset.plugins.map((rule) => rule.displayName)
const expectedRules = preset.plugins.map(([rule]) => rule.displayName)

foundRules.forEach((rule) => {
if (!expectedRules.includes(rule)) {
Expand Down

0 comments on commit f578f2b

Please sign in to comment.