Skip to content

Commit 0d92528

Browse files
committed
chore(angular): add lint script
1 parent 1c22294 commit 0d92528

File tree

20 files changed

+50
-41
lines changed

20 files changed

+50
-41
lines changed

examples/angular/basic/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8-
"watch": "ng build --watch --configuration development"
8+
"watch": "ng build --watch --configuration development",
9+
"lint": "eslint ./src"
910
},
1011
"private": true,
1112
"packageManager": "pnpm@9.15.0",

examples/angular/basic/src/app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
2-
import type { ColumnDef } from '@tanstack/angular-table'
32
import { FlexRender, injectTable, tableFeatures } from '@tanstack/angular-table'
3+
import type { ColumnDef } from '@tanstack/angular-table'
44

55
// This example uses the classic standalone `injectTable` hook to create a table without the new `createTableHook` util.
66

examples/angular/column-ordering/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"lint": "eslint ./src",
89
"watch": "ng build --watch --configuration development"
910
},
1011
"private": true,

examples/angular/column-pinning-sticky/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"lint": "eslint ./src",
89
"watch": "ng build --watch --configuration development"
910
},
1011
"private": true,

examples/angular/column-pinning/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"lint": "eslint ./src",
89
"watch": "ng build --watch --configuration development"
910
},
1011
"private": true,

examples/angular/column-resizing-performant/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"lint": "eslint ./src",
89
"watch": "ng build --watch --configuration development"
910
},
1011
"private": true,

examples/angular/column-resizing-performant/src/app/makeData.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export type Person = {
77
visits: number
88
progress: number
99
status: 'relationship' | 'complicated' | 'single'
10-
subRows?: Person[]
10+
subRows?: Array<Person>
1111
}
1212

1313
const range = (len: number) => {
14-
const arr: number[] = []
14+
const arr: Array<number> = []
1515
for (let i = 0; i < len; i++) {
1616
arr.push(i)
1717
}
@@ -29,13 +29,13 @@ const newPerson = (): Person => {
2929
'relationship',
3030
'complicated',
3131
'single',
32-
])[0]!,
32+
])[0],
3333
}
3434
}
3535

36-
export function makeData(...lens: number[]) {
37-
const makeDataLevel = (depth = 0): Person[] => {
38-
const len = lens[depth]!
36+
export function makeData(...lens: Array<number>) {
37+
const makeDataLevel = (depth = 0): Array<Person> => {
38+
const len = lens[depth]
3939
return range(len).map((d): Person => {
4040
return {
4141
...newPerson(),

examples/angular/column-visibility/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"lint": "eslint ./src",
89
"watch": "ng build --watch --configuration development"
910
},
1011
"private": true,

examples/angular/editable/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"lint": "eslint ./src",
89
"watch": "ng build --watch --configuration development"
910
},
1011
"private": true,

examples/angular/editable/src/app/makeData.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export type Person = {
77
visits: number
88
progress: number
99
status: 'relationship' | 'complicated' | 'single'
10-
subRows?: Person[]
10+
subRows?: Array<Person>
1111
}
1212

1313
const range = (len: number) => {
14-
const arr: number[] = []
14+
const arr: Array<number> = []
1515
for (let i = 0; i < len; i++) {
1616
arr.push(i)
1717
}
@@ -29,13 +29,13 @@ const newPerson = (): Person => {
2929
'relationship',
3030
'complicated',
3131
'single',
32-
])[0]!,
32+
])[0],
3333
}
3434
}
3535

36-
export function makeData(...lens: number[]) {
37-
const makeDataLevel = (depth = 0): Person[] => {
38-
const len = lens[depth]!
36+
export function makeData(...lens: Array<number>) {
37+
const makeDataLevel = (depth = 0): Array<Person> => {
38+
const len = lens[depth]
3939
return range(len).map((d): Person => {
4040
return {
4141
...newPerson(),

0 commit comments

Comments
 (0)