TheSuperJez / ReactWebAppsCourse

Curso Aplicaciones Web React
Eclipse Public License 1.0
1 stars 1 forks source link

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

Open ghost opened 7 years ago

ghost commented 7 years ago

En Windows se debe configurar el ESLint para que los saltos de línea sean del tipo CRLF:

Se debe modificar el archivo: .eslintrc.json

    "linebreak-style": [
        "error",
        "windows"
    ],

Desde Notepad++ se pueden reemplazar "\n" por "\r\n" Replacing CRLF with LF using Notepad++ http://sqlblog.com/blogs/jamie_thomson/archive/2012/08/07/replacing-crlf-with-lf-using-notepad.aspx

Fuente: http://eslint.org/docs/rules/linebreak-style

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