run this command in Terminal
yarn run lint --fix!
or
add this line in eslintrc - "prettier/prettier": ["warn", {"endOfLine": "auto"}],
{ "extends": [ "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "react-app", "react-app/jest", "prettier" ], "plugins": ["@typescript-eslint", "prettier"], "parser": "@typescript-eslint/parser", "rules": { "prettier/prettier": ["warn", {"endOfLine": "auto"}], "testing-library/prefer-screen-queries": "error", "testing-library/no-manual-cleanup": "error", "testing-library/prefer-wait-for": "error", "testing-library/no-await-sync-events": "error", } }
or
you can add this line to your .prettierrc
"endOfLine": "auto"
Top comments (0)