eslint-config-thepsyentist

0.0.8 • Public • Published

모듈 설치 방법

npm i eslint@6.8.0

npx install-peerdeps eslint-config-thepsyentist

editorconfig 설정방법

.editconfig 파일에 아래 내용 추가

root = true

[*.{js,ts,tsx}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
max_line_length = 90
trim_trailing_whitespace = true

[*.{json,yml,yaml}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
  • 위 내용으로 editor내에서 공통적인 indent_size, 공백 제거 등은 자동으로 처리 가능해보임.

참고

  • eslint는 6.8.0 이상이면 가능하지만 6.8.0을 권장합니다
  • prettier 속성이 eslint에 내장되어있으므로 .prettierrc 파일을 만들필요가 없습니다.
  • prettier오류는 eslint(prettier/prettier)로 나타남

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-thepsyentist

Weekly Downloads

9

Version

0.0.8

License

MIT

Unpacked Size

28.8 kB

Total Files

18

Last publish

Collaborators

  • thepsyentist