Skip to content

Releases: DavyJonesLocker/ember-suave

v4.0.0

09 Jul 04:04
Compare
Choose a tag to compare

New Rules

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

Other Changes

v3.0.1

16 Jun 16:06
Compare
Choose a tag to compare

Bug Fixes

  • #127 Fixes jscs and cst dependencies

Suavy Saturday

11 Jun 14:56
Compare
Choose a tag to compare

New Rules

Other Changes

It's About Time

13 Feb 00:34
Compare
Choose a tag to compare

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!

20 Nov 17:08
Compare
Choose a tag to compare

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 [email protected]

Suave just got way suaver

15 Oct 16:18
Compare
Choose a tag to compare

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

11 Sep 22:11
Compare
Choose a tag to compare

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 [email protected] and [email protected] 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!

08 Aug 22:09
Compare
Choose a tag to compare

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

27 Apr 00:50
Compare
Choose a tag to compare

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

27 Apr 00:41
Compare
Choose a tag to compare

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