Eslint-plugin-jsdoc: v10.3.0-11.2.0 are broken due to missing dependency escape-regex-string

Created on 6 Jul 2019  路  3Comments  路  Source: gajus/eslint-plugin-jsdoc

302 introduced dependency escape-regex-string for parsing @example tags. However this package was added to devDependencies instead of to the package dependencies. As a result, all project development and tests are passing but the package fails for downstream consumers.

This was first released in version 10.3.0 and persists still in the current release v11.2.0

Error: Failed to load plugin 'jsdoc' declared in '--config': Cannot find module 'escape-regex-string'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/pgold/dev/autopilot-server/node_modules/eslint-plugin-jsdoc/dist/rules/checkExamples.js:10:49)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
released

Most helpful comment

Ugh, sorry about that... Too used to Rollup routines pulling it all together (and linting rules to complain about it). Plan to push out a fix shortly.

All 3 comments

Ugh, sorry about that... Too used to Rollup routines pulling it all together (and linting rules to complain about it). Plan to push out a fix shortly.

:tada: This issue has been resolved in version 11.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 15.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZacBrownBand picture ZacBrownBand  路  6Comments

ibbignerd picture ibbignerd  路  3Comments

sveyret picture sveyret  路  3Comments

zhaparoff picture zhaparoff  路  3Comments

MaxMilton picture MaxMilton  路  4Comments