Skip to content

Commit 34a8dfe

Browse files
committed
Update dev-dependencies
1 parent 0bd9fcb commit 34a8dfe

File tree

4 files changed

+42
-32
lines changed

4 files changed

+42
-32
lines changed

.jscs.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@
77
"mdast-util-heading-range.js",
88
"mdast-util-heading-range.min.js"
99
],
10-
"preset": "yandex",
11-
"requireQuotedKeysInObjects": true,
12-
"disallowQuotedKeysInObjects": false,
10+
"preset": "crockford",
11+
"requireMultipleVarDecl": false,
12+
"requireVarDeclFirst": false,
13+
"disallowDanglingUnderscores": false,
1314
"maximumLineLength": {
1415
"value": 79,
1516
"allExcept": [
1617
"regex",
17-
"urlComments"
18+
"urlComments",
19+
"require"
1820
]
1921
},
22+
"requireQuotedKeysInObjects": true,
23+
"disallowKeywords": [
24+
"with"
25+
],
2026
"jsDoc": {
2127
"checkAnnotations": "jsdoc3",
2228
"checkParamExistence": true,

package.json

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,33 @@
1212
"dependencies": {
1313
"mdast-util-to-string": "^1.0.0"
1414
},
15-
"repository": "wooorm/mdast-util-heading-range",
16-
"author": "Titus Wormer <[email protected]>",
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/wooorm/mdast-util-heading-range.git"
18+
},
19+
"bugs": "https://github.com/wooorm/mdast-util-heading-range/issues",
20+
"author": "Titus Wormer <[email protected]> (http://wooorm.com)",
21+
"contributors": [
22+
"Titus Wormer <[email protected]> (http://wooorm.com)"
23+
],
1724
"files": [
1825
"index.js"
1926
],
2027
"devDependencies": {
2128
"browserify": "^13.0.0",
22-
"eslint": "^1.0.0",
29+
"eslint": "^2.0.0",
2330
"esmangle": "^1.0.0",
2431
"istanbul": "^0.4.0",
25-
"jscs": "^2.0.0",
26-
"jscs-jsdoc": "^1.0.0",
27-
"remark": "^3.0.0",
28-
"remark-comment-config": "^2.0.0",
29-
"remark-github": "^3.0.0",
30-
"remark-lint": "^2.0.0",
31-
"remark-toc": "^2.0.0",
32-
"remark-usage": "^2.0.0",
33-
"remark-validate-links": "^2.0.0",
32+
"jscs": "^3.0.0",
33+
"jscs-jsdoc": "^2.0.0",
34+
"remark": "^5.0.0",
35+
"remark-cli": "^1.0.0",
36+
"remark-comment-config": "^4.0.0",
37+
"remark-github": "^5.0.0",
38+
"remark-lint": "^4.0.0",
39+
"remark-toc": "^3.0.0",
40+
"remark-usage": "^4.0.0",
41+
"remark-validate-links": "^4.0.0",
3442
"tape": "^4.4.0"
3543
},
3644
"scripts": {

readme.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ var doc = remark()
5555

5656
Yields:
5757

58-
```markdown
59-
# Foo
60-
61-
Qux.
62-
63-
# Baz
58+
```javascript
59+
console.log('markdown', doc);
6460
```
6561

6662
## API

test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function process(t, value, name) {
3737
return [start].concat(end ? [end] : []);
3838
});
3939
};
40-
}).process(value);
40+
}).process(value).toString();
4141
}
4242

4343
/*
@@ -256,10 +256,10 @@ test('mdast-util-heading-range()', function (t) {
256256
'',
257257
'Bar',
258258
''
259-
].join('\n'), function (err, file, doc) {
259+
].join('\n'), function (err, file) {
260260
t.ifError(err, 'should not fail (#1)');
261261

262-
t.equal(doc, [
262+
t.equal(String(file), [
263263
'Foo',
264264
'',
265265
'## Foo',
@@ -282,10 +282,10 @@ test('mdast-util-heading-range()', function (t) {
282282
'',
283283
'Bar',
284284
''
285-
].join('\n'), function (err, file, doc) {
285+
].join('\n'), function (err, file) {
286286
t.ifError(err, 'should not fail (#2)');
287287

288-
t.equal(doc, [
288+
t.equal(String(file), [
289289
'Foo',
290290
''
291291
].join('\n'), 'should replace all previous nodes otherwise');
@@ -297,7 +297,7 @@ test('mdast-util-heading-range()', function (t) {
297297
return [
298298
start,
299299
{
300-
'type': 'horizontalRule'
300+
'type': 'thematicBreak'
301301
},
302302
end
303303
];
@@ -312,10 +312,10 @@ test('mdast-util-heading-range()', function (t) {
312312
'',
313313
'## Baz',
314314
''
315-
].join('\n'), function (err, file, doc) {
315+
].join('\n'), function (err, file) {
316316
t.ifError(err, 'should not fail (#3)');
317317

318-
t.equal(doc, [
318+
t.equal(String(file), [
319319
'Foo',
320320
'',
321321
'## Foo',
@@ -346,10 +346,10 @@ test('mdast-util-heading-range()', function (t) {
346346
'',
347347
'three',
348348
''
349-
].join('\n'), function (err, file, doc) {
349+
].join('\n'), function (err, file) {
350350
t.ifError(err, 'should not fail (#4)');
351351

352-
t.equal(doc, [
352+
t.equal(String(file), [
353353
'# Alpha',
354354
'',
355355
'## Foo',

0 commit comments

Comments
 (0)