전체 방문자
오늘
어제
  • 전체 글
    • HTML
    • CSS
    • Javascript
    • React
    • Typescript
    • Next.js
    • Webpack
    • Vue.js
    • Git & GitHub
    • Error
    • Study
    • 개발 일지✨

블로그 메뉴

  • 💡
  • ⚙️
hELLO · Designed By 정상우.
하루

Home

Delete `␍` prettier/prettier 해결 방법
Error

Delete `␍` prettier/prettier 해결 방법

2022. 11. 18. 23:49

Prettier와 ESLint를 프로젝트에 적용 후 아래와 같은 에러가 떴다.

 

해결방법

프로젝트 폴더 내 .esLint 파일을 아래와 같이 수정하면 된다.

저장 후 재실행하면 정상동작됨을 확인할 수 있다.

{   
  "extends": ["react-app", "prettier"],   
  "plugins": ["prettier"],   
  "rules": {     
    "prettier/prettier": ["error", { "endOfLine": "auto" }]   
  }
}

 

 

출처/참고

  • https://velog.io/@realsong/VS-Delete-prettierprettier-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95
    'Error' 카테고리의 다른 글
    • [React] 이미지 위치에 따른 오류 해결 You can either move it inside src/, or add a symlink to it from project's node_moules/.
    • [TS] TypeScript가 SVG 파일을 import 하지 못해서 에러가 발생할 때
    • Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named i..
    • windows 10 에서 docker 설치 후 open //./pipe/docker_engine: The system cannot find the file specified

    티스토리툴바