Functionally identical to 2.0.0-beta.1
- Support ESLint 6
- Removed
valid-jsdocandrequire-jsdocrules since they were deprecated in ESLint 6 - Removed
camelcaserule in order to switch back to its original implementation
valid-jsdoc: handle the new error message type that was added ineslint@5.12
-
caps-const: fixed an exception on enum-variables checking -
event-const-value: fixed an exception on constant-variables checking -
New rules:
singular-enumno-jsdoc-type-multi-spaces
-
Renamed rules:
no-tabs-in-jsdoc-type->no-jsdoc-type-tabs
-
Removed rules:
statics-orderlines-between-staticprevent-unused-typedef-vars
-
Added
typefield to rule metas -
Support for global constants, enums and typedefs
-
Support for exported constants, enums and typedefs
-
abstract-class-name-prefix,interface-name-prefix: handle anonymous class declarations -
New rules:
prevent-unused-jsdoc-types
-
jsdoc-type-spacing: don't crash on an one-symbol token -
New rules:
jsdoc-type-indent
-
Preserve the head and the tail of a JSDoc during autofix
-
jsdoc-type-spacing: tolerate multiline types -
lines-around-class: fixed scope handling for node environment -
lines-between-statics: don't group static expressions [BREAKING] -
Handle class and static expressions defined through a variable declaration
- New redefinitions:
no-param-reassignto ignore report for self assignment with typecast
lines-around-class: handle nested classes
- Use public fork of Doctrine instead of local one
-
lines-around-class: use1as the default value forbeforeandafter -
prefer-shorthand-jsdoc-types: autofixing; removedconsistentoption -
jsdoc-type-spacing: autofixing; completely new options (seedocs/rules/jsdoc-type-spacing) -
jsdoc-type-application-dot: autofixing -
jsdoc-tags-order: autofixing -
JSDoc tokenization
-
Rules documentation is separated and extended
eslint@5
-
prefer-shorthand-jsdoc-types: handle params without type -
caps-const: skip computed properties of an enum -
New rules:
event-const-value
- New rules:
prefer-shorthand-jsdoc-typesprevent-unused-typedef-varsprevent-unused-meta-params
camelcase: handling of destructuring
-
no-unused-expressions: consider property definitions from the prototype -
caps-const,capitalized-enum,capitalized-typedef: removed autofixing to avoid destructive code changes -
New rules:
interface-name-prefixabstract-class-name-prefixno-tabs-in-jsdoc-type
-
New redefinitions:
camelcaseto ignore report for arguments which name hasopt_/var_prefixrequire-jsdocto consider class expressions alongside with class declarations
lines-around-class: attach only one JSDoc to class instead of all before/after commentslines-between-*: report about unexpected comments between nodes without trying to fix it
-
npm@5 -
no-empty-method: treat record (class marked by@record) as entity with allowed empty methods -
space-in-typecast: renamed totypecast-spacingto be consistent with ESLint conventions -
jsdoc-tags-order,no-restricted-jsdoc-tags: report error for jsdoc instead of its owner -
New rules:
jsdoc-type-spacingjsdoc-type-application-dotcapitalized-enumcapitalized-typedef
-
New redefinitions:
valid-jsdocto ignore report about "function has no return statement" for interface and record methodsno-unused-expressionsto ignore typedefs
jsdoc-tags-order,no-restricted-jsdoc-tags: extended known tags by JSDoc3 and Closure Compilerlines-between-*: report about unexpected code between nodes without trying to fix it
-
eslint@4 -
newline-before-after-class: paramnewlinesCountBeforerenamed tobefore -
newline-before-after-class: paramnewlinesCountAfterrenamed toafter -
newline-between-methods: paramnewlinesCountrenamed toamount -
newline-between-props: paramnewlinesCountrenamed toamount -
newline-between-statics: paramnewlinesCountrenamed toamount -
Renamed rules to be consistent with ESLint conventions:
newline-before-after-class->lines-around-classnewline-between-methods->lines-between-methodsnewline-between-props->lines-between-propsnewline-between-statics->lines-between-statics
space-in-typecast: more robust implementation*: handling of doctrine's parse exceptions
caps-const: added handling of literals in enummethods-order: added grouping by class to exclude misleading errorsprops-order: added grouping by class to exclude misleading errorsnewline-between-methods: added grouping by class to exclude misleading errorsnewline-between-props: added grouping by class to exclude misleading errors
- Initial release