Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run npm run check-lint #12

Closed
wants to merge 2 commits into from

Conversation

EdmondChuiHW
Copy link

@EdmondChuiHW EdmondChuiHW commented Mar 7, 2024

Summary

Got ESLint going for VS Code. Lint errors start popping up:

image
image

To make ESLint work for this repo, Disable (Workspace) for Meta ESLint; Enable (Workspace) for public ESLint:

image

Test plan

npm run check-lint (will auto-fix)

Upstreaming plan

  • This commit should be sent as a patch to the upstream devtools-frontend repo. I've reviewed the contribution guide.
  • This commit is React Native-specific and cannot be upstreamed.

Comment on lines -21 to -28
/**
*@description Text for the performance of something
*/
performance: 'Performance',
/**
*@description Command for showing the 'Performance' tool
*/
showPerformance: 'Show Performance',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this will just be a merge conflict when we upgrade Chrome. Why does the linter think these can be removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're unused so linter deletes them.

But just checked upstream and they have it there. I suppose Chrome team doesn't run these check commands then.

https://github.com/ChromeDevTools/devtools-frontend/blob/ac3e85ae479bf5c110a1261296ea5f515d9f2497/front_end/panels/js_profiler/js_profiler-meta.ts#L20-L27

I was thinking keeping linter happy would help us avoid merge conflicts in the future, but it's doing the opposite.

Commands from https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/README.md#useful-commands

(check-loc is also missing from package.json)

Will reach out to Chrome team and see if the above docs on formatting and lint checks are current.

Turning off linter in local editor for now.

Closing.

@EdmondChuiHW EdmondChuiHW deleted the check branch March 8, 2024 21:29
@EdmondChuiHW EdmondChuiHW mentioned this pull request Mar 22, 2024
2 tasks
@EdmondChuiHW EdmondChuiHW mentioned this pull request Sep 5, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants