Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eslintrc 관련 오류 #114

Closed
Brew-Brew opened this issue Oct 28, 2017 · 6 comments
Closed

eslintrc 관련 오류 #114

Brew-Brew opened this issue Oct 28, 2017 · 6 comments

Comments

@Brew-Brew
Copy link
Collaborator

Brew-Brew commented Oct 28, 2017

2017-10-28 9 37 05

새로 eslint관련해서 추가된것 때문에 생긴 오류인것 같은데
Atom core package 에서는 LF로(?) 기존에 설정되어있는 것을
npm run lint -- --fix 입력한 후 실행하시면
정상적으로 실행됩니다!!

@Brew-Brew
Copy link
Collaborator Author

참고주소 diegohaz/arc#171

@ho1234c
Copy link
Collaborator

ho1234c commented Oct 29, 2017

https://github.com/kosslab-kr/Dumbledore/blob/d1c445cf7f4a97823865bfa9817ddf181911c4c3/package.json#L12

fix는 자주쓰는 기능이라 우리 프로젝트 스크립트에도 추가되어있습니다!

@Brew-Brew Brew-Brew changed the title [해결]eslintrc 관련 오류 eslintrc 관련 오류 Oct 29, 2017
@Brew-Brew
Copy link
Collaborator Author

2017-10-29 8 52 27

해결된줄 알았는데 해결이 안되었네요 ㅠ... 다시 클론떠서 다시 실행해보는데, Expected linebreaks to be 'CRLF' but found 'LF' 라는 에러가 계속 뜨는데 eslint가 제대로 적용이 안되서 그런건가요? ㅜㅜ.... 다른파일의 line break style? 이 다 LF로 되어있고 page 폴더의 index.js 파일은 CRLF로 되어있긴한데 npm run dev로 실행하니 노란색으로 변경되었다는 표시가 뜨네요 ㅠ..

@Brew-Brew
Copy link
Collaborator Author

2017-10-29 8 58 59

npm run lint -- --fix 명령어로 오류는 없어지는데 위와같이 노란색으로 표시되면서 변경되었다고 나와서요 ㅠ..

@gimdongwoo
Copy link
Collaborator

윈도우에 CRLF를 허용했더니 그게 그대로 커밋되어 문제군요-_ -;
아오 빌어먹을 윈도우......
lf만 허용하는 원래의 룰로 변경해야겠습니다.

@gimdongwoo
Copy link
Collaborator

windows 사용자는 각 에디터 별로 개행문자를 \r\n이 아니라 \n 으로 처리하는 옵션을 찾아서 사용해주시기 바랍니다.

vscode에서는
Add "files.eol": "\n" to your settings file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants