Releases: DavyJonesLocker/ember-suave
v4.0.0
v3.0.1
Suavy Saturday
New Rules
Other Changes
- #110 Add support for Mocha (@HeroicEric)
- #112 Update dependencies and use new blueprint testing API (@Turbo87)
- #120 Update to JSCS 3.0 (@martndemus)
It's About Time
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
- requireNumericLiterals @xtian
- requireSpread @xtian
- disallowConstOutsideModuleScope @rwjblue
- Rules from jscs-ember-deprecations @rwjblue @minichate
Other Changes
- #90 Remove 1.x compatibility code
- #99-#101 Upgrade Ember CLI and other dependencies @twokul @brzpegasus
Movin' On Up!
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
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, runember generate ember-suave
to get one.
TGIF
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!
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 asdisallowSpaceBeforeSemicolon
(note the slight name difference). - If you've previously created a custom
.jscsrc
file in your project to overrideember-suave
defaults, please take note of the deprecated rules that JSCS 2.0 has now removed.
Power to the User
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
This release removes the support for destructuring with get
and set
introduced in v0.1.5 due to compatibility issues with JSCS.