You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a default config for prettier, and I want to show an eslint error if the code is not following prettier config. but I notice that .prettierrc.js is not working. is it expected behavior or does the .prettierrc.js is not needed anymore?
run npx prettier App.tsx --config-precedence=file-override --check --loglevel=debug (add --write argument to run the formatter)
React Native Version
0.77.0
Affected Platforms
Other (please specify)
Output of npx react-native info
failed running `npx react-native info` using `Template Reproducer`
> npx react-native info
⚠️ react-native depends on @react-native-community/cli for cli commands. To fix update your package.json to include:
"devDependencies": {
"@react-native-community/cli": "latest",
}
Description
I've a default config for
prettier
, and I want to show aneslint
error if the code is not followingprettier
config. but I notice that.prettierrc.js
is not working. is it expected behavior or does the.prettierrc.js
is not needed anymore?Steps to reproduce
npx @react-native-community/cli@latest init prettierError
.prettierrc.js
App.tsx
npx prettier App.tsx --config-precedence=file-override --check --loglevel=debug
(add--write
argument to run the formatter)React Native Version
0.77.0
Affected Platforms
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/flixyudh/prettierError
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: