Skip to content

command yarn run lint does not run on the correct files #29159

Closed
@fabOnReact

Description

@fabOnReact

Description

I WILL FIX THIS ISSUE 😃

After troubleshooting CI Errors on #29157 I noticed that the command yarn run lint is checking the linting for wrong files in local development enviroment. For example files like:

/home/fabrizio/Documents/sourcecode/opensource/react-native/buck-out/gen/ReactAndroid/src/androidTest/assets/assets#assets-symlink-tree/assets/AndroidTestBundle.js   

The log:

Screenshot from 2020-06-17 18-25-01

I could fix this by just running yarn eslint RNTester/js/examples/Text/TextExample.android.js --quiet

React Native version:

System:
    OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Memory: 168.21 MB / 15.53 GB
    Shell: 5.7.1 - /usr/bin/zsh
  Binaries:
    Node: 12.18.0 - /tmp/yarn--1592411287583-0.6498465745229984/node
    Yarn: 1.22.4 - /tmp/yarn--1592411287583-0.6498465745229984/yarn
    npm: 6.14.4 - /usr/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    Android SDK:
      API Levels: 19, 22, 23, 24, 28, 29
      Build Tools: 20.0.0, 23.0.1, 24.0.0, 28.0.3, 29.0.2, 29.0.3
      System Images: android-19 | ARM EABI v7a, android-19 | Google APIs ARM EABI v7a, android-19 | Google APIs Intel x86 Atom, android-23 | Google APIs ARM EABI v7a, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-28 | Android TV Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64, android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64
      Android NDK: 17.2.4988734
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.6010548
  Languages:
    Java: 11.0.7 - /usr/bin/javac
    Python: 2.7.17 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: ^4.10.0 => 4.7.0
    react: 16.13.1 => 16.13.1
    react-native: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
Done in 5.54s.

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. cd react-native
  2. yarn run lint

Expected Results

Only the relevant errors are displayed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍Platform: LinuxBuilding on Linux.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions