jsx-eslint/eslint-plugin-react

[Bug]: react/prop-types error detected on linux but won't on windows

Open

#3702 aperta il 6 mar 2024

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (2797 fork)batch import
bughelp wanted

Metriche repository

Star
 (8630 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

windows detect react/prop-types error for only client component, and linux detect error from server and client component

windows: image

linux: image

I am develop nextjs 13 app with server component & client component without defining propTypes for both, but npm run lint only the detect error for client component. I cloned same code base on Fedora 38 and unlike window npm run lint detect error for both client and server component

npm run lint npx next build

Expected Behavior

It should be output same error both windows or linux, since many developers use windows as dev env and linux as production.

windows: image

linux: image

eslint-plugin-react version

v7.33.2

eslint version

v8

node version

v18.19.1

Guida contributor