Skip to content

Commit d3166c6

Browse files
committed
Update dependencies, dev-dependencies
1 parent f291787 commit d3166c6

14 files changed

+43
-56
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

.gitignore

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

+11-19
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@
88
"mdast-util-definitions.js",
99
"mdast-util-definitions.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

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2+
"output": true,
23
"plugins": [
4+
"comment-config",
35
"lint",
46
"github",
5-
"yaml-config"
7+
"slug",
8+
"validate-links"
69
],
710
"settings": {
811
"bullet": "*"

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ node_js:
66
- '0.12'
77
- iojs
88
sudo: false
9-
after_script: npm install [email protected] && cat ./coverage/lcov.info | coveralls
9+
after_script: npm install codecov.io && cat ./coverage/lcov.info | codecov

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"cache"
1313
],
1414
"dependencies": {
15-
"wooorm/mdast-util-visit": "~0.1.1"
15+
"wooorm/unist-util-visit": "^1.0.0"
1616
},
1717
"repository": "wooorm/mdast-util-definitions",
1818
"scripts": [

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* @author Titus Wormer
33
* @copyright 2015 Titus Wormer. All rights reserved.
4+
* @license MIT
45
* @module mdast:util:definitions
56
* @fileoverview Get a definition in `node` by `identifier`.
67
*/
@@ -11,7 +12,7 @@
1112
* Dependencies.
1213
*/
1314

14-
var visit = require('mdast-util-visit');
15+
var visit = require('unist-util-visit');
1516

1617
/**
1718
* Factory to get a node from the given definition-cache.

mdast-util-definitions.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @author Titus Wormer
44
* @copyright 2015 Titus Wormer. All rights reserved.
5+
* @license MIT
56
* @module mdast:util:definitions
67
* @fileoverview Get a definition in `node` by `identifier`.
78
*/
@@ -12,7 +13,7 @@
1213
* Dependencies.
1314
*/
1415

15-
var visit = require('mdast-util-visit');
16+
var visit = require('unist-util-visit');
1617

1718
/**
1819
* Factory to get a node from the given definition-cache.
@@ -91,12 +92,12 @@ function getDefinitionFactory(node) {
9192

9293
module.exports = getDefinitionFactory;
9394

94-
},{"mdast-util-visit":2}],2:[function(require,module,exports){
95+
},{"unist-util-visit":2}],2:[function(require,module,exports){
9596
/**
9697
* @author Titus Wormer
9798
* @copyright 2015 Titus Wormer. All rights reserved.
98-
* @module mdast-util-visit
99-
* @fileoverview Utility to recursively walk over mdast nodes.
99+
* @module unist:util:visit
100+
* @fileoverview Utility to recursively walk over unist nodes.
100101
*/
101102

102103
'use strict';

mdast-util-definitions.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+13-19
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,40 @@
1212
"cache"
1313
],
1414
"dependencies": {
15-
"mdast-util-visit": "^0.1.1"
16-
},
17-
"repository": {
18-
"type": "git",
19-
"url": "https://github.com/wooorm/mdast-util-definitions.git"
20-
},
21-
"author": {
22-
"name": "Titus Wormer",
23-
"email": "[email protected]"
15+
"unist-util-visit": "^1.0.0"
2416
},
17+
"repository": "wooorm/mdast-util-definitions",
18+
"author": "Titus Wormer <[email protected]>",
2519
"files": [
26-
"index.js",
27-
"LICENSE"
20+
"index.js"
2821
],
2922
"devDependencies": {
3023
"browserify": "^11.0.0",
31-
"eslint": "^0.24.0",
24+
"eslint": "^1.0.0",
3225
"esmangle": "^1.0.0",
3326
"istanbul": "^0.3.0",
34-
"jscs": "^1.0.0",
27+
"jscs": "^2.0.0",
3528
"jscs-jsdoc": "^1.0.0",
36-
"mdast": "^0.26.0",
29+
"mdast": "^1.0.0",
30+
"mdast-comment-config": "^1.0.0",
3731
"mdast-github": "^0.3.0",
38-
"mdast-lint": "^0.4.0",
39-
"mdast-yaml-config": "^0.2.0",
32+
"mdast-lint": "^1.0.0",
33+
"mdast-slug": "^1.0.0",
34+
"mdast-validate-links": "^0.3.0",
4035
"mocha": "^2.0.0"
4136
},
4237
"scripts": {
4338
"test-api": "mocha --check-leaks test.js",
44-
"test-coveralls": "istanbul cover _mocha --report lcovonly -- --check-leaks test.js",
4539
"test-coverage": "istanbul cover _mocha -- test.js",
46-
"test-travis": "npm run test-coveralls",
40+
"test-travis": "npm run test-coverage",
4741
"test": "npm run test-api",
4842
"lint-api": "eslint .",
4943
"lint-style": "jscs --reporter inline .",
5044
"lint": "npm run lint-api && npm run lint-style",
5145
"make": "npm run lint && npm run test-coverage",
5246
"bundle": "browserify index.js --no-builtins -s mdastUtilDefinitions > mdast-util-definitions.js",
5347
"postbundle": "esmangle mdast-util-definitions.js > mdast-util-definitions.min.js",
54-
"build-md": "mdast . --output --quiet",
48+
"build-md": "mdast . --quiet",
5549
"build": "npm run bundle && npm run build-md"
5650
}
5751
}

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mdast-util-definitions [![Build Status](https://img.shields.io/travis/wooorm/mdast-util-definitions.svg?style=flat)](https://travis-ci.org/wooorm/mdast-util-definitions) [![Coverage Status](https://img.shields.io/coveralls/wooorm/mdast-util-definitions.svg?style=flat)](https://coveralls.io/r/wooorm/mdast-util-definitions?branch=master)
1+
# mdast-util-definitions [![Build Status](https://img.shields.io/travis/wooorm/mdast-util-definitions.svg)](https://travis-ci.org/wooorm/mdast-util-definitions) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/mdast-util-definitions.svg)](https://codecov.io/github/wooorm/mdast-util-definitions)
22

33
Get a definition in `node` by `identifier`. Supports weird keys (like
44
`__proto__` or `toString`).

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* Dependencies.
77
*/
88

9-
var definitions = require('./index.js');
10-
var mdast = require('mdast');
119
var assert = require('assert');
10+
var mdast = require('mdast');
11+
var definitions = require('./index.js');
1212

1313
/*
1414
* Tests.

0 commit comments

Comments
 (0)