Skip to content

Commit df4ecdd

Browse files
committed
fix: more strict tsconfig
1 parent 72586af commit df4ecdd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/CodeFormatManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Point, TextEditor, TextChange, Disposable } from "atom"
1+
import type { TextEditor, TextChange, Disposable } from "atom"
22
// TODO add to @types/atom
33
type AggregatedTextChange = {
44
changes: Array<TextChange>
@@ -173,7 +173,7 @@ export default class CodeFormatManager {
173173
return Observable.of(firstNonNull)
174174
}
175175
})
176-
.map(({ _, formatted }) => {
176+
.map(({ formatted }) => {
177177
return [
178178
{
179179
oldRange: editor.getBuffer().getRange(),

tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"compilerOptions": {
3-
"strict": false,
4-
"strictNullChecks": false,
5-
"noUnusedLocals": false,
6-
"noUnusedParameters": false,
7-
"noImplicitReturns": false,
3+
"strict": true,
4+
"strictNullChecks": true,
5+
"noUnusedLocals": true,
6+
"noUnusedParameters": true,
7+
"noImplicitReturns": true,
88
"noImplicitAny": false,
9-
"noImplicitThis": false,
10-
"noFallthroughCasesInSwitch": false,
9+
"noImplicitThis": true,
10+
"noFallthroughCasesInSwitch": true,
1111
"declaration": true,
1212
"emitDecoratorMetadata": true,
1313
"experimentalDecorators": true,

0 commit comments

Comments
 (0)