Skip to content

Commit

Permalink
Skip remark-git-contributors in lint mode (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Aug 11, 2019
1 parent 80131b3 commit c6ec6ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions options.js
Expand Up @@ -31,7 +31,8 @@ module.exports = function (argv, packageOpts, files, cwd, repo) {
reporter,
reporterOptions,
plugins: [
[require('remark-git-contributors'), { contributors }],
// Skip updating contributors table in lint mode
fix ? [require('remark-git-contributors'), { contributors }] : null,
[require('remark-github'), { repository: repo }],
[require('remark-toc'), {
maxDepth: 2,
Expand All @@ -42,7 +43,7 @@ module.exports = function (argv, packageOpts, files, cwd, repo) {
summary: 'Click to expand'
}],
require('./lint')(fix, packageOpts.validateLinks !== false, repo)
],
].filter(Boolean),
settings: {
// One style for code blocks, whether they have a language or not.
fences: true,
Expand Down

0 comments on commit c6ec6ab

Please sign in to comment.