Skip to content

Commit 29e03c7

Browse files
committed
Update dependencies, dev-dependencies
1 parent 24fbf05 commit 29e03c7

File tree

7 files changed

+47
-83
lines changed

7 files changed

+47
-83
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

.jscs.json

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@
88
"mdast-util-heading-style.js",
99
"mdast-util-heading-style.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
}

.mdastrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2+
"output": true,
23
"plugins": [
34
"lint",
45
"github",
5-
"yaml-config"
6+
"comment-config"
67
],
78
"settings": {
89
"bullet": "*"

.travis.yml

Lines changed: 0 additions & 7 deletions
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: PcXZxo0Uv8g3loGIfkNuX3insAcEkmAUsmKpAr/F48spadKcUYcD2YhOiKKOEssRde3waz9WMf6FaNZbqj68h1SJB627UMhE4694lGJZ/KJU/yTGFLOcyYd6ON9+GoeaeeMweVlMgllSDA43ghT+suVvhKj2ORpGYxMKmXaKdheHvAsbYOC+R6WaQtpJU9R3REKMS/vfkp/Fz7b7o17J/UKPqi9jhwLejGqI+77pm23DBvS8QrUZ3eW4aZ0WIKj1mjuKGS8YsuG6xKwMgXzdMKvaVMVy3DKSmX7wdyFKqeFhfBrWCPR2LYgv5IlmLwYWN4InMtnK8haVJRTtZGdubOYccNae2hZqduZCZktmOjfLwvKA9G7EqHBbUaNPXLPknsi+QCtjDSV4GcwfRaP+qGEfj+pbltuBseMeJz73RPgGTT6fZOndgu9z7nNG0P/Ais5o4VMHBgqAqDKg9ySbZUtfla7zwRn8UASFRXbo5lEHwHOpZZibNFL12FIfmt+RwG3uduOynIH9eHvsVfPT67xPumfcV9qBPJ022SzsMq3OYV6coaBn2BO+TLwmVMImdSYypkJ+roVhY9oFMxeX0jp8X8rDAqOqU0Wn7H9vhbCZ2/G1qGM8QFwGkaMrZ685LbBmSBmuFFrOtYe6yVLIfZbW90VVRK2u4mXPeGPQ1wY=
15-
on:
16-
repo: wooorm/mdast-util-heading-style

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

package.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,22 @@
1212
"util",
1313
"utility"
1414
],
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/wooorm/mdast-util-heading-style.git"
18-
},
19-
"author": {
20-
"name": "Titus Wormer",
21-
"email": "[email protected]"
22-
},
15+
"repository": "wooorm/mdast-util-heading-style",
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",
3528
"mdast-github": "^0.3.0",
3629
"mdast-lint": "^0.4.0",
37-
"mdast-yaml-config": "^0.2.0",
30+
"mdast-comment-config": "^1.0.0",
3831
"mocha": "^2.0.0"
3932
},
4033
"scripts": {
@@ -49,7 +42,7 @@
4942
"make": "npm run lint && npm run test-coverage",
5043
"bundle": "browserify index.js --no-builtins -s mdastUtilHeadingStyle > mdast-util-heading-style.js",
5144
"postbundle": "esmangle mdast-util-heading-style.js > mdast-util-heading-style.min.js",
52-
"build-md": "mdast . --output --quiet",
45+
"build-md": "mdast . --quiet",
5346
"build": "npm run bundle && npm run build-md"
5447
}
5548
}

test.js

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,26 @@ var style = require('./index.js');
1010
var mdast = require('mdast');
1111
var assert = require('assert');
1212

13-
// console.log(JSON.stringify(mdast.parse('# #'), 0, 2));
13+
/*
14+
* Methods.
15+
*/
16+
17+
var throws = assert.throws;
18+
var equal = assert.strictEqual;
1419

1520
/*
1621
* Tests.
1722
*/
1823

1924
describe('mdast-util-heading-style', function () {
2025
it('should fail without node', function () {
21-
assert.throws(function () {
26+
throws(function () {
2227
style();
2328
});
2429
});
2530

2631
it('should NOT fail on undetectable nodes', function () {
27-
assert.equal(null, style({
32+
equal(null, style({
2833
'type': 'heading',
2934
'children': [
3035
{
@@ -36,81 +41,63 @@ describe('mdast-util-heading-style', function () {
3641
});
3742

3843
it('should work', function () {
39-
assert.equal(
40-
style(mdast.parse('# ATX').children[0]),
41-
'atx'
42-
);
44+
equal(style(mdast.parse('# ATX').children[0]), 'atx');
4345

44-
assert.equal(
45-
style(mdast.parse('# ATX #').children[0]),
46-
'atx-closed'
47-
);
46+
equal(style(mdast.parse('# ATX #').children[0]), 'atx-closed');
4847

49-
assert.equal(
50-
style(mdast.parse('ATX\n===').children[0]),
51-
'setext'
52-
);
48+
equal(style(mdast.parse('ATX\n===').children[0]), 'setext');
5349
});
5450

5551
it('should work on ambiguous nodes', function () {
56-
assert.equal(
57-
style(mdast.parse('### ATX').children[0]),
58-
null
59-
);
52+
equal(style(mdast.parse('### ATX').children[0]), null);
6053

61-
assert.equal(
62-
style(mdast.parse('### ATX').children[0], 'atx'),
63-
'atx'
64-
);
54+
equal(style(mdast.parse('### ATX').children[0], 'atx'), 'atx');
6555

66-
assert.equal(
67-
style(mdast.parse('### ATX').children[0], 'setext'),
68-
'setext'
69-
);
56+
equal(style(mdast.parse('### ATX').children[0], 'setext'), 'setext');
7057
});
7158

7259
it('should work on empty nodes', function () {
73-
assert.equal(
60+
equal(
7461
style(mdast.parse('###### ######').children[0]),
7562
'atx-closed'
7663
);
7764

78-
assert.equal(
65+
equal(
7966
style(mdast.parse('### ###').children[0]),
8067
'atx-closed'
8168
);
8269

83-
assert.equal(
70+
equal(
8471
style(mdast.parse('# #').children[0]),
8572
'atx-closed'
8673
);
8774

88-
assert.equal(
75+
equal(
8976
style(mdast.parse('###### ').children[0], 'atx'),
9077
'atx'
9178
);
9279

93-
assert.equal(
80+
equal(
9481
style(mdast.parse('### ').children[0], 'atx'),
9582
'atx'
9683
);
9784

98-
assert.equal(
85+
equal(
9986
style(mdast.parse('# ').children[0], 'setext'),
10087
'atx'
10188
);
10289

103-
assert.equal(
90+
equal(
10491
style(mdast.parse('###### ').children[0], 'setext'),
10592
'setext'
10693
);
10794

108-
assert.equal(
95+
equal(
10996
style(mdast.parse('### ').children[0], 'setext'),
11097
'setext'
11198
);
11299

113-
assert.equal(
100+
equal(
114101
style(mdast.parse('# ').children[0], 'setext'),
115102
'atx'
116103
);

0 commit comments

Comments
 (0)