300x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 자바스크립트
- 우테코
- import정리
- 프로젝트
- 우아한테크코스
- importOrder
- IDL attributes
- storybook
- vscode
- JavaScript
- 클린코드
- eslint 자동화
- react
- 이슈번호자동화
- 클로저
- Husky
- 크로마틱
- 성능 베이스캠프
- css instead of js
- git hooks
- prettier 자동화
- 협업
- eslint에러 자동fix
- string-width
- 카페인
- webpack
- 유틸함수
- 프로젝트 카페인
- CSS
- chromatic
Archives
- Today
- Total
목록eslint에러 자동fix (1)
FEB:)DAIN

예를 들어, type import를 했을 때 `import type { Type } from`이 아니라 `import { Type } from`을 하면 오류가 나도록 eslint rule 설정했다고 하자. // .eslintrc { ... rules: { ... 'react/self-closing-comp': ['error', { component: true, html: true }], '@typescript-eslint/consistent-type-imports': [ 'error', { prefer: 'type-imports', }, ], }, 오류가 났을 때 직접 type을 추가해 주는 것보다 파일 저장을 할 때마다 자동으로 type이 추가되면 작업 속도가 엄청 증가하게 된다. 만약 저장을 했을 때..
코딩/사소한 꿀팁
2023. 7. 21. 00:33