Skip to content

Lint errors on newly generated RN App: Line ending change during merging post-action with original file. #1769

Open

Description

Describe the bug
When creating a react native app we are getting lint errors on the newly generated app due to a change on the Line Ending while the Core merge files. Issue created to solve this.

To Reproduce
Steps to reproduce the behavior:

  1. Open Web Template Studio (Ctrl + Shift + P: Web Template Studio: Create React Native App)
  2. Create a React Native application with one Blank Page for example.
  3. Create a second React Native application with one Blank Page and a Settings Page. Just need to make sure that there´s a post-action in any .tsx file
  4. If you run yarn lint you will see some errors. If you check the line ending on the bottom right of vscode you will notice that in the first project is the expected one LF, but in the second application, it would be CRLF instead.

Expected behavior
All files should have LF ending so lint passes successfully.

Screenshots
This is the bottom-right part of vscode where you will spot the difference
image

Activity

  1. ghost added
    needs-triageFor new issues that are raised to get reviewed by internal Microsoft employees
    on Apr 7, 2021
  2. removed
    In ProgressIndicates the issue is currently being worked on
    on May 11, 2021
  3. modified the milestones: Backlog, 0.7 on May 11, 2021
  4. modified the milestones: 0.7, Backlog on May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Generated CodeTemplate code that is generatedbugSomething is brokenreact nativeWTS Platform

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions