Releases: DavyJonesLocker/ember-suave
Cool Weapons
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
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!!
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
- This release introduces a new custom rule,
disallowVar
, that enforces the use oflet
andconst
instead ofvar
. requireLineBreakAfterVariableAssignment
is now removed, pending a fix in JSCS (#4).
Rules
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
Initial release, with only a few basic rules.
Stay tuned for more awesome...