Skip to content

Commit 25f00b9

Browse files
committed
Update dependencies, dev-dependencies
1 parent 2bc938b commit 25f00b9

File tree

10 files changed

+86
-91
lines changed

10 files changed

+86
-91
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "eslint:recommended",
23
"env": {
34
"node": true,
45
"browser": true

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.DS_Store
22
*.log
3-
bower_components/
43
build/
54
components/
65
coverage/

.jscs.json

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@
99
"mdast-heading.js",
1010
"mdast-heading.min.js"
1111
],
12-
"plugins": [
13-
"jscs-jsdoc"
14-
],
1512
"jsDoc": {
1613
"checkAnnotations": "jsdoc3",
1714
"checkParamNames": true,
18-
"requireParamTypes": true,
15+
"checkRedundantAccess": true,
1916
"checkRedundantParams": true,
20-
"checkReturnTypes": true,
2117
"checkRedundantReturns": true,
22-
"requireReturnTypes": true,
18+
"checkReturnTypes": true,
2319
"checkTypes": "strictNativeCase",
24-
"checkRedundantAccess": true,
2520
"enforceExistence": true,
26-
"requireHyphenBeforeDescription": true
21+
"requireHyphenBeforeDescription": true,
22+
"requireNewlineAfterDescription": true,
23+
"requireParamTypes": true,
24+
"requireParamDescription": true,
25+
"requireReturnTypes": true
2726
},
2827
"requireCurlyBraces": [
2928
"if",
@@ -48,6 +47,9 @@
4847
"requireSpaceBeforeBlockStatements": true,
4948
"requireParenthesesAroundIIFE": true,
5049
"requireSpacesInConditionalExpression": true,
50+
"requireSpacesInFunctionExpression": {
51+
"beforeOpeningCurlyBrace": true
52+
},
5153
"requireSpacesInAnonymousFunctionExpression": {
5254
"beforeOpeningRoundBrace": true,
5355
"beforeOpeningCurlyBrace": true
@@ -56,11 +58,7 @@
5658
"beforeOpeningRoundBrace": true,
5759
"beforeOpeningCurlyBrace": true
5860
},
59-
"requireSpacesInFunctionExpression": {
60-
"beforeOpeningCurlyBrace": true
61-
},
6261
"requireBlocksOnNewline": true,
63-
"disallowPaddingNewlinesInBlocks": true,
6462
"disallowEmptyBlocks": true,
6563
"disallowSpacesInsideObjectBrackets": true,
6664
"disallowSpacesInsideArrayBrackets": true,
@@ -140,14 +138,8 @@
140138
"else"
141139
],
142140
"requireLineFeedAtFileEnd": true,
143-
"maximumLineLength": 78,
144141
"requireCapitalizedConstructors": true,
145142
"safeContextKeyword": "self",
146143
"requireDotNotation": true,
147-
"disallowYodaConditions": true,
148-
"validateJSDoc": {
149-
"checkParamNames": true,
150-
"checkRedundantParams": true,
151-
"requireParamTypes": true
152-
}
144+
"disallowYodaConditions": true
153145
}

.mdastignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Dependencies.
2-
bower_components/
32
components/

.mdastrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2+
"output": true,
23
"plugins": [
3-
"lint",
4+
"comment-config",
45
"github",
56
"toc",
67
"usage",
7-
"yaml-config"
8+
"validate-links"
89
],
910
"settings": {
1011
"bullet": "*"

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"mdast"
1111
],
1212
"dependencies": {
13-
"wooorm/mdast-util-to-string": "~0.1.0"
13+
"wooorm/mdast-util-to-string": "^1.0.0"
1414
},
1515
"repository": "wooorm/mdast-heading",
1616
"scripts": [

history.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
---
2-
mdast:
3-
setext: true
4-
---
1+
<!--mdast setext-->
52

63
<!--lint disable no-multiple-toplevel-headings-->
74

index.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var splice = [].splice;
1515
/**
1616
* Transform a string into an applicable expression.
1717
*
18-
* @param {string} value
18+
* @param {string} value - Value to transform.
1919
* @return {RegExp}
2020
*/
2121
function toExpression(value) {
@@ -25,14 +25,14 @@ function toExpression(value) {
2525
/**
2626
* Wrap an expression into an assertion function.
2727
*
28-
* @param {RegExp} expression
28+
* @param {RegExp} expression - Expression to test.
2929
* @return {Function}
3030
*/
3131
function wrapExpression(expression) {
3232
/**
3333
* Assert `value` matches the bound `expression`.
3434
*
35-
* @param {string} value
35+
* @param {string} value - Value to check.
3636
* @return {boolean}
3737
*/
3838
function assertion(value) {
@@ -45,7 +45,7 @@ function wrapExpression(expression) {
4545
/**
4646
* Check if `node` is a heading.
4747
*
48-
* @param {Node} node
48+
* @param {Node} node - Node to check.
4949
* @return {boolean}
5050
*/
5151
function isHeading(node) {
@@ -55,9 +55,9 @@ function isHeading(node) {
5555
/**
5656
* Check if `node` is the main heading.
5757
*
58-
* @param {Node} node
59-
* @param {number?} depth
60-
* @param {function(string): boolean} test
58+
* @param {Node} node - Node to check.
59+
* @param {number?} depth - Depth to search for.
60+
* @param {function(string): boolean} test - Tester.
6161
*
6262
* @return {boolean}
6363
*/
@@ -68,8 +68,8 @@ function isOpeningHeading(node, depth, test) {
6868
/**
6969
* Check if `node` is the next heading.
7070
*
71-
* @param {Node} node
72-
* @param {number?} depth
71+
* @param {Node} node - Node to check.
72+
* @param {number?} depth - Depth of the opening heading.
7373
* @return {boolean}
7474
*/
7575
function isClosingHeading(node, depth) {
@@ -79,9 +79,10 @@ function isClosingHeading(node, depth) {
7979
/**
8080
* Search a node for heading range.
8181
*
82-
* @param {Node} root
83-
* @param {Function} test
84-
* @param {Function} callback
82+
* @param {Node} root - Node to search.
83+
* @param {Function} test - Assertion.
84+
* @param {Function} callback - Callback invoked when
85+
* found.
8586
*/
8687
function search(root, test, callback) {
8788
var index = -1;
@@ -132,8 +133,10 @@ function search(root, test, callback) {
132133
/**
133134
* Wrapper.
134135
*
135-
* @param {string|RegExp|Function} heading
136-
* @param {Function} callback
136+
* @param {string|RegExp|Function} heading - Heading to
137+
* search for.
138+
* @param {Function} callback - Callback invoked when
139+
* found.
137140
* @return {function(node)}
138141
*/
139142
function wrapper(heading, callback) {
@@ -152,7 +155,7 @@ function wrapper(heading, callback) {
152155
* `test`, up until the following closing with
153156
* equal or higher depth.
154157
*
155-
* @param {Node} node
158+
* @param {Node} node - Node to search in.
156159
*/
157160
function transformer(node) {
158161
search(node, test, callback);

package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,27 @@
1010
"mdast"
1111
],
1212
"dependencies": {
13-
"mdast-util-to-string": "^0.1.0"
14-
},
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/wooorm/mdast-heading.git"
13+
"mdast-util-to-string": "^1.0.0"
1814
},
15+
"repository": "wooorm/mdast-heading",
1916
"author": "Titus Wormer <[email protected]>",
2017
"files": [
21-
"index.js",
22-
"LICENSE"
18+
"index.js"
2319
],
2420
"devDependencies": {
25-
"browserify": "^10.0.0",
26-
"eslint": "^0.24.0",
21+
"browserify": "^11.0.0",
22+
"eslint": "^1.0.0",
2723
"esmangle": "^1.0.0",
2824
"istanbul": "^0.3.0",
29-
"jscs": "^1.0.0",
25+
"jscs": "^2.0.0",
3026
"jscs-jsdoc": "^1.0.0",
31-
"mdast": "^0.26.0",
27+
"mdast": "^1.0.0",
28+
"mdast-comment-config": "^1.0.0",
3229
"mdast-github": "^0.3.0",
33-
"mdast-lint": "^0.4.0",
30+
"mdast-lint": "^1.0.0",
3431
"mdast-toc": "^0.5.0",
3532
"mdast-usage": "^0.3.0",
36-
"mdast-yaml-config": "^0.2.0",
33+
"mdast-validate-links": "^0.3.0",
3734
"mocha": "^2.0.0"
3835
},
3936
"scripts": {

0 commit comments

Comments
 (0)