개발관련/VUE JS
[ESLint] comma-dangle error resolve
후니의 개발이야기
2022. 10. 11. 18:01
728x90
반응형
위와 같이 comma를 넣으면 에러라고 하는데 이건 에러가 아닌데 ESLint 쪽에서 설정을 더 해줘야 될것같아서 알아낸 방법입니다.
참조사이트 : https://github.com/prettier/eslint-config-prettier/issues/158
Turn off @typescript-eslint/comma-dangle · Issue #158 · prettier/eslint-config-prettier
There is a new extension rule in typescript-eslint since the version 4.2.0 has been released. The core config has already turned off comma-dangle. The config of typescript-eslint should respect the...
github.com
방법은 .eslintrc.js rule에 하나를 더 추가를 해주시면 됩니다.
반응형
'comma-dangle': 'off',
초기에 좌충우돌하면서 해야할 것이 생기는군요. ㅠ. ㅠ
728x90
반응형