meandmax / react-flux-dashboard

a dashboard built with es6, es7, webpack, babel, react, flux, firebase
MIT License
12 stars 0 forks source link

Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style #1

Open anil1712 opened 8 years ago

anil1712 commented 8 years ago

I am getting below exception while running npm start.

ERROR in ./js/index.jsx

c:\github\react-flux-dashboard\js\index.jsx 1:27 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/app.jsx

c:\github\react-flux-dashboard\js\components\app.jsx 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/header.jsx

c:\github\react-flux-dashboard\js\components\header.js x 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/app-container.jsx

c:\github\react-flux-dashboard\js\components\app-conta iner.jsx 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/Counters.jsx

c:\github\react-flux-dashboard\js\components\Counters. jsx 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/footer.jsx

c:\github\react-flux-dashboard\js\components\footer.js x 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/stores/counter-store.js

c:\github\react-flux-dashboard\js\stores\counter-store .js 1:36 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/actions/counter-actions.js

c:\github\react-flux-dashboard\js\actions\counter-acti ons.js 1:50 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/counter-item.jsx

c:\github\react-flux-dashboard\js\components\counter-i tem.jsx 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/components/counter-input.jsx

c:\github\react-flux-dashboard\js\components\counter-i nput.jsx 1:26 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/constants/counter-constants.js

c:\github\react-flux-dashboard\js\constants\counter-co nstants.js 1:44 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/dispatcher/dispatcher.js

c:\github\react-flux-dashboard\js\dispatcher\dispatche r.js 1:2 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

ERROR in ./js/utils/counter-web-api-utils.js

c:\github\react-flux-dashboard\js\utils\counter-web-ap i-utils.js 1:32 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style

? 1 problem (1 error, 0 warnings)

webpack: bundle is now VALID.

Please give me some solution for this.

gmkhussain commented 6 years ago

Open package.json, added following rules under rules line:

"rules": {
  "linebreak-style": 0,
  "global-require": 0,
  ...

for VScode users: click the option at the bottom-right of the window and set it to LF from CRLF errors will fixed for me