react, typescript 프로젝트에
airbnb룰을 적용했는데
import App from './App';
와 같은 형식으로 import를 했을 때
eslint import/extensions error가 나왔다.
단순한 해결 방법으로는 뒤에 확장자를 붙여 App.tsx로 import 하는 것인데 너무 귀찮아진다.
검색해 봤을 때
https://www.npmjs.com/package/eslint-config-airbnb-typescript?activeTab=readme
eslint-config-airbnb-typescript
Airbnb's ESLint config with TypeScript support. Latest version: 17.1.0, last published: 6 months ago. Start using eslint-config-airbnb-typescript in your project by running `npm i eslint-config-airbnb-typescript`. There are 1161 other projects in the npm r
www.npmjs.com
에서 해당하는 과정을 따라야 한다.
기본 airbnb룰은 typescript를 지원 안하나보다.
'개발 > 기록' 카테고리의 다른 글
| 기존 react 프로젝트 typescript 프로젝트로 만들기 (0) | 2024.08.29 |
|---|---|
| vscode custom snippets 만들기 (1) | 2024.08.29 |
| due to high demand we've temporarily paused upgrades gpt-plus 업그레이드 제한[막힘] (1) | 2023.12.13 |
| vscode 저장시 자동 정렬 (1) | 2023.11.28 |
| 업비트 주의 종목 탐색기 (2) | 2023.10.29 |