Skip to content

Commit 435de5f

Browse files
chore(lint): typescript 린트 규칙 수정#120
1 parent ac2fb63 commit 435de5f

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/composables/useMaterializeInput.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ export function useMaterializeInput(dataSource, options) {
2424
for (const attr of Object.keys(record)) {
2525
if (!(attr in newAllFilters)) {
2626
newAllFilters[attr] = {}
27-
if (recordsProcessed > 0) { newAllFilters[attr].null = recordsProcessed }
27+
if (recordsProcessed > 0) {
28+
newAllFilters[attr].null = recordsProcessed
29+
}
2830
}
2931
}
3032

3133
for (const attr in newAllFilters) {
3234
const value = attr in record ? record[attr] : 'null'
33-
if (!(value in newAllFilters[attr])) { newAllFilters[attr][value] = 0 }
35+
if (!(value in newAllFilters[attr])) {
36+
newAllFilters[attr][value] = 0
37+
}
3438
newAllFilters[attr][value]++
3539
}
3640

@@ -51,7 +55,9 @@ export function useMaterializeInput(dataSource, options) {
5155

5256
watch(
5357
() => options.derivedAttributes.value,
54-
() => { processData(dataSource.value) }
58+
() => {
59+
processData(dataSource.value)
60+
}
5561
)
5662

5763
return {

tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
"jsx": "preserve",
1515

1616
/* Linting */
17-
"strict": true,
18-
"noImplicitAny": false,
17+
"strict": false,
18+
"strictNullChecks": true,
19+
"strictBindCallApply": true,
20+
"strictPropertyInitialization": true,
21+
"noImplicitAny": true,
1922
"noUnusedLocals": true,
2023
"noUnusedParameters": true,
2124
"noFallthroughCasesInSwitch": true,

0 commit comments

Comments
 (0)