Last active
January 10, 2024 14:45
-
-
Save coleea/083d3b473f9b4a031fb28dfd09064bfa to your computer and use it in GitHub Desktop.
tsconfig.json : the extremely strict version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
// Base Strict Checks | |
"suppressExcessPropertyErrors": false, | |
"suppressImplicitAnyIndexErrors": false, | |
"noStrictGenericChecks": false | |
// Strict Checks | |
"alwaysStrict": true, | |
"strictNullChecks": true, /* 타입 검사 시 'null'과 'undefined'를 고려합니다. */ | |
"strictPropertyInitialization": true, /* 생성자에서 설정되지 않은 클래스 속성에 대한 검사를 수행합니다. */ | |
"strictFunctionTypes": true, /* 함수 할당 시 매개변수와 반환 값이 서브타입과 호환되는지 확인합니다. */ | |
"strictBindCallApply": true, /* 'bind', 'call', 'apply' 메서드에 대한 인수가 원본 함수와 일치하는지 확인합니다. */ | |
"noImplicitAny": true, /* 암시적인 'any' 타입에 대한 식별 및 선언에 오류 보고를 활성화합니다. */ | |
"noImplicitThis": true, /* 'this'가 'any' 타입으로 지정되었을 때 오류 보고를 활성화합니다. */ | |
"noPropertyAccessFromIndexSignature": true, /* 인덱스 타입을 사용하여 선언된 키에 대해 인덱스 접근자를 사용하도록 강제합니다. */ | |
"noUncheckedIndexedAccess": true, /* 함수 매개변수가 사용되지 않을 때 오류를 발생시킵니다. */ | |
"useUnknownInCatchVariables": true, /* 기본 catch 절 argument를 'any' 대신 'unknown'으로 간주합니다. */ | |
"exactOptionalPropertyTypes": true, /* 선택적 속성 타입을 명시된 대로 해석하며 'undefined'를 추가하지 않습니다. */ | |
// Linter | |
"noImplicitReturns": true, // 함수에서 totality 체크 목적으로 사용 | |
"noImplicitOverride": true, | |
"forceConsistentCasingInFileNames": true, // // https://eslint.org/docs/rules/consistent-return | |
"noFallthroughCasesInSwitch": true, // https://eslint.org/docs/rules/no-fallthrough | |
"noUnusedLocals": true, // https://eslint.org/docs/rules/no-unused-vars | |
"allowUnusedLabels": false, | |
"noUnusedParameters": true, // https://eslint.org/docs/rules/no-unused-vars#args | |
"allowUnreachableCode": false, // https://eslint.org/docs/rules/no-unreachable | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
asdf