Skip to content

Commit e496523

Browse files
brokentonegajus
authored andcommitted
fix: update dependencies (#81)
* Update dependencies * Fix lint errors raised after lint update
1 parent 605ef1c commit e496523

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"url": "http://gajus.com"
66
},
77
"dependencies": {
8-
"comment-parser": "^0.4.2",
8+
"comment-parser": "^0.5.0",
99
"jsdoctypeparser": "^2.0.0-alpha-8",
1010
"lodash": "^4.17.4"
1111
},
@@ -18,13 +18,14 @@
1818
"babel-preset-es2015": "^6.24.1",
1919
"babel-register": "^6.26.0",
2020
"chai": "^4.1.2",
21-
"eslint": "^4.19.1",
22-
"eslint-config-canonical": "^9.3.1",
21+
"eslint": "^5.4.0",
22+
"eslint-config-canonical": "^12.0.0",
2323
"gitdown": "^2.5.1",
2424
"glob": "^7.1.2",
25-
"globby": "^6.1.0",
26-
"mocha": "^3.5.3",
27-
"semantic-release": "^8.0.3"
25+
"globby": "^8.0.1",
26+
"marked": "^0.4.0",
27+
"mocha": "^5.2.0",
28+
"semantic-release": "^15.9.9"
2829
},
2930
"engines": {
3031
"node": ">=4"

src/bin/readme-assertions.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const trimCode = (code) => {
1313

1414
const indentSize = indendation ? indendation[0].length : 0;
1515

16-
lines = _.map(lines, (line, i) => {
17-
if (i === 0) {
16+
lines = _.map(lines, (line, index) => {
17+
if (index === 0) {
1818
return line;
1919
}
2020

@@ -75,11 +75,10 @@ const updateDocuments = (assertions) => {
7575

7676
if (!ruleAssertions) {
7777
throw new Error('No assertions available for rule "' + ruleName + '".');
78-
79-
return assertionsBlock;
8078
}
8179

82-
return 'The following patterns are considered problems:\n\n```js\n' + ruleAssertions.invalid.join('\n\n') + '\n```\n\nThe following patterns are not considered problems:\n\n```js\n' + ruleAssertions.valid.join('\n\n') + '\n```\n';
80+
return 'The following patterns are considered problems:\n\n```js\n' + ruleAssertions.invalid.join('\n\n') +
81+
'\n```\n\nThe following patterns are not considered problems:\n\n```js\n' + ruleAssertions.valid.join('\n\n') + '\n```\n';
8382
});
8483

8584
fs.writeFileSync(readmeDocumentPath, documentBody);

src/rules/checkParamNames.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ const validateParameterNamesDeep = (targetTagName : string, jsdocParameterNames
4141
const pathRootNodeName = jsdocParameterName.slice(0, jsdocParameterName.indexOf('.'));
4242

4343
if (pathRootNodeName !== lastRealParameter) {
44-
report('@' + targetTagName + ' path declaration ("' + jsdocParameterName + '") root node name ("' + pathRootNodeName + '") does not match previous real parameter name ("' + lastRealParameter + '").');
44+
report('@' + targetTagName + ' path declaration ("' + jsdocParameterName + '") root node name ("' +
45+
pathRootNodeName + '") does not match previous real parameter name ("' + lastRealParameter + '").');
4546

4647
return true;
4748
}

src/rules/checkTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from 'lodash';
22
import {parse, traverse, publish} from 'jsdoctypeparser';
3-
import iterateJsdoc from './../iterateJsdoc';
3+
import iterateJsdoc from '../iterateJsdoc';
44

55
let targetTags = [
66
'class',

test/jsdocUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import {
44
expect
55
} from 'chai';
6-
import jsdocUtils from './../src/jsdocUtils';
6+
import jsdocUtils from '../src/jsdocUtils';
77

88
describe('jsdocUtils', () => {
99
describe('getPreferredTagName()', () => {

0 commit comments

Comments
 (0)