Skip to content

Commit 0aca600

Browse files
committed
Update dev-dependencies
1 parent b57efd7 commit 0aca600

File tree

4 files changed

+49
-140
lines changed

4 files changed

+49
-140
lines changed

.jscs.json

+20-120
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,25 @@
66
"mdast-util-definitions.js",
77
"mdast-util-definitions.min.js"
88
],
9+
"preset": "crockford",
10+
"requireMultipleVarDecl": false,
11+
"requireVarDeclFirst": false,
12+
"disallowDanglingUnderscores": false,
13+
"maximumLineLength": {
14+
"value": 79,
15+
"allExcept": [
16+
"regex",
17+
"urlComments",
18+
"require"
19+
]
20+
},
21+
"requireQuotedKeysInObjects": true,
22+
"disallowKeywords": [
23+
"with"
24+
],
925
"jsDoc": {
1026
"checkAnnotations": "jsdoc3",
27+
"checkParamExistence": true,
1128
"checkParamNames": true,
1229
"checkRedundantAccess": true,
1330
"checkRedundantParams": true,
@@ -17,126 +34,9 @@
1734
"enforceExistence": true,
1835
"requireHyphenBeforeDescription": true,
1936
"requireNewlineAfterDescription": true,
20-
"requireParamTypes": true,
2137
"requireParamDescription": true,
38+
"requireParamTypes": true,
39+
"requireReturnDescription": true,
2240
"requireReturnTypes": true
23-
},
24-
"requireCurlyBraces": [
25-
"if",
26-
"else",
27-
"for",
28-
"while",
29-
"do",
30-
"try",
31-
"catch"
32-
],
33-
"requireSpaceAfterKeywords": [
34-
"if",
35-
"else",
36-
"for",
37-
"while",
38-
"do",
39-
"switch",
40-
"return",
41-
"try",
42-
"catch"
43-
],
44-
"requireSpaceBeforeBlockStatements": true,
45-
"requireParenthesesAroundIIFE": true,
46-
"requireSpacesInConditionalExpression": true,
47-
"requireSpacesInFunctionExpression": {
48-
"beforeOpeningCurlyBrace": true
49-
},
50-
"requireSpacesInAnonymousFunctionExpression": {
51-
"beforeOpeningRoundBrace": true,
52-
"beforeOpeningCurlyBrace": true
53-
},
54-
"requireSpacesInNamedFunctionExpression": {
55-
"beforeOpeningRoundBrace": true,
56-
"beforeOpeningCurlyBrace": true
57-
},
58-
"requireBlocksOnNewline": true,
59-
"disallowEmptyBlocks": true,
60-
"disallowSpacesInsideObjectBrackets": true,
61-
"disallowSpacesInsideArrayBrackets": true,
62-
"disallowSpacesInsideParentheses": true,
63-
"requireSpacesInsideObjectBrackets": "all",
64-
"disallowDanglingUnderscores": true,
65-
"disallowSpaceAfterObjectKeys": true,
66-
"requireCommaBeforeLineBreak": true,
67-
"requireOperatorBeforeLineBreak": [
68-
"?",
69-
"+",
70-
"-",
71-
"/",
72-
"*",
73-
"=",
74-
"==",
75-
"===",
76-
"!=",
77-
"!==",
78-
">",
79-
">=",
80-
"<",
81-
"<="
82-
],
83-
"requireSpaceBeforeBinaryOperators": [
84-
"+",
85-
"-",
86-
"/",
87-
"*",
88-
"=",
89-
"==",
90-
"===",
91-
"!=",
92-
"!=="
93-
],
94-
"requireSpaceAfterBinaryOperators": [
95-
"+",
96-
"-",
97-
"/",
98-
"*",
99-
"=",
100-
"==",
101-
"===",
102-
"!=",
103-
"!=="
104-
],
105-
"disallowSpaceAfterPrefixUnaryOperators": [
106-
"++",
107-
"--",
108-
"+",
109-
"-",
110-
"~",
111-
"!"
112-
],
113-
"disallowSpaceBeforePostfixUnaryOperators": [
114-
"++",
115-
"--"
116-
],
117-
"disallowImplicitTypeConversion": [
118-
"numeric",
119-
"boolean",
120-
"binary",
121-
"string"
122-
],
123-
"requireCamelCaseOrUpperCaseIdentifiers": true,
124-
"disallowKeywords": [
125-
"with"
126-
],
127-
"disallowMultipleLineStrings": true,
128-
"disallowMultipleLineBreaks": true,
129-
"validateLineBreaks": "LF",
130-
"validateQuoteMarks": "'",
131-
"disallowMixedSpacesAndTabs": true,
132-
"disallowTrailingWhitespace": true,
133-
"disallowTrailingComma": true,
134-
"disallowKeywordsOnNewLine": [
135-
"else"
136-
],
137-
"requireLineFeedAtFileEnd": true,
138-
"requireCapitalizedConstructors": true,
139-
"safeContextKeyword": "self",
140-
"requireDotNotation": true,
141-
"disallowYodaConditions": true
41+
}
14242
}

