Skip to content

Violations not reported for ES6 classes and methods #704

@pyoor

Description

@pyoor

Expected behavior

Violations are reported for ES6 classes and methods.

Actual behavior

No violations are reported. Using the following example, I would expect jsdoc/require-jsdoc to be raised.

ESLint Config

module.exports = {
  env: {
    browser: true,
    node: true
  },
  root: true,
  parser: '@typescript-eslint/parser',
  plugins: [
    '@typescript-eslint',
    'jsdoc',
  ],
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/recommended',
    'plugin:jsdoc/recommended'
  ],
}

ESLint sample

export class hello {
    world(): void {
        console.log("hello world");
    }
}

Environment

  • Node version: v14.16.0
  • ESLint version: v7.22.0
  • eslint-plugin-jsdoc version: v4.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions