Skip to content

Commit

Permalink
chore: update comment-parser (patch), lodash (patch), semver (patch);…
Browse files Browse the repository at this point in the history
… devDeps.; update linting
  • Loading branch information
brettz9 committed Apr 26, 2021
1 parent 2c31db1 commit 8bea627
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ module.exports = {
// somewhat older versions of `eslint` we still support even
// while our devDeps point to a more recent version
dep: 'prod,dev,optional,bundle',

// Todo [husky@>=6]: Might be MIT again
reject: ['husky'],
};
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@
"url": "http://gajus.com"
},
"dependencies": {
"comment-parser": "1.1.2",
"comment-parser": "1.1.5",
"debug": "^4.3.1",
"jsdoctypeparser": "^9.0.0",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"regextras": "^0.7.1",
"semver": "^7.3.4",
"semver": "^7.3.5",
"spdx-expression-parse": "^3.0.1"
},
"description": "JSDoc linting rules for ESLint.",
"devDependencies": {
"@babel/cli": "^7.12.16",
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@babel/node": "^7.12.16",
"@babel/cli": "^7.13.16",
"@babel/core": "^7.13.16",
"@babel/eslint-parser": "^7.13.14",
"@babel/node": "^7.13.13",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@babel/plugin-transform-flow-strip-types": "^7.12.13",
"@babel/preset-env": "^7.12.16",
"@babel/register": "^7.12.13",
"@babel/plugin-transform-flow-strip-types": "^7.13.0",
"@babel/preset-env": "^7.13.15",
"@babel/register": "^7.13.16",
"@hkdobrev/run-if-changed": "^0.3.1",
"@typescript-eslint/parser": "^4.15.0",
"@typescript-eslint/parser": "^4.22.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.3.0",
"chai": "^4.3.4",
"cross-env": "^7.0.3",
"eslint": "7.20.0",
"eslint-config-canonical": "^25.8.17",
"eslint": "7.25.0",
"eslint-config-canonical": "^26.2.2",
"gitdown": "^3.1.4",
"glob": "^7.1.6",
"husky": "^4.3.8",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"mocha": "^8.3.0",
"mocha": "^8.3.2",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.3.9",
"typescript": "^4.1.5"
"semantic-release": "^17.4.2",
"typescript": "^4.2.4"
},
"engines": {
"node": ">=10"
Expand Down
4 changes: 1 addition & 3 deletions src/bin/generateReadme.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ const assertReadmeIsUpToDate = async () => {

const main = async () => {
try {
const hasCheckFlag = process.argv.some((arg) => {
return arg === '--check';
});
const hasCheckFlag = process.argv.includes('--check');

if (hasCheckFlag) {
await assertReadmeIsUpToDate();
Expand Down
4 changes: 4 additions & 0 deletions src/jsdocUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ const isValidTag = (
definedTags : Array,
) : boolean => {
const tagNames = getTagNamesForMode(mode, context);

// Todo[engine:node@>=12]: Switch to flatten

// eslint-disable-next-line unicorn/prefer-array-flat -- Not yet supported
const validTagNames = Object.keys(tagNames).concat(_.flatten(Object.values(tagNames)));
const additionalTags = definedTags;
const allTags = validTagNames.concat(additionalTags);
Expand Down

0 comments on commit 8bea627

Please sign in to comment.