package.json

+16-11
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,29 @@
1515
"dependencies": {
1616
"unist-util-visit": "^1.0.0"
1717
},
18-
"repository": "wooorm/mdast-util-definitions",
19-
"author": "Titus Wormer <[email protected]>",
18+
"repository": "https://github.com/wooorm/mdast-util-definitions",
19+
"bugs": "https://github.com/wooorm/mdast-util-definitions/issues",
20+
"author": "Titus Wormer <[email protected]> (http://wooorm.com)",
21+
"contributors": [
22+
"Titus Wormer <[email protected]> (http://wooorm.com)"
23+
],
2024
"files": [
2125
"index.js"
2226
],
2327
"devDependencies": {
2428
"browserify": "^13.0.0",
25-
"eslint": "^1.0.0",
29+
"eslint": "^2.0.0",
2630
"esmangle": "^1.0.0",
2731
"istanbul": "^0.4.0",
28-
"jscs": "^2.0.0",
29-
"jscs-jsdoc": "^1.0.0",
30-
"remark": "^3.0.0",
31-
"remark-comment-config": "^2.0.0",
32-
"remark-github": "^3.0.0",
33-
"remark-lint": "^2.0.0",
34-
"remark-slug": "^3.0.0",
35-
"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-slug": "^4.0.0",
40+
"remark-validate-links": "^4.0.0",
3641
"tape": "^4.0.0"
3742
},
3843
"scripts": {

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ compressed](https://github.com/wooorm/mdast-util-definitions/releases)).
2121
var remark = require('remark');
2222
var definitions = require('mdast-util-definitions');
2323

24-
var ast = remark.parse('[example]: http://example.com "Example"');
24+
var ast = remark().parse('[example]: http://example.com "Example"');
2525

2626
var getDefinition = definitions(ast);
2727

test.js

+12-8
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,26 @@ test('mdast-util-definitions', function (t) {
2626
'should fail without node'
2727
);
2828

29-
ast = remark.parse('[example]: http://example.com "Example"');
29+
ast = remark().parse('[example]: http://example.com "Example"');
3030
getDefinition = definitions(ast);
3131

3232
t.deepEqual(
3333
getDefinition('example'),
3434
{
3535
'type': 'definition',
3636
'identifier': 'example',
37-
'link': 'http://example.com',
37+
'url': 'http://example.com',
3838
'title': 'Example',
3939
'position': {
4040
'start': {
4141
'column': 1,
42-
'line': 1
42+
'line': 1,
43+
'offset': 0
4344
},
4445
'end': {
4546
'column': 40,
46-
'line': 1
47+
'line': 1,
48+
'offset': 39
4749
},
4850
'indent': []
4951
}
@@ -57,24 +59,26 @@ test('mdast-util-definitions', function (t) {
5759
'should return null when not found'
5860
);
5961

60-
ast = remark.parse('[__proto__]: http://proto.com "Proto"');
62+
ast = remark().parse('[__proto__]: http://proto.com "Proto"');
6163
getDefinition = definitions(ast);
6264

6365
t.deepEqual(
6466
getDefinition('__proto__'),
6567
{
6668
'type': 'definition',
6769
'identifier': '__proto__',
68-
'link': 'http://proto.com',
70+
'url': 'http://proto.com',
6971
'title': 'Proto',
7072
'position': {
7173
'start': {
7274
'column': 1,
73-
'line': 1
75+
'line': 1,
76+
'offset': 0
7477
},
7578
'end': {
7679
'column': 38,
77-
'line': 1
80+
'line': 1,
81+
'offset': 37
7882
},
7983
'indent': []
8084
}

0 commit comments

Comments
 (0)