jscs-jsdoc icon indicating copy to clipboard operation
jscs-jsdoc copied to clipboard

enforce existence for classes

Open AlexanderZeilmann opened this issue 10 years ago • 0 comments

Currently, enforce-existence only enforces the existence of jsdoc comments for functions, but not for classes. I.e. in the following constructor is required to have a jsdoc comment, but the class itself is not.

class Point {
  constructor(x, y) {
    this.x = x;
    this.y = y;
  }
}

I'd like it, if the rule was also enforce the existence of jsdoc comments on classes.

Thoughts?

AlexanderZeilmann avatar Aug 31 '15 14:08 AlexanderZeilmann