inflearn logo
강의

講義

知識共有

実践プロジェクトで学ぶTypeScript

VSCode ESLintプラグインオプションの設定

ESLint 가 제대로 적용되는건지 잘 모르겠습니다

888

작성자 없음

投稿した質問数 0

1

강사님이 제공해주신 셋업가이드 를 따라서 모두 설정했는데, ESLint가 적용이 제대로 되는지 잘 모르겠습니다ㅠㅠ

예를 들어 var a = 10; 을 입력하고 save했을때 const 로 변환되기도 하고, eslint 서버가 돌아가는 것도 확인이 되는 것 같은데,

 vscode 하단 상태표시줄에 ESLint에 체크 표시가 없고 Prettier에는 더블체크표시가 됩니다.

현재 화면과 settings.json 첨부합니다..도와주세요!

{
	"workbench.colorTheme": "Material Theme Darker High Contrast",
	"prettier.semi": false,
	"prettier.useTabs": true,
	"prettier.tabWidth": 2,
	"explorer.confirmDelete": false,
	"editor.tabSize": 2,
	"editor.defaultFormatter": "esbenp.prettier-vscode",
	"[javascript]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"files.autoSave": "off",
	"workbench.iconTheme": "material-icon-theme",
	"liveServer.settings.donotVerifyTags": true,
	"liveServer.settings.donotShowInfoMsg": true,
	"tabnine.experimentalAutoImports": true,
	"window.zoomLevel": 1,
	"solidity.compileUsingRemoteVersion": "v0.5.6+commit.b259423e",
	"vetur.format.defaultFormatterOptions": {
		"js-beautify-html": {
			"wrap_attributes": "force-expand-multiline"
		},
		"prettyhtml": {
			"printWidth": 100,
			"singleQuote": false,
			"wrapAttributes": false,
			"sortAttributes": false
		}
	},
	"workbench.editor.untitled.hint": "hidden",
	"security.workspace.trust.untrustedFiles": "open",
	"editor.suggestSelection": "first",
	"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
	"prettier.endOfLine": "auto",
	"eslint.alwaysShowStatus": true,
	"eslint.workingDirectories": [
		{ "mode": "auto" }
	],
	"eslint.validate": [
			"javascript",
			"typescript"
	],
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": true
	},
  "editor.formatOnSave": false
}

typescript es6

回答 2

1

photo

저는 이렇게 해결했습니다. 

https://noogoonaa.tistory.com/62

에러가 너무 많이 뜰 경우

위 링크를 참조해서 '

endOfLine: 'auto', //를 추가하면 됨

0

captain

안녕하세요 씨유삔님, Prettier 플러그인이 활성화 되어 있는 것 같은데 혹시 VSCode 플러그인 중 코드 포맷팅 관련 플러그인 설치 또는 활성화 되신 것 있으면 모두 비활성화 또는 제거 하시고 다시 해보시겠어요? :)

0

xiubin

포맷팅 플러그인은 Prettier 밖에 없어서 제거하고 다시 vscode를 실행해봤는데도 eslint에 더블체크 표시가 들어오지 않아요...

-

0

140

1

[오류문의] import 에러

0

279

1

api가 중단된 건에 대하여..

1

383

2

프로젝트 완성본 github에 어디있나요?

1

351

2

https://api.covid19api.com/summary에 있는 원격 리소스를 차단

3

788

2

d.ts 컴파일 시 에러 질문 드립니다.

1

623

2

chartjs 타입시.. 직접 declare module chart.js로 하게 되면 내부의 구조를 모를 것 같은데요

1

598

2

COVID19 API 미작동(404) 질문

1

830

2

innerText부분 오류 문의.

1

686

2

Total Recovered가 화면에 0으로 나옵니다.

1

406

1

강의 내용 질문입니다.

2

446

1

요즘 바벨 사용 여부가 궁금합니다.

1

503

1

프로젝트 내 특정 파일만 Typing

1

574

1

소스질문

1

605

1

추후 강의에 관한 질문

2

405

1

rootdir, include 차이가 궁금합니다

1

678

1

Uncaught ReferenceError: exports is not defined 에러 해결

1

1836

1

function $(selector) 관련 질문 드립니다.

1

316

1

Uncaught ReferenceError: exports is not defined

1

472

1

웹팩 에러 문의

1

855

2

innerHTML optional 체이닝

2

1924

1

화살표 함수 문법 소개 글 링크가 잘못되어 있습니다.

1

238

1

실전 적용 관련 질문 입니다.

1

307

1

모듈 알리아스(as) 질문 드립니다.

1

383

1