facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.53k stars 24.28k forks source link

Command `yarn lint` not working when init a new project #27695

Closed binhapp closed 4 years ago

binhapp commented 4 years ago
React Native version: ``` System: OS: macOS 10.15.2 CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz Memory: 699.99 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 13.5.0 - /usr/local/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 23, 28, 29 Build Tools: 28.0.0, 28.0.3, 29.0.2 System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.3/11C29 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1 ```

Steps To Reproduce

1. react-native init ReactNativeApp ``` This will walk you through creating a new React Native project in /Users/blcsntb/react-native-app-cli/ReactNativeApp Using yarn v1.21.1 Installing react-native... yarn add v1.21.1 info No lockfile found. [1/4] πŸ” Resolving packages... warning react-native > fbjs > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. warning react-native > create-react-class > fbjs > core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. warning react-native > fbjs-scripts > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. warning react-native > metro-babel-register > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. [2/4] 🚚 Fetching packages... [3/4] πŸ”— Linking dependencies... warning "react-native > metro-react-native-babel-transformer@0.56.3" has unmet peer dependency "@babel/core@*". warning " > react-native@0.61.5" has unmet peer dependency "react@16.9.0". [4/4] πŸ”¨ Building fresh packages... success Saved lockfile. success Saved 411 new dependencies. info Direct dependencies └─ react-native@0.61.5 info All dependencies β”œβ”€ @babel/generator@7.7.7 β”œβ”€ @babel/helper-builder-binary-assignment-operator-visitor@7.7.4 β”œβ”€ @babel/helper-builder-react-jsx@7.7.4 β”œβ”€ @babel/helper-call-delegate@7.7.4 β”œβ”€ @babel/helper-create-regexp-features-plugin@7.7.4 β”œβ”€ @babel/helper-define-map@7.7.4 β”œβ”€ @babel/helper-explode-assignable-expression@7.7.4 β”œβ”€ @babel/helper-hoist-variables@7.7.4 β”œβ”€ @babel/helper-module-transforms@7.7.5 β”œβ”€ @babel/helper-regex@7.5.5 β”œβ”€ @babel/helper-remap-async-to-generator@7.7.4 β”œβ”€ @babel/helper-wrap-function@7.7.4 β”œβ”€ @babel/helpers@7.7.4 β”œβ”€ @babel/highlight@7.5.0 β”œβ”€ @babel/plugin-external-helpers@7.7.4 β”œβ”€ @babel/plugin-proposal-export-default-from@7.7.4 β”œβ”€ @babel/plugin-syntax-class-properties@7.7.4 β”œβ”€ @babel/plugin-syntax-dynamic-import@7.7.4 β”œβ”€ @babel/plugin-syntax-export-default-from@7.7.4 β”œβ”€ @babel/plugin-syntax-flow@7.7.4 β”œβ”€ @babel/plugin-syntax-nullish-coalescing-operator@7.7.4 β”œβ”€ @babel/plugin-syntax-object-rest-spread@7.7.4 β”œβ”€ @babel/plugin-syntax-optional-catch-binding@7.7.4 β”œβ”€ @babel/plugin-syntax-optional-chaining@7.7.4 β”œβ”€ @babel/plugin-syntax-typescript@7.7.4 β”œβ”€ @babel/plugin-transform-async-to-generator@7.7.4 β”œβ”€ @babel/plugin-transform-block-scoped-functions@7.7.4 β”œβ”€ @babel/plugin-transform-exponentiation-operator@7.7.4 β”œβ”€ @babel/plugin-transform-member-expression-literals@7.7.4 β”œβ”€ @babel/plugin-transform-object-assign@7.7.4 β”œβ”€ @babel/plugin-transform-object-super@7.7.4 β”œβ”€ @babel/plugin-transform-property-literals@7.7.4 β”œβ”€ @babel/plugin-transform-react-jsx-source@7.7.4 β”œβ”€ @babel/plugin-transform-regenerator@7.7.5 β”œβ”€ @babel/plugin-transform-runtime@7.7.6 β”œβ”€ @babel/plugin-transform-sticky-regex@7.7.4 β”œβ”€ @babel/plugin-transform-typescript@7.7.4 β”œβ”€ @babel/plugin-transform-unicode-regex@7.7.4 β”œβ”€ @babel/register@7.7.7 β”œβ”€ @babel/runtime@7.7.7 β”œβ”€ @cnakazawa/watch@1.0.3 β”œβ”€ @hapi/address@2.1.4 β”œβ”€ @hapi/bourne@1.3.2 β”œβ”€ @hapi/hoek@8.5.0 β”œβ”€ @hapi/joi@15.1.1 β”œβ”€ @hapi/topo@3.1.6 β”œβ”€ @jest/fake-timers@24.9.0 β”œβ”€ @react-native-community/cli-debugger-ui@3.0.0 β”œβ”€ @react-native-community/cli-platform-android@3.0.3 β”œβ”€ @react-native-community/cli-platform-ios@3.0.0 β”œβ”€ @react-native-community/cli-types@3.0.0 β”œβ”€ @react-native-community/cli@3.0.4 β”œβ”€ @types/istanbul-lib-report@1.1.1 β”œβ”€ @types/istanbul-reports@1.1.1 β”œβ”€ @types/stack-utils@1.0.1 β”œβ”€ @types/yargs-parser@13.1.0 β”œβ”€ @types/yargs@13.0.4 β”œβ”€ abbrev@1.1.1 β”œβ”€ abort-controller@3.0.0 β”œβ”€ accepts@1.3.7 β”œβ”€ ansi-colors@1.1.0 β”œβ”€ ansi-cyan@0.1.1 β”œβ”€ ansi-escapes@3.2.0 β”œβ”€ ansi-fragments@0.2.1 β”œβ”€ ansi-gray@0.1.1 β”œβ”€ ansi-red@0.1.1 β”œβ”€ ansi-regex@4.1.0 β”œβ”€ aproba@1.2.0 β”œβ”€ are-we-there-yet@1.1.5 β”œβ”€ argparse@1.0.10 β”œβ”€ arr-flatten@1.1.0 β”œβ”€ array-filter@0.0.1 β”œβ”€ array-map@0.0.0 β”œβ”€ array-reduce@0.0.0 β”œβ”€ array-slice@0.2.3 β”œβ”€ art@0.10.3 β”œβ”€ asap@2.0.6 β”œβ”€ assign-symbols@1.0.0 β”œβ”€ astral-regex@1.0.0 β”œβ”€ async-limiter@1.0.1 β”œβ”€ async@2.6.3 β”œβ”€ atob@2.1.2 β”œβ”€ babel-plugin-dynamic-import-node@2.3.0 β”œβ”€ babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0 β”œβ”€ balanced-match@1.0.0 β”œβ”€ base@0.11.2 β”œβ”€ base64-js@1.3.1 β”œβ”€ basic-auth@2.0.1 β”œβ”€ big-integer@1.6.48 β”œβ”€ bindings@1.5.0 β”œβ”€ bplist-creator@0.0.8 β”œβ”€ bplist-parser@0.2.0 β”œβ”€ brace-expansion@1.1.11 β”œβ”€ braces@2.3.2 β”œβ”€ bser@2.1.1 β”œβ”€ buffer-crc32@0.2.13 β”œβ”€ bytes@3.0.0 β”œβ”€ cache-base@1.0.1 β”œβ”€ caller-callsite@2.0.0 β”œβ”€ caller-path@2.0.0 β”œβ”€ capture-exit@2.0.0 β”œβ”€ chardet@0.4.2 β”œβ”€ chownr@1.1.3 β”œβ”€ ci-info@2.0.0 β”œβ”€ class-utils@0.3.6 β”œβ”€ cli-spinners@2.2.0 β”œβ”€ cli-width@2.2.0 β”œβ”€ cliui@3.2.0 β”œβ”€ clone@1.0.4 β”œβ”€ code-point-at@1.1.0 β”œβ”€ collection-visit@1.0.0 β”œβ”€ color-convert@1.9.3 β”œβ”€ color-name@1.1.3 β”œβ”€ color-support@1.1.3 β”œβ”€ colorette@1.1.0 β”œβ”€ command-exists@1.2.8 β”œβ”€ commander@2.20.3 β”œβ”€ commondir@1.0.1 β”œβ”€ compressible@2.0.18 β”œβ”€ compression@1.7.4 β”œβ”€ concat-map@0.0.1 β”œβ”€ concat-stream@1.6.2 β”œβ”€ console-control-strings@1.1.0 β”œβ”€ convert-source-map@1.7.0 β”œβ”€ copy-descriptor@0.1.1 β”œβ”€ core-js@2.6.11 β”œβ”€ core-util-is@1.0.2 β”œβ”€ cosmiconfig@5.2.1 β”œβ”€ create-react-class@15.6.3 β”œβ”€ cross-spawn@5.1.0 β”œβ”€ dayjs@1.8.19 β”œβ”€ debug@2.6.9 β”œβ”€ decode-uri-component@0.2.0 β”œβ”€ deep-extend@0.6.0 β”œβ”€ deepmerge@3.3.0 β”œβ”€ defaults@1.0.3 β”œβ”€ define-properties@1.1.3 β”œβ”€ delegates@1.0.0 β”œβ”€ denodeify@1.2.1 β”œβ”€ destroy@1.0.4 β”œβ”€ detect-libc@1.0.3 β”œβ”€ ee-first@1.1.1 β”œβ”€ encoding@0.1.12 β”œβ”€ end-of-stream@1.4.4 β”œβ”€ envinfo@7.5.0 β”œβ”€ error-ex@1.3.2 β”œβ”€ errorhandler@1.5.1 β”œβ”€ esprima@4.0.1 β”œβ”€ etag@1.8.1 β”œβ”€ event-target-shim@5.0.1 β”œβ”€ eventemitter3@3.1.2 β”œβ”€ expand-brackets@2.1.4 β”œβ”€ external-editor@2.2.0 β”œβ”€ extglob@2.0.4 β”œβ”€ fancy-log@1.3.3 β”œβ”€ fbjs-css-vars@1.0.2 β”œβ”€ fbjs-scripts@1.2.0 β”œβ”€ figures@2.0.0 β”œβ”€ file-uri-to-path@1.0.0 β”œβ”€ fill-range@4.0.0 β”œβ”€ finalhandler@1.1.2 β”œβ”€ find-cache-dir@2.1.0 β”œβ”€ for-in@1.0.2 β”œβ”€ fresh@0.5.2 β”œβ”€ fs-extra@7.0.1 β”œβ”€ fs-minipass@1.2.7 β”œβ”€ fs.realpath@1.0.0 β”œβ”€ fsevents@1.2.11 β”œβ”€ function-bind@1.1.1 β”œβ”€ gauge@2.7.4 β”œβ”€ get-stream@4.1.0 β”œβ”€ glob@7.1.6 β”œβ”€ growly@1.3.0 β”œβ”€ has-symbols@1.0.1 β”œβ”€ has-unicode@2.0.1 β”œβ”€ has-value@1.0.0 β”œβ”€ hermes-engine@0.2.1 β”œβ”€ hosted-git-info@2.8.5 β”œβ”€ http-errors@1.7.3 β”œβ”€ iconv-lite@0.4.24 β”œβ”€ ignore-walk@3.0.3 β”œβ”€ image-size@0.6.3 β”œβ”€ import-fresh@2.0.0 β”œβ”€ imurmurhash@0.1.4 β”œβ”€ inflight@1.0.6 β”œβ”€ inherits@2.0.4 β”œβ”€ ini@1.3.5 β”œβ”€ inquirer@3.3.0 β”œβ”€ invert-kv@1.0.0 β”œβ”€ is-accessor-descriptor@1.0.0 β”œβ”€ is-arrayish@0.2.1 β”œβ”€ is-ci@2.0.0 β”œβ”€ is-data-descriptor@1.0.0 β”œβ”€ is-descriptor@1.0.2 β”œβ”€ is-directory@0.3.1 β”œβ”€ is-plain-object@2.0.4 β”œβ”€ is-promise@2.1.0 β”œβ”€ is-windows@1.0.2 β”œβ”€ isarray@1.0.0 β”œβ”€ isexe@2.0.0 β”œβ”€ jest-get-type@24.9.0 β”œβ”€ jest-message-util@24.9.0 β”œβ”€ jest-mock@24.9.0 β”œβ”€ jest-serializer@24.9.0 β”œβ”€ jest-util@24.9.0 β”œβ”€ jest-validate@24.9.0 β”œβ”€ jest-worker@24.9.0 β”œβ”€ jetifier@1.6.5 β”œβ”€ js-tokens@4.0.0 β”œβ”€ jsc-android@245459.0.0 β”œβ”€ jsesc@2.5.2 β”œβ”€ json-parse-better-errors@1.0.2 β”œβ”€ json-stable-stringify@1.0.1 β”œβ”€ json5@2.1.1 β”œβ”€ jsonfile@4.0.0 β”œβ”€ klaw@1.3.1 β”œβ”€ lcid@1.0.0 β”œβ”€ leven@3.1.0 β”œβ”€ load-json-file@2.0.0 β”œβ”€ locate-path@3.0.0 β”œβ”€ log-symbols@2.2.0 β”œβ”€ logkitty@0.6.1 β”œβ”€ loose-envify@1.4.0 β”œβ”€ lru-cache@4.1.5 β”œβ”€ make-dir@2.1.0 β”œβ”€ makeerror@1.0.11 β”œβ”€ map-age-cleaner@0.1.3 β”œβ”€ map-visit@1.0.0 β”œβ”€ mem@1.1.0 β”œβ”€ merge-stream@1.0.1 β”œβ”€ metro-babel-register@0.56.3 β”œβ”€ metro-config@0.56.3 β”œβ”€ metro-inspector-proxy@0.56.3 β”œβ”€ metro-minify-uglify@0.56.3 β”œβ”€ metro@0.56.3 β”œβ”€ mime-db@1.43.0 β”œβ”€ mime-types@2.1.11 β”œβ”€ mime@2.4.4 β”œβ”€ minimatch@3.0.4 β”œβ”€ minimist@1.2.0 β”œβ”€ minipass@2.9.0 β”œβ”€ minizlib@1.3.3 β”œβ”€ mixin-deep@1.3.2 β”œβ”€ mkdirp@0.5.1 β”œβ”€ morgan@1.9.1 β”œβ”€ ms@2.1.2 β”œβ”€ mute-stream@0.0.7 β”œβ”€ nan@2.14.0 β”œβ”€ nanomatch@1.2.13 β”œβ”€ needle@2.4.0 β”œβ”€ negotiator@0.6.2 β”œβ”€ nice-try@1.0.5 β”œβ”€ node-fetch@2.6.0 β”œβ”€ node-int64@0.4.0 β”œβ”€ node-modules-regexp@1.0.0 β”œβ”€ node-notifier@5.4.3 β”œβ”€ node-pre-gyp@0.14.0 β”œβ”€ nopt@4.0.1 β”œβ”€ normalize-package-data@2.5.0 β”œβ”€ normalize-path@2.1.1 β”œβ”€ npm-bundled@1.1.1 β”œβ”€ npm-normalize-package-bin@1.0.1 β”œβ”€ npm-packlist@1.4.7 β”œβ”€ npmlog@4.1.2 β”œβ”€ number-is-nan@1.0.1 β”œβ”€ ob1@0.56.3 β”œβ”€ object-assign@4.1.1 β”œβ”€ object-copy@0.1.0 β”œβ”€ object-keys@1.1.1 β”œβ”€ object.assign@4.1.0 β”œβ”€ on-headers@1.0.2 β”œβ”€ once@1.4.0 β”œβ”€ onetime@2.0.1 β”œβ”€ open@6.4.0 β”œβ”€ options@0.0.6 β”œβ”€ ora@3.4.0 β”œβ”€ os-homedir@1.0.2 β”œβ”€ os-locale@2.1.0 β”œβ”€ os-tmpdir@1.0.2 β”œβ”€ osenv@0.1.5 β”œβ”€ p-defer@1.0.0 β”œβ”€ p-is-promise@2.1.0 β”œβ”€ p-limit@2.2.2 β”œβ”€ p-locate@3.0.0 β”œβ”€ p-try@2.2.0 β”œβ”€ parse-json@4.0.0 β”œβ”€ parse-node-version@1.0.1 β”œβ”€ pascalcase@0.1.1 β”œβ”€ path-is-absolute@1.0.1 β”œβ”€ path-key@2.0.1 β”œβ”€ path-parse@1.0.6 β”œβ”€ path-type@2.0.0 β”œβ”€ pirates@4.0.1 β”œβ”€ pkg-dir@3.0.0 β”œβ”€ plist@3.0.1 β”œβ”€ plugin-error@0.1.2 β”œβ”€ posix-character-classes@0.1.1 β”œβ”€ pretty-format@24.9.0 β”œβ”€ private@0.1.8 β”œβ”€ process-nextick-args@2.0.1 β”œβ”€ prop-types@15.7.2 β”œβ”€ pseudomap@1.0.2 β”œβ”€ pump@3.0.0 β”œβ”€ range-parser@1.2.1 β”œβ”€ rc@1.2.8 β”œβ”€ react-devtools-core@3.6.3 β”œβ”€ react-is@16.12.0 β”œβ”€ react-native@0.61.5 β”œβ”€ read-pkg-up@2.0.0 β”œβ”€ read-pkg@2.0.0 β”œβ”€ readable-stream@2.3.7 β”œβ”€ regenerate-unicode-properties@8.1.0 β”œβ”€ regenerator-transform@0.14.1 β”œβ”€ regexpu-core@4.6.0 β”œβ”€ regjsgen@0.5.1 β”œβ”€ regjsparser@0.6.2 β”œβ”€ remove-trailing-separator@1.1.0 β”œβ”€ repeat-element@1.1.3 β”œβ”€ resolve-from@3.0.0 β”œβ”€ resolve-url@0.2.1 β”œβ”€ resolve@1.14.2 β”œβ”€ restore-cursor@2.0.0 β”œβ”€ ret@0.1.15 β”œβ”€ rimraf@2.7.1 β”œβ”€ rsvp@4.8.5 β”œβ”€ run-async@2.3.0 β”œβ”€ rx-lite-aggregates@4.0.8 β”œβ”€ rx-lite@4.0.8 β”œβ”€ rxjs@5.5.12 β”œβ”€ safer-buffer@2.1.2 β”œβ”€ sane@4.1.0 β”œβ”€ sax@1.2.4 β”œβ”€ scheduler@0.15.0 β”œβ”€ semver@5.7.1 β”œβ”€ send@0.17.1 β”œβ”€ serialize-error@2.1.0 β”œβ”€ set-blocking@2.0.0 β”œβ”€ set-value@2.0.1 β”œβ”€ setprototypeof@1.1.1 β”œβ”€ shebang-regex@1.0.0 β”œβ”€ shell-quote@1.6.1 β”œβ”€ shellwords@0.1.1 β”œβ”€ signal-exit@3.0.2 β”œβ”€ simple-plist@1.1.0 β”œβ”€ slice-ansi@2.1.0 β”œβ”€ slide@1.1.6 β”œβ”€ snapdragon-node@2.1.1 β”œβ”€ snapdragon-util@3.0.1 β”œβ”€ source-map-resolve@0.5.3 β”œβ”€ source-map-support@0.5.16 β”œβ”€ source-map-url@0.4.0 β”œβ”€ spdx-correct@3.1.0 β”œβ”€ spdx-exceptions@2.2.0 β”œβ”€ split-string@3.1.0 β”œβ”€ sprintf-js@1.0.3 β”œβ”€ stack-utils@1.0.2 β”œβ”€ stacktrace-parser@0.1.8 β”œβ”€ static-extend@0.1.2 β”œβ”€ statuses@1.5.0 β”œβ”€ stream-buffers@2.2.0 β”œβ”€ string_decoder@1.1.1 β”œβ”€ string-width@2.1.1 β”œβ”€ strip-ansi@3.0.1 β”œβ”€ strip-bom@3.0.0 β”œβ”€ strip-json-comments@2.0.1 β”œβ”€ sudo-prompt@9.1.1 β”œβ”€ supports-color@5.5.0 β”œβ”€ symbol-observable@1.0.1 β”œβ”€ tar@4.4.13 β”œβ”€ temp@0.8.3 β”œβ”€ throat@4.1.0 β”œβ”€ through@2.3.8 β”œβ”€ through2@2.0.5 β”œβ”€ time-stamp@1.1.0 β”œβ”€ tmp@0.0.33 β”œβ”€ to-fast-properties@2.0.0 β”œβ”€ to-object-path@0.3.0 β”œβ”€ to-regex-range@2.1.1 β”œβ”€ toidentifier@1.0.0 β”œβ”€ type-fest@0.7.1 β”œβ”€ typedarray@0.0.6 β”œβ”€ uglify-es@3.3.9 β”œβ”€ ultron@1.0.2 β”œβ”€ unicode-canonical-property-names-ecmascript@1.0.4 β”œβ”€ unicode-match-property-ecmascript@1.0.4 β”œβ”€ unicode-match-property-value-ecmascript@1.1.0 β”œβ”€ unicode-property-aliases-ecmascript@1.0.5 β”œβ”€ union-value@1.0.1 β”œβ”€ universalify@0.1.2 β”œβ”€ unpipe@1.0.0 β”œβ”€ unset-value@1.0.0 β”œβ”€ urix@0.1.0 β”œβ”€ use@3.1.1 β”œβ”€ util-deprecate@1.0.2 β”œβ”€ utils-merge@1.0.1 β”œβ”€ uuid@3.3.3 β”œβ”€ validate-npm-package-license@3.0.4 β”œβ”€ vary@1.1.2 β”œβ”€ walker@1.0.7 β”œβ”€ whatwg-fetch@3.0.0 β”œβ”€ wide-align@1.1.3 β”œβ”€ write-file-atomic@1.3.4 β”œβ”€ xcode@2.1.0 β”œβ”€ xmlbuilder@9.0.7 β”œβ”€ xmldoc@1.1.2 β”œβ”€ xmldom@0.1.31 β”œβ”€ xpipe@1.0.5 β”œβ”€ xtend@4.0.2 β”œβ”€ y18n@3.2.1 β”œβ”€ yallist@3.1.1 └─ yargs-parser@7.0.0 ✨ Done in 35.10s. info Setting up new React Native app in /Users/blcsntb/react-native-app-cli/ReactNativeApp info Adding required dependencies yarn add v1.21.1 [1/4] πŸ” Resolving packages... warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart() [2/4] 🚚 Fetching packages... [3/4] πŸ”— Linking dependencies... warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin@1.13.0" has incorrect peer dependency "eslint@^5.0.0". warning "@react-native-community/eslint-config > eslint-plugin-react@7.12.4" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0". warning "@react-native-community/eslint-config > eslint-plugin-react-native@3.6.0" has incorrect peer dependency "eslint@^3.17.0 || ^4 || ^5". warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". warning "@react-native-community/eslint-config > @typescript-eslint/parser@1.13.0" has incorrect peer dependency "eslint@^5.0.0". [4/4] πŸ”¨ Building fresh packages... success Saved lockfile. success Saved 179 new dependencies. info Direct dependencies β”œβ”€ @react-native-community/eslint-config@0.0.5 β”œβ”€ eslint@6.8.0 β”œβ”€ jest@24.9.0 β”œβ”€ react-test-renderer@16.9.0 └─ react@16.9.0 info All dependencies β”œβ”€ @jest/core@24.9.0 β”œβ”€ @jest/reporters@24.9.0 β”œβ”€ @jest/test-sequencer@24.9.0 β”œβ”€ @react-native-community/eslint-config@0.0.5 β”œβ”€ @types/babel__core@7.1.3 β”œβ”€ @types/babel__generator@7.6.1 β”œβ”€ @types/babel__template@7.0.2 β”œβ”€ @types/babel__traverse@7.0.8 β”œβ”€ @types/eslint-visitor-keys@1.0.0 β”œβ”€ @types/json-schema@7.0.4 β”œβ”€ @typescript-eslint/eslint-plugin@1.13.0 β”œβ”€ @typescript-eslint/parser@1.13.0 β”œβ”€ acorn-globals@4.3.4 β”œβ”€ acorn-jsx@5.1.0 β”œβ”€ acorn-walk@6.2.0 β”œβ”€ acorn@7.1.0 β”œβ”€ ajv@6.10.2 β”œβ”€ array-equal@1.0.0 β”œβ”€ asn1@0.2.4 β”œβ”€ asynckit@0.4.0 β”œβ”€ aws-sign2@0.7.0 β”œβ”€ aws4@1.9.0 β”œβ”€ babel-eslint@10.0.1 β”œβ”€ babel-plugin-jest-hoist@24.9.0 β”œβ”€ babel-preset-jest@24.9.0 β”œβ”€ bcrypt-pbkdf@1.0.2 β”œβ”€ browser-process-hrtime@0.1.3 β”œβ”€ browser-resolve@1.11.3 β”œβ”€ caseless@0.12.0 β”œβ”€ chardet@0.7.0 β”œβ”€ cliui@5.0.0 β”œβ”€ co@4.6.0 β”œβ”€ combined-stream@1.0.8 β”œβ”€ cssom@0.3.8 β”œβ”€ cssstyle@1.4.0 β”œβ”€ dashdash@1.14.1 β”œβ”€ data-urls@1.1.0 β”œβ”€ deep-is@0.1.3 β”œβ”€ delayed-stream@1.0.0 β”œβ”€ detect-newline@2.1.0 β”œβ”€ diff-sequences@24.9.0 β”œβ”€ doctrine@3.0.0 β”œβ”€ domexception@1.0.1 β”œβ”€ ecc-jsbn@0.1.2 β”œβ”€ emoji-regex@7.0.3 β”œβ”€ es-to-primitive@1.2.1 β”œβ”€ escodegen@1.12.1 β”œβ”€ eslint-plugin-eslint-comments@3.1.2 β”œβ”€ eslint-plugin-flowtype@2.50.3 β”œβ”€ eslint-plugin-jest@22.4.1 β”œβ”€ eslint-plugin-prettier@2.6.2 β”œβ”€ eslint-plugin-react-hooks@1.7.0 β”œβ”€ eslint-plugin-react-native-globals@0.1.2 β”œβ”€ eslint-plugin-react-native@3.6.0 β”œβ”€ eslint-plugin-react@7.12.4 β”œβ”€ eslint-scope@5.0.0 β”œβ”€ eslint-utils@1.4.3 β”œβ”€ eslint@6.8.0 β”œβ”€ espree@6.1.2 β”œβ”€ esquery@1.0.1 β”œβ”€ estraverse@4.3.0 β”œβ”€ extend@3.0.2 β”œβ”€ external-editor@3.1.0 β”œβ”€ extsprintf@1.3.0 β”œβ”€ fast-deep-equal@2.0.1 β”œβ”€ fast-diff@1.2.0 β”œβ”€ fast-levenshtein@2.0.6 β”œβ”€ figures@3.1.0 β”œβ”€ file-entry-cache@5.0.1 β”œβ”€ flat-cache@2.0.1 β”œβ”€ flatted@2.0.1 β”œβ”€ forever-agent@0.6.1 β”œβ”€ form-data@2.3.3 β”œβ”€ getpass@0.1.7 β”œβ”€ glob-parent@5.1.0 β”œβ”€ handlebars@4.5.3 β”œβ”€ har-schema@2.0.0 β”œβ”€ har-validator@5.1.3 β”œβ”€ html-encoding-sniffer@1.0.2 β”œβ”€ http-signature@1.2.0 β”œβ”€ ignore@4.0.6 β”œβ”€ import-fresh@3.2.1 β”œβ”€ inquirer@7.0.3 β”œβ”€ is-callable@1.1.5 β”œβ”€ is-date-object@1.0.2 β”œβ”€ is-extglob@2.1.1 β”œβ”€ is-generator-fn@2.1.0 β”œβ”€ is-glob@4.0.1 β”œβ”€ is-regex@1.0.5 β”œβ”€ is-string@1.0.5 β”œβ”€ is-symbol@1.0.3 β”œβ”€ is-typedarray@1.0.0 β”œβ”€ isstream@0.1.2 β”œβ”€ istanbul-lib-instrument@3.3.0 β”œβ”€ istanbul-lib-report@2.0.8 β”œβ”€ istanbul-lib-source-maps@3.0.6 β”œβ”€ istanbul-reports@2.2.6 β”œβ”€ jest-changed-files@24.9.0 β”œβ”€ jest-cli@24.9.0 β”œβ”€ jest-docblock@21.2.0 β”œβ”€ jest-each@24.9.0 β”œβ”€ jest-environment-jsdom@24.9.0 β”œβ”€ jest-environment-node@24.9.0 β”œβ”€ jest-leak-detector@24.9.0 β”œβ”€ jest-pnp-resolver@1.2.1 β”œβ”€ jest-resolve-dependencies@24.9.0 β”œβ”€ jest-watcher@24.9.0 β”œβ”€ jest@24.9.0 β”œβ”€ jsdom@11.12.0 β”œβ”€ json-schema-traverse@0.4.1 β”œβ”€ json-schema@0.2.3 β”œβ”€ json-stable-stringify-without-jsonify@1.0.1 β”œβ”€ json-stringify-safe@5.0.1 β”œβ”€ jsprim@1.4.1 β”œβ”€ jsx-ast-utils@2.2.3 β”œβ”€ kleur@3.0.3 β”œβ”€ left-pad@1.3.0 β”œβ”€ levn@0.3.0 β”œβ”€ load-json-file@4.0.0 β”œβ”€ lodash.unescape@4.0.1 β”œβ”€ mute-stream@0.0.8 β”œβ”€ neo-async@2.6.1 β”œβ”€ nwsapi@2.2.0 β”œβ”€ oauth-sign@0.9.0 β”œβ”€ object-inspect@1.7.0 β”œβ”€ object.fromentries@2.0.2 β”œβ”€ object.getownpropertydescriptors@2.1.0 β”œβ”€ optimist@0.6.1 β”œβ”€ optionator@0.8.3 β”œβ”€ p-each-series@1.0.0 β”œβ”€ p-reduce@1.0.0 β”œβ”€ parent-module@1.0.1 β”œβ”€ parse5@4.0.0 β”œβ”€ path-type@3.0.0 β”œβ”€ performance-now@2.1.0 β”œβ”€ pn@1.1.0 β”œβ”€ prettier@1.16.4 β”œβ”€ progress@2.0.3 β”œβ”€ prompts@2.3.0 β”œβ”€ psl@1.7.0 β”œβ”€ qs@6.5.2 β”œβ”€ react-test-renderer@16.9.0 β”œβ”€ react@16.9.0 β”œβ”€ read-pkg-up@4.0.0 β”œβ”€ read-pkg@3.0.0 β”œβ”€ request-promise-core@1.1.3 β”œβ”€ request-promise-native@1.0.8 β”œβ”€ request@2.88.0 β”œβ”€ resolve-cwd@2.0.0 β”œβ”€ rxjs@6.5.4 β”œβ”€ sisteransi@1.0.4 β”œβ”€ sshpk@1.16.1 β”œβ”€ stealthy-require@1.1.1 β”œβ”€ string.prototype.trimleft@2.1.1 β”œβ”€ string.prototype.trimright@2.1.1 β”œβ”€ strip-json-comments@3.0.1 β”œβ”€ symbol-tree@3.2.4 β”œβ”€ table@5.4.6 β”œβ”€ test-exclude@5.2.3 β”œβ”€ text-table@0.2.0 β”œβ”€ tough-cookie@2.5.0 β”œβ”€ tslib@1.10.0 β”œβ”€ tsutils@3.17.1 β”œβ”€ tunnel-agent@0.6.0 β”œβ”€ tweetnacl@0.14.5 β”œβ”€ uglify-js@3.7.4 β”œβ”€ uri-js@4.2.2 β”œβ”€ util.promisify@1.0.0 β”œβ”€ v8-compile-cache@2.1.0 β”œβ”€ verror@1.10.0 β”œβ”€ w3c-hr-time@1.0.1 β”œβ”€ whatwg-encoding@1.0.5 β”œβ”€ whatwg-mimetype@2.3.0 β”œβ”€ whatwg-url@6.5.0 β”œβ”€ word-wrap@1.2.3 β”œβ”€ write-file-atomic@2.4.1 β”œβ”€ write@1.0.3 β”œβ”€ xml-name-validator@3.0.0 └─ yargs-parser@13.1.1 ✨ Done in 17.09s. info Adding required dev dependencies yarn add v1.21.1 [1/4] πŸ” Resolving packages... [2/4] 🚚 Fetching packages... warning Pattern ["@babel/core@^7.7.7"] is trying to unpack in the same destination "/Users/blcsntb/Library/Caches/Yarn/v6/npm-@babel-core-7.7.7-ee155d2e12300bcc0cff6a8ad46f2af5063803e9-integrity/node_modules/@babel/core" as pattern ["@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.1.0","@babel/core@^7.1.0"]. This could result in non-deterministic behavior, skipping. warning Pattern ["@babel/runtime@^7.7.7"] is trying to unpack in the same destination "/Users/blcsntb/Library/Caches/Yarn/v6/npm-@babel-runtime-7.7.7-194769ca8d6d7790ec23605af9ee3e42a0aa79cf-integrity/node_modules/@babel/runtime" as pattern ["@babel/runtime@^7.0.0"]. This could result in non-deterministic behavior, skipping. [3/4] πŸ”— Linking dependencies... warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin@1.13.0" has incorrect peer dependency "eslint@^5.0.0". warning "@react-native-community/eslint-config > @typescript-eslint/parser@1.13.0" has incorrect peer dependency "eslint@^5.0.0". warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". [4/4] πŸ”¨ Building fresh packages... success Saved lockfile. success Saved 18 new dependencies. info Direct dependencies β”œβ”€ @babel/core@7.7.7 β”œβ”€ @babel/runtime@7.7.7 β”œβ”€ @react-native-community/eslint-config@0.0.6 β”œβ”€ babel-jest@24.9.0 β”œβ”€ eslint@6.8.0 β”œβ”€ jest@24.9.0 └─ metro-react-native-babel-preset@0.57.0 info All dependencies β”œβ”€ @babel/core@7.7.7 β”œβ”€ @babel/runtime@7.7.7 β”œβ”€ @react-native-community/eslint-config@0.0.6 β”œβ”€ babel-eslint@10.0.3 β”œβ”€ babel-jest@24.9.0 β”œβ”€ eslint-config-prettier@6.9.0 β”œβ”€ eslint-plugin-eslint-comments@3.1.2 β”œβ”€ eslint-plugin-react-hooks@2.3.0 β”œβ”€ eslint-plugin-react-native@3.8.1 β”œβ”€ eslint-plugin-react@7.16.0 β”œβ”€ eslint@6.8.0 β”œβ”€ get-stdin@6.0.0 β”œβ”€ jest@24.9.0 β”œβ”€ jsx-ast-utils@2.2.3 β”œβ”€ metro-react-native-babel-preset@0.57.0 β”œβ”€ object.entries@1.1.1 β”œβ”€ object.values@1.1.1 └─ prettier@1.17.0 ✨ Done in 9.56s. info Installing required CocoaPods dependencies Run instructions for iOS: β€’ cd /Users/blcsntb/react-native-app-cli/ReactNativeApp && npx react-native run-ios - or - β€’ Open ReactNativeApp/ios/ReactNativeApp.xcworkspace in Xcode or run "xed -b ios" β€’ Hit the Run button Run instructions for Android: β€’ Have an Android emulator running (quickest way to get started), or a device connected. β€’ cd /Users/blcsntb/react-native-app-cli/ReactNativeApp && npx react-native run-android ```
  1. cd ReactNativeApp
