This repository was archived by the owner on Mar 7, 2019. It is now read-only.
6.5.0
New rules
nonblock-statement-body-position: (warn) Enforce the location of single-line statementsNot really used because
curlyrule does not allow this kind of coding style at all. Enabled in case someone decides thatcurlyis not good enough for them 😱template-tag-spacing: (warn) Require spacing between template tags and their literalsno-compare-neg-zero: (error) Disallow comparing against -0react/forbid-foreign-prop-types: (warn) This rule forbids using another component's prop types unless they are explicitly imported/exportedreact/void-dom-elements-no-children: (error) Prevent void DOM elements (e.g.<img />,<br />) from receiving children
Rule changes
no-use-before-define: Classes are now also exempted from this rule, thus allowing them to be referenced before they are defined
Other changes
- Allow .js files to include JSX components (@arnostpleskot)