javascript - How important is to enforce the "linebreak-style" rule in ESlint? Can I just turn it off? -


i've created node.js module i'm gonna open-sourcing soon. developed on linux , decided test on windows before publishing it. when ran eslint on windows noticed had huge amount of linting errors same:

error  expected linebreaks 'lf' found 'crlf'  linebreak-style 

i read in couple of places these linebreaks inserted git when cloned repo on windows. read possible turn off rule in eslint config file. safe this? or there "best practice" regarding rule? (considering open source project , others contributing it)

any advice or feedback appreciated.

try re-clone repo after typing:

git config --global core.autocrlf false 

that should avoid git converting eol (end of lines) lf crlf automatically on checkout.
linter should find expected eol.

note: have been advocating setting false default years: see "git: unix or dos line termination".


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -