HomePhabricator
Diffusion Comm fc831966110e

[RN72][skip-ci] Rename eslint NPM script to eslint:all

Description

[RN72][skip-ci] Rename eslint NPM script to eslint:all

Summary:
By overloading the eslint name, we make it impossible to run eslint from the root on a specific file.

To avoid that issue, this diff renames the eslint script name to eslint:all. Now invocations of yarn eslint will go straight to the package binary, which allows us to run it on a specific file, eg.:

yarn eslint --fix native/chat/swipeable-message.react.js

Depends on D10540

Test Plan: Try yarn eslint --fix native/chat/swipeable-message.react.js

Reviewers: atul

Reviewed By: atul

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D10541

Details

Provenance
ashoatAuthored on Jan 3 2024, 11:05 AM
Reviewer
atul
Differential Revision
D10541: [RN72][skip-ci] Rename eslint NPM script to eslint:all
Parents
rCOMM960e1bb5401c: [RN72][skip-ci] Manual ESLint fixes
Branches
Unknown
Tags
Unknown