Skip to content

Releases: ezhlobo/eslint-plugin-react-pug

v0.5.5

06 Sep 11:12
Compare
Choose a tag to compare

Fixed

  • Better handling of text-blocks (not fixed correctly in v0.5.4)

v0.5.4

06 Sep 10:40
Compare
Choose a tag to compare

Fixed

  • Stop requiring new lines for text-blocks (#49)
  • Stop reporting wrong indentation when we have multiline attributes (#50)

v0.5.3

03 Sep 20:53
Compare
Choose a tag to compare

Fixed

  • empty-lines rule now prohibits empty lines for nested items
  • Better handling of javascript in pug, require single quotes there

v0.5.2

30 Aug 10:55
Compare
Choose a tag to compare

Fixed

  • Fixed the issue when this plugin required double quotes in each declarations (PR: #43)
  • Respect text-only lines and does not require new lines around them

v0.5.1

29 Aug 11:01
Compare
Choose a tag to compare

Fixed

Require correct indentation according to where we use pug.

v0.5.0

29 Aug 09:45
Compare
Choose a tag to compare

Added

  • Rule empty-lines (Manage empty lines in Pug)

    • Require empty line in the beginning
    • Require empty line in the end
    • Require empty line before we go out from nesting
    • Require empty line between siblings (if there are more than 2 siblings)
    • Prohibit more than 1 empty line

    Request #36

  • Rule indent (This helps to be consistent with using indentation across the codebase. Basically it requires 2 spaces always)

    Request #35

v0.4.0

23 Aug 06:28
Compare
Choose a tag to compare

Added

  • Rule quotes (requires single quotes in code, double quotes in templates)
  • Rule no-interpolation (prohibit using JavaScript interpolation in templates)

Fixed

  • One-line templates now have correct location in reports (#31)
  • Moved docs to separate directory and make eslint point to them in case of any issue

Development

  • Make repository more attractive and easier to read (make README shorter, add badges, clean package.json, update dependencies)

v0.3.2

20 Jul 08:18
Compare
Choose a tag to compare

Fixed

  • Fixed no-broken-template when use interpolation (#26)

    div(class=${variable && 'class-name'})

v0.3.1

16 Apr 11:18
Compare
Choose a tag to compare

Fixed

  • Fixed using object in attribute values. Following code does not throw error anymore.

    Component(
      iam-object={ one: 'first', two: 'second' }
    )

v0.3.0

08 Apr 20:31
Compare
Choose a tag to compare

Breaking Changes

  • Now we show exactly where we use variable which is not defined.
  • If template is broken eslint continues working.

Added