You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode에서 ctrl + shift + p / cmd + shift + p 키를 이용하여 명령어 실행 창 표시
명령어 실행 창에 open settings (json) 입력 후 선택
VSCode 사용자 정의 파일인 settings.json 파일의 내용에 아래와 같이 ESLint 플러그인 관련 설정 추가.
{// ... <-- 기존 내용을 꼭 유지한 상태에서 아래 내용을 추가하고 이 주석은 제거할 것"editor.codeActionsOnSave": {// 저장했을 때 자동 변환"source.fixAll.eslint": true},"eslint.alwaysShowStatus": true,// 작성할때 상태 변환"eslint.workingDirectories": [// eslint 코드가 있는 디렉토리 찾기{"mode": "auto"}],"eslint.validate": [// validation 목록"javascript","typescript"]}
ctrl + , 또는 cmd + , 눌러서 VSCode 설정 파일(Settings)에 들어간 후 format on save 검색. 아래와 같이 체크가 안되어 있는지 확인.