Early-Exit 패턴 if문과 break(return)을 활용해서 효율성을 높인다.tsconfig.json/strict:true 타입스크립트 엄격 모드event:ChangeEvent<HTMLInputElement> change가 발생했을때 html 요소의 event 변화1.yarn add graphql yarn add -D @graphql-codegen/cli
2. codegen.yml
3. schema:http://backend05.codebootcamp.co.kr/graphql generates: types.ts: plugins: - @graphql-codegen/typescript
4. "scripts": { "generate": "graphql-codegen" }
5. yarn add @graphql-codegen/typescript
6. yarn generate
7. mutation 타입 : types.ts 참고
8.codegen.yml 파일에서 config: tyesPerfix: I => yarn generate :: 모든 파일 앞에 I가 붙음
9. npx eslint --init 10. 설정변경 11. npx eslint . npx eslint "*/.{ts,tsx}" 모든 파일 에러 체크 12.yarn add --dev --exact prettierprettier 설치 13.echo {}> .prettierrc.json14.yarn add eslint-config-prettier --devprettier 와 eslint 같이 사용하기 15.eslintrc/ "extends": [
"some-other-config-you-use",
"prettier"`
16.eslintrc/ "rull" "react/react-in-jsx-scope": "off" "react/prop-types": "off" 예외 처리하기