Skip to content

Releases: DavyJonesLocker/ember-suave

Cool Weapons

25 Apr 17:06
Compare
Choose a tag to compare

Destructuring is awesome, and now you can use destructuring with get and set!

Previously, using the following would trigger a parse error during JSCS parsing:

const { get, set } = Ember;

This now works perfectly, thanks to help from the JSCS folks for the work around!

Objects Are Cool Kids TOO

25 Apr 12:49
Compare
Choose a tag to compare

This release adds a new rule to ensure usage of the enhanced object literal syntax in ES2015.

A few examples:

// bad
let foo = {
 bar: bar
};

// good
let foo = {
  bar
};

// bad
let foo = {
  bar: function(first, second) { }
};

// good
let foo = {
  bar(first, second) { }
}

Template Strings ALL THE WAY!!

24 Apr 17:53
Compare
Choose a tag to compare

This release adds a new rule requiring that all string concatenation be done via template strings.

// bad
let foo = "blah" + bar;
someFunction("foo '" + baz + "'");

// good
let foo = `blah${bar}`;
someFunction(`foo '${baz}`);

ES2015 is the new cool

21 Apr 16:40
Compare
Choose a tag to compare
  • This release introduces a new custom rule, disallowVar, that enforces the use of let and const instead of var.
  • requireLineBreakAfterVariableAssignment is now removed, pending a fix in JSCS (#4).

Rules

21 Apr 16:30
Compare
Choose a tag to compare

This version ships with a more comprehensive JSCS configuration file based on styling rules established at DockYard.

Each rule also comes with self-documenting tests, with good and bad examples that can be used in the future to auto-generate a style guide.

Joe Cool

20 Apr 18:58
Compare
Choose a tag to compare

Initial release, with only a few basic rules.

Stay tuned for more awesome...