Skip to content

Commit 8bea627

Browse files
committed
chore: update comment-parser (patch), lodash (patch), semver (patch); devDeps.; update linting
1 parent 2c31db1 commit 8bea627

File tree

4 files changed

+23
-24
lines changed

4 files changed

+23
-24
lines changed

.ncurc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ module.exports = {
55
// somewhat older versions of `eslint` we still support even
66
// while our devDeps point to a more recent version
77
dep: 'prod,dev,optional,bundle',
8-
9-
// Todo [husky@>=6]: Might be MIT again
10-
reject: ['husky'],
118
};

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,41 @@
55
"url": "http://gajus.com"
66
},
77
"dependencies": {
8-
"comment-parser": "1.1.2",
8+
"comment-parser": "1.1.5",
99
"debug": "^4.3.1",
1010
"jsdoctypeparser": "^9.0.0",
11-
"lodash": "^4.17.20",
11+
"lodash": "^4.17.21",
1212
"regextras": "^0.7.1",
13-
"semver": "^7.3.4",
13+
"semver": "^7.3.5",
1414
"spdx-expression-parse": "^3.0.1"
1515
},
1616
"description": "JSDoc linting rules for ESLint.",
1717
"devDependencies": {
18-
"@babel/cli": "^7.12.16",
19-
"@babel/core": "^7.12.16",
20-
"@babel/eslint-parser": "^7.12.16",
21-
"@babel/node": "^7.12.16",
18+
"@babel/cli": "^7.13.16",
19+
"@babel/core": "^7.13.16",
20+
"@babel/eslint-parser": "^7.13.14",
21+
"@babel/node": "^7.13.13",
2222
"@babel/plugin-syntax-class-properties": "^7.12.13",
23-
"@babel/plugin-transform-flow-strip-types": "^7.12.13",
24-
"@babel/preset-env": "^7.12.16",
25-
"@babel/register": "^7.12.13",
23+
"@babel/plugin-transform-flow-strip-types": "^7.13.0",
24+
"@babel/preset-env": "^7.13.15",
25+
"@babel/register": "^7.13.16",
2626
"@hkdobrev/run-if-changed": "^0.3.1",
27-
"@typescript-eslint/parser": "^4.15.0",
27+
"@typescript-eslint/parser": "^4.22.0",
2828
"babel-plugin-add-module-exports": "^1.0.4",
2929
"babel-plugin-istanbul": "^6.0.0",
30-
"chai": "^4.3.0",
30+
"chai": "^4.3.4",
3131
"cross-env": "^7.0.3",
32-
"eslint": "7.20.0",
33-
"eslint-config-canonical": "^25.8.17",
32+
"eslint": "7.25.0",
33+
"eslint-config-canonical": "^26.2.2",
3434
"gitdown": "^3.1.4",
3535
"glob": "^7.1.6",
36-
"husky": "^4.3.8",
36+
"husky": "^6.0.0",
3737
"lint-staged": "^10.5.4",
38-
"mocha": "^8.3.0",
38+
"mocha": "^8.3.2",
3939
"nyc": "^15.1.0",
4040
"rimraf": "^3.0.2",
41-
"semantic-release": "^17.3.9",
42-
"typescript": "^4.1.5"
41+
"semantic-release": "^17.4.2",
42+
"typescript": "^4.2.4"
4343
},
4444
"engines": {
4545
"node": ">=10"

src/bin/generateReadme.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ const assertReadmeIsUpToDate = async () => {
130130

131131
const main = async () => {
132132
try {
133-
const hasCheckFlag = process.argv.some((arg) => {
134-
return arg === '--check';
135-
});
133+
const hasCheckFlag = process.argv.includes('--check');
136134

137135
if (hasCheckFlag) {
138136
await assertReadmeIsUpToDate();

src/jsdocUtils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ const isValidTag = (
324324
definedTags : Array,
325325
) : boolean => {
326326
const tagNames = getTagNamesForMode(mode, context);
327+
328+
// Todo[engine:node@>=12]: Switch to flatten
329+
330+
// eslint-disable-next-line unicorn/prefer-array-flat -- Not yet supported
327331
const validTagNames = Object.keys(tagNames).concat(_.flatten(Object.values(tagNames)));
328332
const additionalTags = definedTags;
329333
const allTags = validTagNames.concat(additionalTags);

0 commit comments

Comments
 (0)