Skip to content

Commit 37460f6

Browse files
committed
Update dependencies, dev-dependencies
1 parent 797b06f commit 37460f6

10 files changed

+43
-57
lines changed

.eslintrc

+1
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

.jscs.json

+11-19
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@
88
"mdast-util-to-string.js",
99
"mdast-util-to-string.min.js"
1010
],
11-
"plugins": [
12-
"jscs-jsdoc"
13-
],
1411
"jsDoc": {
1512
"checkAnnotations": "jsdoc3",
1613
"checkParamNames": true,
17-
"requireParamTypes": true,
14+
"checkRedundantAccess": true,
1815
"checkRedundantParams": true,
19-
"checkReturnTypes": true,
2016
"checkRedundantReturns": true,
21-
"requireReturnTypes": true,
17+
"checkReturnTypes": true,
2218
"checkTypes": "strictNativeCase",
23-
"checkRedundantAccess": true,
2419
"enforceExistence": true,
25-
"requireHyphenBeforeDescription": true
20+
"requireHyphenBeforeDescription": true,
21+
"requireNewlineAfterDescription": true,
22+
"requireParamTypes": true,
23+
"requireParamDescription": true,
24+
"requireReturnTypes": true
2625
},
2726
"requireCurlyBraces": [
2827
"if",
@@ -47,6 +46,9 @@
4746
"requireSpaceBeforeBlockStatements": true,
4847
"requireParenthesesAroundIIFE": true,
4948
"requireSpacesInConditionalExpression": true,
49+
"requireSpacesInFunctionExpression": {
50+
"beforeOpeningCurlyBrace": true
51+
},
5052
"requireSpacesInAnonymousFunctionExpression": {
5153
"beforeOpeningRoundBrace": true,
5254
"beforeOpeningCurlyBrace": true
@@ -55,11 +57,7 @@
5557
"beforeOpeningRoundBrace": true,
5658
"beforeOpeningCurlyBrace": true
5759
},
58-
"requireSpacesInFunctionExpression": {
59-
"beforeOpeningCurlyBrace": true
60-
},
6160
"requireBlocksOnNewline": true,
62-
"disallowPaddingNewlinesInBlocks": true,
6361
"disallowEmptyBlocks": true,
6462
"disallowSpacesInsideObjectBrackets": true,
6563
"disallowSpacesInsideArrayBrackets": true,
@@ -139,14 +137,8 @@
139137
"else"
140138
],
141139
"requireLineFeedAtFileEnd": true,
142-
"maximumLineLength": 78,
143140
"requireCapitalizedConstructors": true,
144141
"safeContextKeyword": "self",
145142
"requireDotNotation": true,
146-
"disallowYodaConditions": true,
147-
"validateJSDoc": {
148-
"checkParamNames": true,
149-
"checkRedundantParams": true,
150-
"requireParamTypes": true
151-
}
143+
"disallowYodaConditions": true
152144
}

.mdastignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
bower_components/
21
components/

.mdastrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"plugins": [
3+
"comment-config",
34
"lint",
45
"github",
5-
"yaml-config"
6+
"slug",
7+
"validate-links"
68
],
79
"settings": {
810
"bullet": "*"

.travis.yml

-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ node_js:
77
- iojs
88
sudo: false
99
after_script: npm install [email protected] && cat ./coverage/lcov.info | coveralls
10-
deploy:
11-
provider: npm
12-
13-
api_key:
14-
secure: Gc/q5MGR+a9HOe8pHbf+C/8W2eyRerk0+tC6ggeYNcmZdeP2jlaU+Be4TPHKrfXSCzZSIYPLaUenIVeQQ1kxUd9QeLRs1uqbrRdTFiG5blhKpvYSEIVlvx/3ys8kaMm9ScsthlWSkPmlfDduftfxCbrSimZajxUl7kD+c8M86wzxPzvpzzyELzX34RsQvjSeGI3FMFlD743EP2nnwXbo2F5KVojj92V3HT449dBnI4GoKpUTlu2PBL7EInmVIT+CGTdyJVE/qd99/xfbdH/zjESu5Xa+1CuVk3pd9le6sYOAeZRy9gc0/sU/mpX+0nXTSsqjb0kua6gC1qC+gjLs1LwgFxhlFy7Htz+uq1mHlESXD9PyMs7D2l772t5h5N2eVzqpl7Btxcue7p71qKKE3FSMdEoL/eV98zD9j+h9eGtbvzaXS8r7x1hIIYUAwv3TNyIVRujCaiFYJMsL/gplyCNuKcU4pJPr4u/1Udk8/IooT7Nff9r+Xsh06Sa4cxY2wyYSEffox5JIPioRQkr6pFl45mw3XITUaxIofr2dpFH6xnogKJhlVOsp3q5d0srYvn+Rh2Y2Vc5yG94G2UfKx5u8enru9/dJGOvJjgLBElhywuJdnvgZmv6rljj4tu5a/k8dfRlGxUNBJYUkvXa2seCiHGbVje5hhIlO6o6B2pc=
15-
on:
16-
repo: wooorm/mdast-util-to-string

history.md

+1-4
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @author Titus Wormer
33
* @copyright 2015 Titus Wormer. All rights reserved.
4-
* @module mdast-util-to-string
4+
* @module mdast:util:to-string
55
* @fileoverview Utility to get the text value of a node.
66
*/
77

mdast-util-to-string.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* @author Titus Wormer
44
* @copyright 2015 Titus Wormer. All rights reserved.
5-
* @module mdast-util-to-string
5+
* @module mdast:util:to-string
66
* @fileoverview Utility to get the text value of a node.
77
*/
88

package.json

+10-15
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,24 @@
1212
"util",
1313
"utility"
1414
],
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/wooorm/mdast-util-to-string.git"
18-
},
19-
"author": {
20-
"name": "Titus Wormer",
21-
"email": "[email protected]"
22-
},
15+
"repository": "wooorm/mdast-util-to-string",
16+
"author": "Titus Wormer <[email protected]>",
2317
"files": [
24-
"index.js",
25-
"LICENSE"
18+
"index.js"
2619
],
2720
"devDependencies": {
28-
"browserify": "^10.0.0",
29-
"eslint": "^0.24.0",
21+
"browserify": "^11.0.0",
22+
"eslint": "^1.0.0",
3023
"esmangle": "^1.0.0",
3124
"istanbul": "^0.3.0",
32-
"jscs": "^1.0.0",
25+
"jscs": "^2.0.0",
3326
"jscs-jsdoc": "^1.0.0",
34-
"mdast": "^0.26.0",
27+
"mdast": "^1.0.0",
28+
"mdast-comment-config": "^1.0.0",
3529
"mdast-github": "^0.3.0",
3630
"mdast-lint": "^0.4.0",
37-
"mdast-yaml-config": "^0.2.0",
31+
"mdast-slug": "^0.1.1",
32+
"mdast-validate-links": "^0.3.1",
3833
"mocha": "^2.0.0"
3934
},
4035
"scripts": {

test.js

+15-8
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,56 @@
66
* Dependencies.
77
*/
88

9-
var toString = require('./index.js');
109
var assert = require('assert');
10+
var toString = require('./index.js');
11+
12+
/*
13+
* Methods.
14+
*/
15+
16+
var equal = assert.strictEqual;
17+
var throws = assert.throws;
1118

1219
/*
1320
* Tests.
1421
*/
1522

1623
describe('mdast-util-visit', function () {
1724
it('should fail without node', function () {
18-
assert.throws(function () {
25+
throws(function () {
1926
toString();
2027
});
2128
});
2229

2330
it('should not fail on unrecognised nodes', function () {
24-
assert.equal('foo', toString({
31+
equal('foo', toString({
2532
'value': 'foo'
2633
}));
2734
});
2835

2936
it('should prefer `value`', function () {
30-
assert.equal('foo', toString({
37+
equal('foo', toString({
3138
'value': 'foo',
3239
'alt': 'bar',
3340
'title': 'baz'
3441
}));
3542
});
3643

3744
it('should then prefer `alt`', function () {
38-
assert.equal('bar', toString({
45+
equal('bar', toString({
3946
'alt': 'bar',
4047
'title': 'baz'
4148
}));
4249
});
4350

4451
it('should then prefer `title`', function () {
45-
assert.equal('baz', toString({
52+
equal('baz', toString({
4653
'title': 'baz'
4754
}));
4855
});
4956

5057
it('should then prefer `children`', function () {
51-
assert.equal('foobarbaz', toString({
58+
equal('foobarbaz', toString({
5259
'children': [
5360
{
5461
'value': 'foo'
@@ -64,6 +71,6 @@ describe('mdast-util-visit', function () {
6471
});
6572

6673
it('should fall back on an empty string', function () {
67-
assert.equal('', toString({}));
74+
equal('', toString({}));
6875
});
6976
});

0 commit comments

Comments
 (0)