Skip to content

Instantly share code, notes, and snippets.

@KrisKnez
Created May 31, 2023 23:50
Show Gist options
  • Select an option

  • Save KrisKnez/11c4786e5fc25f7e74d56271f1dcefb5 to your computer and use it in GitHub Desktop.

Select an option

Save KrisKnez/11c4786e5fc25f7e74d56271f1dcefb5 to your computer and use it in GitHub Desktop.
Fix LF / CRLF Error - Insert `␍`eslintprettier/prettier
In the .eslintrc file add the following:
extends: ['prettier'] and plugins: ['prettier']
rules: {'prettier/prettier': ['error', {endOfLine: 'auto'}]}
In .prettierrc remove this:
endOfLine: 'auto'
It works for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment