Skip to content

Commit 5370142

Browse files
committed
Fix lint issues
1 parent 8d4f400 commit 5370142

File tree

15 files changed

+407
-34
lines changed

15 files changed

+407
-34
lines changed

demo-angular/package-lock.json

Lines changed: 114 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-angular/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"name": "@nativescript/template-blank-ng",
3+
"scripts": {
4+
"build.plugin": "cd ../src && npm run build",
5+
"ci.tslint": "npm i && tslint --config '../tslint.json' 'src/**/*.ts'"
6+
},
37
"main": "src/main.ts",
48
"displayName": "Blank",
59
"templateType": "App template",
@@ -58,7 +62,8 @@
5862
"@nativescript/types": "~8.0.0",
5963
"@nativescript/webpack": "beta",
6064
"@ngtools/webpack": "~12.0.0",
61-
"typescript": "~4.2.0"
65+
"typescript": "~4.2.0",
66+
"tslint": "6.1.3"
6267
},
6368
"private": "true",
6469
"readme": "NativeScript Application"

demo-angular/src/app/app-routing.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { NgModule } from '@angular/core'
2-
import { Routes } from '@angular/router'
3-
import { NativeScriptRouterModule } from '@nativescript/angular'
1+
import { NgModule } from '@angular/core';
2+
import { Routes } from '@angular/router';
3+
import { NativeScriptRouterModule } from '@nativescript/angular';
44

55
const routes: Routes = [
66
{ path: '', redirectTo: '/home', pathMatch: 'full' },
77
{
88
path: 'home',
99
loadChildren: () => import('~/app/home/home.module').then((m) => m.HomeModule),
1010
},
11-
]
11+
];
1212

1313
@NgModule({
1414
imports: [NativeScriptRouterModule.forRoot(routes)],

demo-angular/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from '@angular/core'
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'ns-app',

demo-angular/src/app/app.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'
2-
import { NativeScriptModule } from '@nativescript/angular'
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptModule } from '@nativescript/angular';
33
import { NativeScriptHttpClientModule } from "@klippa/nativescript-http/angular";
44

5-
import { AppRoutingModule } from './app-routing.module'
6-
import { AppComponent } from './app.component'
5+
import { AppRoutingModule } from './app-routing.module';
6+
import { AppComponent } from './app.component';
77

88
@NgModule({
99
bootstrap: [AppComponent],

demo-angular/src/app/home/home-routing.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { NgModule } from '@angular/core'
2-
import { Routes } from '@angular/router'
3-
import { NativeScriptRouterModule } from '@nativescript/angular'
1+
import { NgModule } from '@angular/core';
2+
import { Routes } from '@angular/router';
3+
import { NativeScriptRouterModule } from '@nativescript/angular';
44

5-
import { HomeComponent } from './home.component'
5+
import { HomeComponent } from './home.component';
66

7-
const routes: Routes = [{ path: '', component: HomeComponent }]
7+
const routes: Routes = [{ path: '', component: HomeComponent }];
88

99
@NgModule({
1010
imports: [NativeScriptRouterModule.forChild(routes)],

demo-angular/src/app/home/home.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'
2-
import { NativeScriptCommonModule } from '@nativescript/angular'
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule } from '@nativescript/angular';
33

4-
import { HomeRoutingModule } from './home-routing.module'
5-
import { HomeComponent } from './home.component'
4+
import { HomeRoutingModule } from './home-routing.module';
5+
import { HomeComponent } from './home.component';
66

77
@NgModule({
88
imports: [NativeScriptCommonModule, HomeRoutingModule],

demo-angular/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { platformNativeScript, runNativeScriptAngularApp } from '@nativescript/angular';
22

3-
import { AppModule } from './app/app.module'
3+
import { AppModule } from './app/app.module';
44

55
runNativeScriptAngularApp({
66
appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),

demo-vue/app/app.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import Vue from 'nativescript-vue'
2-
import Home from './components/Home.vue'
1+
import Vue from 'nativescript-vue';
2+
import Home from './components/Home.vue';
33

44
declare let __DEV__: boolean;
55

66
// Prints Vue logs when --env.production is *NOT* set while building
7-
Vue.config.silent = !__DEV__
7+
Vue.config.silent = !__DEV__;
88

99
new Vue({
1010
render: (h) => h('frame', [h(Home)]),
11-
}).$start()
11+
}).$start();

0 commit comments

Comments
 (0)