3. yarn test ``` yarn run v1.21.1 $ jest PASS __tests__/App-test.js (9.4s) βœ“ renders correctly (6460ms) Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 10.334s Ran all test suites. ✨ Done in 12.66s. ```
  1. yarn lint
yarn run v1.21.1
$ eslint .

Oops! Something went wrong! :(

ESLint: 6.8.0.

ESLint couldn't find the plugin "@react-native-community/eslint-plugin".

(The package "@react-native-community/eslint-plugin" was not found when loaded as a Node module from the directory "/Users/blcsntb/react-native-app-cli/ReactNativeApp".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm install @react-native-community/eslint-plugin@latest --save-dev

The plugin "@react-native-community/eslint-plugin" was referenced from the config file in ".eslintrc.js Β» @react-native-community/eslint-config".

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
slaci commented 4 years ago

When I upgraded @react-native-community/eslint-config to 0.0.6 from 0.0.5 then I got the same error. Installing the plugin solves the problem: yarn add --dev @react-native-community/eslint-plugin

This plugin should be a dependency of the @react-native-community/eslint-config package.

emacaste commented 4 years ago

When I upgraded @react-native-community/eslint-config to 0.0.6 from 0.0.5 then I got the same error. Installing the plugin solves the problem: yarn add --dev @react-native-community/eslint-plugin

This plugin should be a dependency of the @react-native-community/eslint-config package.

@react-native-community/eslint-config on npm repository has the package.json file different from the one on github (where it is correct) https://github.com/facebook/react-native/blob/master/packages/eslint-config-react-native-community/package.json

slaci commented 4 years ago

You are right, then its a release error. Sadly, in the npm registry its clearly missing 😞

jukben commented 4 years ago

Nice finding @beniaminorossini!

stale[bot] commented 4 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.