Skip to content

Commit 1ff7fa9

Browse files
committed
chore: add tsc lint
1 parent 4e84257 commit 1ff7fa9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "ng build",
77
"build:prod": "npm run build -- --configuration production && npm run cp:readme && npm run cp:license",
88
"test": "vitest run --config ./projects/ngx-quill/vite.config.ts",
9-
"lint": "eslint",
9+
"lint": "eslint && npx tsc",
1010
"e2e": "ng e2e",
1111
"cp:readme": "cp ./README.md ./dist/ngx-quill",
1212
"cp:license": "cp ./LICENSE.txt ./dist/ngx-quill"

projects/ngx-quill/src/lib/quill-editor.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ class TestComponent {
6868
color?: string
6969
height?: string
7070
} | null>({ height: '30px' })
71-
editor: Quill
71+
editor: Quill | undefined
7272
debounceTime = signal(0)
73-
format = signal('html')
73+
format = signal<string | undefined>('html')
7474
changed: any
7575
changedEditor: any
7676
selected: any

projects/ngx-quill/src/lib/quill-view-html.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('Basic QuillViewHTMLComponent', () => {
2626
describe('QuillViewHTMLComponent - content', () => {
2727
let fixture: ComponentFixture<QuillViewHTMLComponent>
2828
let content: WritableSignal<any>
29-
const theme = signal('snow')
29+
const theme = signal<string | undefined>('snow')
3030

3131
beforeEach(async () => {
3232
content = signal('<p>Hallo</p>')
@@ -74,7 +74,7 @@ describe('QuillViewHTMLComponent - content', () => {
7474
describe('QuillViewHTMLComponent - sanitize', () => {
7575
let fixture: ComponentFixture<QuillViewHTMLComponent>
7676
let content: WritableSignal<any>
77-
const sanitize = signal(false)
77+
const sanitize = signal<boolean | undefined>(false)
7878

7979
beforeEach(async () => {
8080
content = signal('<p>Hallo <img src="wroooong.jpg" onerror="window.alert(\'sanitize me\')"></p>')

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"skipLibCheck": true,
1616
"target": "es2022",
1717
"strict": true,
18+
"noEmit": true,
1819
"useDefineForClassFields": false,
1920
"lib": [
2021
"es2018",

0 commit comments

Comments
 (0)