How to fix ReactJS vscode CRLF error: [eslint] Delete ‘cr’ [prettier/prettier]

How to fix ReactJS vscode CRLF error: [eslint] Delete ‘cr’ [prettier/prettier]

Add below rules to your .eslintrc.json

    "rules": {
...
        "prettier/prettier": ["error", {
           "endOfLine":"auto"
         }]
...
    }

 

Add *.js text eol=lf to your .gitattributes

Leave a Reply

Your email address will not be published. Required fields are marked *