Skip to content

Commit

Permalink
Code cleanup (angular-redux#373)
Browse files Browse the repository at this point in the history
* Code cleanup

* stronger lint settings
* dead code removal

* consistent spacing, more dead code removal

* consistent spacing, more dead code removal

* consistent spacing, more dead code removal
  • Loading branch information
SethDavenport authored Apr 27, 2017
1 parent a8169bd commit cd99e02
Show file tree
Hide file tree
Showing 20 changed files with 474 additions and 2,786 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.tabSize": 2
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"rxjs": "^5.0.1",
"symbol-observable": "^1.0.1",
"ts-node": "^3.0.2",
"tslint": "^3.11.0",
"tslint": "^5.1.0",
"typescript": "^2.1.0",
"zone.js": "^0.8.4"
},
Expand Down
9 changes: 4 additions & 5 deletions src/components/dev-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const environment: any = typeof window !== 'undefined' ? window : this;
*/
@Injectable()
export class DevToolsExtension {
constructor(private appRef: ApplicationRef,
constructor(
private appRef: ApplicationRef,
private ngRedux: NgRedux<any>) { }

/**
Expand All @@ -18,7 +19,7 @@ export class DevToolsExtension {
* trigger Angular2's change detector.
*
* @argument { Object } options: dev tool options; same
* format as described here:
* format as described here:
* [zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md]
*/
enhancer = (options?: Object) => {
Expand Down Expand Up @@ -46,7 +47,5 @@ export class DevToolsExtension {
/**
* Returns true if the extension is installed and enabled.
*/
isEnabled() {
return environment && environment.devToolsExtension;
}
isEnabled = () => environment && environment.devToolsExtension
}
Loading

0 comments on commit cd99e02

Please sign in to comment.