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

refactor(nms): Inline fbc-js-core eslint config #12624

Merged

Conversation

thmsschmitt
Copy link
Contributor

Summary

We were still using the archived eslint-config-fbcnms package as base config for eslint.

The eslint-config-fbcnms has been inlined and some cleanup has been done:

  • Overwritten rules have been merged
  • eslint-config-prettier has been used to identify rules that conflict with prettier. As a result the comma-dangle rule and max-len rule were removed. The latter would still report warnings for comments that are ignored by prettier, but since they were only warnings they were also ignored by developers ;)
  • The dependency to eslint-config-fbjs was removed because it all its rule were anyhow overwritten.

Test Plan

I made some changes that should break the linter to verify that they still do so.

@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label May 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2022

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: nms NMS-related issue label May 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2022

nms-workflow

0 files  0 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0

Results for commit 768e86b.

♻️ This comment has been updated with latest results.

@thmsschmitt thmsschmitt force-pushed the inline-fbc-js-core-eslint-config branch from 936f827 to a4bcfab Compare May 3, 2022 14:05
@thmsschmitt thmsschmitt marked this pull request as ready for review May 3, 2022 17:50
@thmsschmitt thmsschmitt requested review from a team and andreilee May 3, 2022 17:50
Copy link
Contributor

@andreilee andreilee left a comment

Choose a reason for hiding this comment

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

Looks clean!

Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>
@thmsschmitt thmsschmitt force-pushed the inline-fbc-js-core-eslint-config branch from a4bcfab to 768e86b Compare May 5, 2022 06:21
@thmsschmitt thmsschmitt merged commit ad7c4eb into magma:master May 5, 2022
emakeev pushed a commit to emakeev/magma that referenced this pull request Aug 5, 2022
Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: nms NMS-related issue size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants