jscs-dev / jscs-jsdoc

JsDoc validation rules for jscs
MIT License
99 stars 35 forks source link

enforce existence for classes #147

Open AlexanderZeilmann opened 9 years ago

AlexanderZeilmann commented 9 years ago

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?