Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 12, 2019
1 parent ddbebd1 commit 6108552
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 21 deletions.
7 changes: 6 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ exports.plugins = [
require('remark-lint-no-shell-dollars'),
require('remark-lint-no-table-indentation'),
require('remark-lint-no-undefined-references'),
require('remark-lint-no-unneeded-full-reference-image'),
require('remark-lint-no-unneeded-full-reference-link'),
require('remark-lint-no-unused-definitions'),
[require('remark-lint-ordered-list-marker-style'), 'consistent'],
[require('remark-lint-ordered-list-marker-value'), 'ordered'],
Expand All @@ -48,8 +50,11 @@ exports.plugins = [
[require('remark-lint-unordered-list-marker-style'), 'consistent'],

// Third-party plugins
require('remark-lint-no-empty-sections'),
// Disabled as it throws `file.warn is not a function`
// require('remark-lint-no-empty-sections'),
require('remark-lint-no-dead-urls'),
require('remark-lint-match-punctuation'),
require('remark-lint-no-repeat-punctuation'),

// Custom plugins
...require('./rules')
Expand Down
28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@
"cli"
],
"dependencies": {
"arrify": "^1.0.1",
"arrify": "^2.0.1",
"case": "^1.5.5",
"emoji-regex": "^7.0.0",
"emoji-regex": "^8.0.0",
"execa": "^1.0.0",
"git-clone": "^0.1.0",
"github-slugger": "^1.2.0",
"github-url-to-object": "^4.0.4",
"globby": "^9.0.0",
"got": "^9.6.0",
"is-github-url": "^1.2.2",
"is-url-superb": "^2.0.0",
"is-url-superb": "^3.0.0",
"mdast-util-to-string": "^1.0.4",
"meow": "^5.0.0",
"ora": "^3.0.0",
"parse-github-url": "^1.0.2",
"pify": "^4.0.0",
"read-pkg": "^5.1.1",
"remark": "^10.0.1",
"remark": "^11.0.2",
"remark-lint": "^6.0.2",
"remark-lint-blockquote-indentation": "^1.0.2",
"remark-lint-checkbox-character-style": "^1.0.2",
Expand All @@ -70,9 +70,10 @@
"remark-lint-list-item-bullet-indent": "^1.0.2",
"remark-lint-list-item-content-indent": "^1.0.2",
"remark-lint-list-item-indent": "^1.0.2",
"remark-lint-match-punctuation": "^0.2.0",
"remark-lint-no-auto-link-without-protocol": "^1.0.2",
"remark-lint-no-blockquote-without-marker": "^2.0.2",
"remark-lint-no-dead-urls": "^0.4.1",
"remark-lint-no-dead-urls": "^1.0.0",
"remark-lint-no-emphasis-as-heading": "^1.0.2",
"remark-lint-no-empty-sections": "^3.0.0",
"remark-lint-no-file-name-articles": "^1.0.2",
Expand All @@ -85,9 +86,12 @@
"remark-lint-no-heading-punctuation": "^1.0.2",
"remark-lint-no-inline-padding": "^1.0.2",
"remark-lint-no-multiple-toplevel-headings": "^1.0.2",
"remark-lint-no-repeat-punctuation": "^0.1.3",
"remark-lint-no-shell-dollars": "^1.0.2",
"remark-lint-no-table-indentation": "^1.0.2",
"remark-lint-no-undefined-references": "^1.0.2",
"remark-lint-no-unneeded-full-reference-image": "^1.0.0",
"remark-lint-no-unneeded-full-reference-link": "^1.0.0",
"remark-lint-no-unused-definitions": "^1.0.2",
"remark-lint-ordered-list-marker-style": "^1.0.2",
"remark-lint-ordered-list-marker-value": "^1.0.2",
Expand All @@ -98,19 +102,19 @@
"remark-lint-table-pipes": "^1.0.2",
"remark-lint-unordered-list-marker-style": "^1.0.2",
"rmfr": "^2.0.0",
"tempy": "^0.2.1",
"to-vfile": "^5.0.0",
"tempy": "^0.3.0",
"to-vfile": "^6.0.0",
"unified-lint-rule": "^1.0.3",
"unist-util-find": "^1.0.1",
"unist-util-find-all-after": "^1.0.2",
"unist-util-find-all-after": "^2.0.0",
"unist-util-find-all-before": "^2.0.2",
"unist-util-find-all-between": "^1.0.2",
"unist-util-visit": "^1.4.0",
"unist-util-find-all-between": "^2.0.0",
"unist-util-visit": "^2.0.1",
"vfile-reporter-pretty": "^3.0.0"
},
"devDependencies": {
"ava": "^1.2.1",
"ava": "^2.4.0",
"sinon": "^7.2.3",
"xo": "^0.24.0"
"xo": "^0.25.3"
}
}
4 changes: 3 additions & 1 deletion test/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import test from 'ava';

test('x', t => t.pass());
test('x', t => {
t.pass();
});

/// import lint from '..';

Expand Down
4 changes: 2 additions & 2 deletions test/lib/find-author-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import test from 'ava';
import findAuthorName from '../../lib/find-author-name';

test('findAuthorName - parse repo URL', t => {
t.deepEqual(findAuthorName({repoURL: 'https://github.com/sindresorhus/awesome-lint'}), 'sindresorhus');
t.is(findAuthorName({repoURL: 'https://github.com/sindresorhus/awesome-lint'}), 'sindresorhus');
});

test('findAuthorName - parse package.json', t => {
t.deepEqual(findAuthorName({dirname: path.resolve(__dirname, '../../')}), 'sindresorhus');
t.is(findAuthorName({dirname: path.resolve(__dirname, '../../')}), 'sindresorhus');
});
10 changes: 5 additions & 5 deletions test/rules/license.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import lint from '../_lint';
const config = {
plugins: [
require('remark-lint'),
require('remark-lint-no-empty-sections'),
/// require('remark-lint-no-empty-sections'),
require('../../rules/license')
]
};
Expand All @@ -22,10 +22,10 @@ test('license - missing', async t => {
test('license - empty', async t => {
const messages = await lint({config, filename: 'test/fixtures/license/error1.md'});
t.deepEqual(messages, [
{
ruleId: 'no-empty-sections',
message: 'Remove empty section: "License"'
},
// {
// ruleId: 'no-empty-sections',
// message: 'Remove empty section: "License"'
// },
{
ruleId: 'awesome/license',
message: 'License must not be empty'
Expand Down

0 comments on commit 6108552

Please sign in to comment.