Skip to content

Commit

Permalink
chore: change to strict: true; add example of trimmed content
Browse files Browse the repository at this point in the history
  • Loading branch information
rars committed Mar 5, 2024
1 parent 0864841 commit 1ff7cf3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 deletions.
33 changes: 31 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,37 @@ import { Component } from '@angular/core';
imports: [InlineDiffComponent],
})
export class AppComponent {
public oldText = 'apples\noranges\nkiwis\ncarrots\n';
public newText = 'apples\npears\nkiwis\ngrapefruit\ncarrots\n';
public oldText = `apples
oranges
common text
common text
common text
common text
common text
common text
common text
common text
common text
common text
kiwis
carrots
`;
public newText = `apples
pears
common text
common text
common text
common text
common text
common text
common text
common text
common text
common text
kiwis
grapefruit
carrots
`;

public selectedLineChange(event: unknown): void {
console.log(event);
Expand Down
19 changes: 4 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,13 @@
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"strict": true,
"importHelpers": true,
"target": "ES2022",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"],
"paths": {
"ngx-diff": [
"dist/ngx-diff/ngx-diff",
"dist/ngx-diff"
]
"ngx-diff": ["dist/ngx-diff/ngx-diff", "dist/ngx-diff"]
},
"useDefineForClassFields": false
},
Expand Down

0 comments on commit 1ff7cf3

Please sign in to comment.