We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 supports "this" as a return type, but "eslint-plugin-jsdocs" takes it as undefined.
{ "resource": "****************/test.ts", "owner": "eslint", "code": { "value": "jsdoc/no-undefined-types", "target": { "$mid": 1, "external": "https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-no-undefined-types", "path": "/gajus/eslint-plugin-jsdoc", "scheme": "https", "authority": "github.com", "fragment": "eslint-plugin-jsdoc-rules-no-undefined-types" } }, "severity": 4, "message": "The type 'this' is undefined.", "source": "eslint", "startLineNumber": 5, "startColumn": 1, "endLineNumber": 5, "endColumn": 1 }
{ "env": { "browser": true, "es6": true }, "extends": ["standard", "plugin:jsdoc/recommended"], "plugins": ["jsdoc"], "parserOptions": { "ecmaVersion": 2016, "sourceType": "module" }, "rules": { "semi": ["error", "always"], "multiline-comment-style": "error", // for JSDOC "max-len": ["error", { "code": 80, "tabWidth": 4, "ignoreUrls": true }], }, "overrides": [ { // TypeScript "files": ["**/*.ts", "**/*.tsx"], "extends": ["standard-with-typescript"], "plugins": ["@typescript-eslint"], "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json" }, "rules": { "max-len": "warn", "@typescript-eslint/semi": ["error", "always"] } } ] }
class Test { /** * Method. * * @returns {this} Return description. */ method (): this { return this; } }
eslint-plugin-jsdoc
The text was updated successfully, but these errors were encountered:
bda5959
🎉 This issue has been resolved in version 30.7.9 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
Expected behavior
JSDoc supports "this" as a return type, but "eslint-plugin-jsdocs" takes it as undefined.
Actual behavior
ESLint Config
ESLint sample
Environment
eslint-plugin-jsdoc
version: 30.7.8The text was updated successfully, but these errors were encountered: