add tslint in demo shell #1641 (#1642)

This commit is contained in:
Eugenio Romano
2017-02-20 14:23:01 +00:00
committed by Denys Vuika
parent 59cbbcbe4d
commit 12abac0339
5 changed files with 12 additions and 16 deletions

View File

@@ -96,4 +96,3 @@ import {
bootstrap: [ AppComponent ] bootstrap: [ AppComponent ]
}) })
export class AppModule { } export class AppModule { }

View File

@@ -104,8 +104,8 @@ export class ActivitiDemoComponent implements AfterViewInit {
this.dataTasks = new ObjectDataTableAdapter( this.dataTasks = new ObjectDataTableAdapter(
[], [],
[ [
{ type: 'text', key: 'name', title: 'Name', cssClass: 'full-width name-column', sortable: true }, {type: 'text', key: 'name', title: 'Name', cssClass: 'full-width name-column', sortable: true},
{ type: 'text', key: 'created', title: 'Created', cssClass: 'hidden', sortable: true } {type: 'text', key: 'created', title: 'Created', cssClass: 'hidden', sortable: true}
] ]
); );
this.dataTasks.setSorting(new DataSorting('created', 'desc')); this.dataTasks.setSorting(new DataSorting('created', 'desc'));
@@ -113,8 +113,8 @@ export class ActivitiDemoComponent implements AfterViewInit {
this.dataProcesses = new ObjectDataTableAdapter( this.dataProcesses = new ObjectDataTableAdapter(
[], [],
[ [
{ type: 'text', key: 'name', title: 'Name', cssClass: 'full-width name-column', sortable: true }, {type: 'text', key: 'name', title: 'Name', cssClass: 'full-width name-column', sortable: true},
{ type: 'text', key: 'started', title: 'Started', cssClass: 'hidden', sortable: true } {type: 'text', key: 'started', title: 'Started', cssClass: 'hidden', sortable: true}
] ]
); );
this.dataProcesses.setSorting(new DataSorting('started', 'desc')); this.dataProcesses.setSorting(new DataSorting('started', 'desc'));
@@ -211,8 +211,8 @@ export class ActivitiDemoComponent implements AfterViewInit {
this.selectFirstElementInReportList(); this.selectFirstElementInReportList();
} }
selectFirstElementInReportList(){ selectFirstElementInReportList() {
if (! this.analyticsreportlist.isReportsEmpty()) { if (!this.analyticsreportlist.isReportsEmpty()) {
this.analyticsreportlist.selectReport(this.analyticsreportlist.reports[0]); this.analyticsreportlist.selectReport(this.analyticsreportlist.reports[0]);
} }
} }

View File

@@ -17,7 +17,6 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { MinimalNodeEntity } from 'alfresco-js-api';
@Component({ @Component({
selector: 'search-component', selector: 'search-component',

View File

@@ -9,10 +9,10 @@
"start:dist": "wsrv -s dist/ -p 3000 -a 0.0.0.0", "start:dist": "wsrv -s dist/ -p 3000 -a 0.0.0.0",
"clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'", "clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'",
"test": "karma start", "test": "karma start",
"build": "npm run server-versions && rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail", "build": "npm run tslint && npm run server-versions && rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
"server-versions": "rimraf versions.json && npm list --depth=0 --json=true --prod=true > versions.json || exit 0", "server-versions": "rimraf versions.json && npm list --depth=0 --json=true --prod=true > versions.json || exit 0",
"aws": "node app.js", "aws": "node app.js",
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'app/{,**/}**.ts'", "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'app/{,**/}**.ts' -e 'app/vendor.ts' -e 'app/polyfills.ts' ",
"licensecheck": "license-check" "licensecheck": "license-check"
}, },
"repository": { "repository": {

View File

@@ -3,7 +3,6 @@
"align": [ "align": [
true, true,
"parameters", "parameters",
"arguments",
"statements" "statements"
], ],
"ban": false, "ban": false,
@@ -29,15 +28,14 @@
], ],
"member-ordering": [ "member-ordering": [
true, true,
"public-before-private",
"static-before-instance", "static-before-instance",
"variables-before-functions" "variables-before-functions"
], ],
"no-any": false, "no-any": false,
"no-arg": true, "no-arg": true,
"no-bitwise": true, "no-bitwise": false,
"no-conditional-assignment": true, "no-conditional-assignment": true,
"no-consecutive-blank-lines": false, "no-consecutive-blank-lines": true,
"no-console": [ "no-console": [
true, true,
"debug", "debug",
@@ -51,7 +49,7 @@
"no-debugger": true, "no-debugger": true,
"no-duplicate-key": true, "no-duplicate-key": true,
"no-duplicate-variable": true, "no-duplicate-variable": true,
"no-empty": true, "no-empty": false,
"no-eval": true, "no-eval": true,
"no-inferrable-types": false, "no-inferrable-types": false,
"no-internal-module": true, "no-internal-module": true,
@@ -64,7 +62,7 @@
"no-unused-variable": true, "no-unused-variable": true,
"no-use-before-declare": true, "no-use-before-declare": true,
"no-var-keyword": true, "no-var-keyword": true,
"no-var-requires": false, "no-var-requires": true,
"object-literal-sort-keys": false, "object-literal-sort-keys": false,
"one-line": [ "one-line": [
true, true,