How to exempt classes from function naming convention?

There's an inspection called "Function naming convention", which is initially configured to require an initial lowercase letter.  That's fine, but classes in javascript are also functions, and conventionally start with an uppercase letter.  Is there something I can do?  I tried putting @class in the jsdoc for the class, but WebStorm doesn't seem to notice it.

2 comments
Comment actions Permalink

There is no way to do this. Please file a feature request for a possibility to treat classes differently (may be a separate inspaction or an option) to youtrack, http://youtrack.jetbrains.com/issues/WEB

For now I can only suggest suppressing this inspection for classes by adding //noinspection FunctionNamingConventionJS comment

0

Please sign in to leave a comment.