Skip to content

Commit ca816c4

Browse files
committed
Update dev-dependencies
1 parent a7c7d2b commit ca816c4

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
lines changed

.jscs.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@
66
"mdast-util-heading-style.js",
77
"mdast-util-heading-style.min.js"
88
],
9-
"preset": "yandex",
10-
"requireQuotedKeysInObjects": true,
11-
"disallowQuotedKeysInObjects": false,
9+
"preset": "crockford",
10+
"requireMultipleVarDecl": false,
11+
"requireVarDeclFirst": false,
12+
"disallowDanglingUnderscores": false,
1213
"maximumLineLength": {
1314
"value": 79,
1415
"allExcept": [
1516
"regex",
16-
"urlComments"
17+
"urlComments",
18+
"require"
1719
]
1820
},
21+
"requireQuotedKeysInObjects": true,
22+
"disallowKeywords": [
23+
"with"
24+
],
1925
"jsDoc": {
2026
"checkAnnotations": "jsdoc3",
2127
"checkParamExistence": true,

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ function consolidate(depth, relative) {
3636
* @example
3737
* style(); // null
3838
*
39-
* style(remark.parse('# foo').children[0]); // 'atx'
39+
* style(remark().parse('# foo').children[0]); // 'atx'
4040
*
41-
* style(remark.parse('# foo #').children[0]); // 'atx-closed'
41+
* style(remark().parse('# foo #').children[0]); // 'atx-closed'
4242
*
43-
* style(remark.parse('foo\n===').children[0]); // 'setext'
43+
* style(remark().parse('foo\n===').children[0]); // 'setext'
4444
*
4545
* @param {Node} node - Node to check.
4646
* @param {string?} relative - Heading type which we'd wish

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,27 @@
1818
},
1919
"bugs": "https://github.com/wooorm/mdast-util-heading-style/issues",
2020
"author": "Titus Wormer <[email protected]> (http://wooorm.com)",
21+
"contributors": [
22+
"Titus Wormer <[email protected]> (http://wooorm.com)"
23+
],
2124
"files": [
2225
"index.js"
2326
],
2427
"dependencies": {},
2528
"devDependencies": {
2629
"browserify": "^13.0.0",
27-
"eslint": "^1.0.0",
30+
"eslint": "^2.0.0",
2831
"esmangle": "^1.0.0",
2932
"istanbul": "^0.4.0",
30-
"jscs": "^2.0.0",
31-
"jscs-jsdoc": "^1.0.0",
32-
"remark": "^3.0.0",
33-
"remark-comment-config": "^2.0.0",
34-
"remark-github": "^3.0.0",
35-
"remark-lint": "^2.0.0",
36-
"remark-slug": "^3.0.0",
37-
"remark-validate-links": "^2.0.0",
33+
"jscs": "^3.0.0",
34+
"jscs-jsdoc": "^2.0.0",
35+
"remark": "^5.0.0",
36+
"remark-cli": "^1.0.0",
37+
"remark-comment-config": "^4.0.0",
38+
"remark-github": "^5.0.0",
39+
"remark-lint": "^4.0.0",
40+
"remark-slug": "^4.0.0",
41+
"remark-validate-links": "^4.0.0",
3842
"tape": "^4.4.0"
3943
},
4044
"scripts": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ and as an AMD, CommonJS, and globals module,
1717
## Usage
1818

1919
```js
20-
var remark = require('remark');
2120
var style = require('mdast-util-heading-style');
21+
var remark = require('remark')();
2222

2323
style(remark.parse('# ATX').children[0]); // 'atx'
2424
style(remark.parse('# ATX #\n').children[0]); // 'atx-closed'

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
var test = require('tape');
22-
var remark = require('remark');
22+
var remark = require('remark')();
2323
var style = require('./index.js');
2424

2525
/*

0 commit comments

Comments
 (0)