Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsdoc/require-description-complete-sentence] TypeError: Expected a string #961

Closed
Aerendir opened this issue Jan 28, 2023 · 1 comment · Fixed by #962
Closed

[jsdoc/require-description-complete-sentence] TypeError: Expected a string #961

Aerendir opened this issue Jan 28, 2023 · 1 comment · Fixed by #962

Comments

@Aerendir
Copy link

The complete error:

Oops! Something went wrong! :(

ESLint: 8.32.0

TypeError: Expected a string
Occurred while linting /srv/app/assets/Business/Suppliers/components/Page.jsx:87
Rule: "jsdoc/require-description-complete-sentence"
    at module.exports (/srv/app/node_modules/escape-string-regexp/index.js:5:9)
    at Object.fix (/srv/app/node_modules/eslint-plugin-jsdoc/dist/rules/requireDescriptionCompleteSentence.js:66:75)
    at normalizeFixes (/srv/app/node_modules/eslint/lib/linter/report-translator.js:193:28)
    at /srv/app/node_modules/eslint/lib/linter/report-translator.js:364:49
    at Object.report (/srv/app/node_modules/eslint/lib/linter/linter.js:1089:41)
    at report (/srv/app/node_modules/eslint-plugin-jsdoc/dist/iterateJsdoc.js:734:13)
    at report (/srv/app/node_modules/eslint-plugin-jsdoc/dist/rules/requireDescriptionCompleteSentence.js:92:7)
    at /srv/app/node_modules/eslint-plugin-jsdoc/dist/rules/requireDescriptionCompleteSentence.js:101:7
    at Array.some (<anonymous>)
    at validateDescription (/srv/app/node_modules/eslint-plugin-jsdoc/dist/rules/requireDescriptionCompleteSentence.js:60:21)

The code causing the error:

/**
 * Maps the state to props.
 *
 * @param {object} state - The current state.
 * @param {object} ownProps - The props currently passed to the component.
 * @returns {{
 *    currentSupplierIntId: number,
 *    currentAccountIntId: number,
 *    isLoading: boolean
 *    }} - The props.
 */
const mapStateToProps = (state, ownProps) => {

If you need further info, please, ask for them and I'll provide them.

@github-actions
Copy link

🎉 This issue has been resolved in version 39.6.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants