Skip to content

Commit

Permalink
chore(all): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 27, 2017
1 parent 029bb9e commit bde8ffc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/framework-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,8 @@ export class FrameworkConfiguration {
*/
feature(plugin: string, config?: any = {}): FrameworkConfiguration {
let hasIndex = /\/index$/i.test(plugin);
let moduleId = hasIndex || getExt(plugin) ?
plugin :
plugin + '/index';
let root = hasIndex ?
plugin.substr(0, plugin.length - 6) :
plugin;
let moduleId = hasIndex || getExt(plugin) ? plugin : plugin + '/index';
let root = hasIndex ? plugin.substr(0, plugin.length - 6) : plugin;
return this.plugin({ moduleId, resourcesRelativeTo: [root, ''], config });
}

Expand Down Expand Up @@ -290,8 +286,8 @@ export class FrameworkConfiguration {

// Default configuration helpers
// Note: Please do NOT add PLATFORM.moduleName() around those module names.
// Those functions are not guaranteed to be called, they are here to faciliate
// common configurations. If they are not called, we don't want to include a
// Those functions are not guaranteed to be called, they are here to faciliate
// common configurations. If they are not called, we don't want to include a
// static dependency on those modules.
// Including those modules in the bundle or not is a decision that must be
// taken by the bundling tool, at build time.
Expand Down

0 comments on commit bde8ffc

Please sign in to comment.