Skip to content

Releases: DavyJonesLocker/ember-suave

v4.0.0

Choose a tag to compare

@brzpegasus brzpegasus released this 09 Jul 04:04

New Rules

  • #108 Require const for variables from Ember properties (@alexlafroscia)
  • #133 New rule: disallow-spaces-in-generator

Other Changes

  • #128 Don't cache the rules for tests
  • #131 Make compatible with ember-cli-qunit@2.0.0 (@rwjblue)
  • #134 Bump Ember CLI

v3.0.1

Choose a tag to compare

@brzpegasus brzpegasus released this 16 Jun 16:06

Bug Fixes

  • #127 Fixes jscs and cst dependencies

Suavy Saturday

Choose a tag to compare

@brzpegasus brzpegasus released this 11 Jun 14:56

New Rules

Other Changes

It's About Time

Choose a tag to compare

@brzpegasus brzpegasus released this 13 Feb 00:34

This is a long overdue release and is a major version bump, due to the introduction of new rules in the preset that would cause a new set of JSCS errors in existing projects. See the clarification in the README regarding versioning.

This release does include the rather controversial disallowConstOutsideModuleScope rule in the default preset, following this school of thinking. If you do not wish to use it, feel free to turn it off in your .jscsrc file.

New Rules

Other Changes

Movin' On Up!

Choose a tag to compare

@rwjblue rwjblue released this 20 Nov 17:08

Ember Suave 1.2.3 has been released. A number of the custom rules that were developed for ember-suave have been moved upstream into JSCS itself and are included in JSCS 2.6.0. Yeah for less code!

Note: Since the globally installed version of JSCS is commonly used by text editor plugins (and many other integration points) you should update the globally installed version of JSCS via the following:

npm install -g jscs@2.6.0

Suave just got way suaver

Choose a tag to compare

@brzpegasus brzpegasus released this 15 Oct 16:18

With the added support for JSCS presets, managing ember-suave default rules and your own custom configuration just got a whole lot easier. Your project's .jscsrc file only needs to look like this:

{
  "preset": "ember-suave"
}

or this, if you want to customize some rules:

{
  "preset": "ember-suave",
  "additionalRules": ["./lib/rules/*.js"],
  "myAwesomeCustomRule": true,
  "disallowEmptyBlocks": null
}

This means better integration with custom editors as well. Please review the README for more info.

Many thanks to @rwjblue for making this happen!

Upgrading

  • If you already have a custom .jscsrc file, simply add "preset": "ember-suave".
  • If you don't already have a .jscsrc file in your project, run ember generate ember-suave to get one.

TGIF

Choose a tag to compare

@brzpegasus brzpegasus released this 11 Sep 22:11

When running tests in the browser with ember-cli-qunit, you now have the option to disable JSCS tests just as you can with JSHint tests. The option appears as a checkbox in the QUnit toolbar, and is unchecked by default.

You will need to upgrade to ember-cli-test-loader@0.2.1 and ember-cli-qunit@1.0.3 to get the "Disable JSCS" functionality.

Changes

  • #60 Add space in requireEnhancedObjectLiterals error (@brettchalupa)
  • #52 New Rule: requireParenthesesAroundArrowParam
  • #63 Add disable jscs option to qunit (@toddjordan)

Leveling Up!

Choose a tag to compare

@brzpegasus brzpegasus released this 08 Aug 22:09

We've all been waiting for the day when const { get, set } = Ember; wouldn't blow up. Well, that day has come!

The recent release of JSCS 2.0 brought about lots of exciting new features and fixes, some of which are backwards incompatible. As such, ember-suave is getting a major version bump as well.

Changes

  • #54 Remove custom rule disallowSpacesBeforeSemicolons
  • #51 Upgrade to JSCS 2.0
  • #48 Default to showing the rule name next to each error message
  • #29 Find a rule to disallow space before parentheses in object method shorthand notation

Breaking Changes

  • The previous disallowSpacesBeforeSemicolons custom rule has been removed as it is now built into JSCS as disallowSpaceBeforeSemicolon (note the slight name difference).
  • If you've previously created a custom .jscsrc file in your project to override ember-suave defaults, please take note of the deprecated rules that JSCS 2.0 has now removed.

Power to the User

Choose a tag to compare

@brzpegasus brzpegasus released this 27 Apr 00:50

Users of the addon can now customize the rules pre-set by ember-suave by providing their own .jscsrc file at the root of their project folder. Any rules specified in that file will be merged with those in the default JSCS config. Rules can also be disabled by setting their values to null.

Sad Puppies

Choose a tag to compare

@brzpegasus brzpegasus released this 27 Apr 00:41

This release removes the support for destructuring with get and set introduced in v0.1.5 due to compatibility issues with JSCS.