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

ref: Split eslint and prettier #335

Merged
merged 12 commits into from
Dec 6, 2023
Merged

ref: Split eslint and prettier #335

merged 12 commits into from
Dec 6, 2023

Conversation

RobertGemmaJr
Copy link
Member

@RobertGemmaJr RobertGemmaJr commented Nov 22, 2023

Cleans up our eslint file, including removing prettier from it. The format script will be updated to run prettier directly (#336)

  • Updates ecma version to 2023
  • Adds jest to env
  • Removes unnecessary globals
  • Removes prettier form the rules
  • Updates prettier rules to align with brown CCV's
  • Uses the ?? operator instead of || where it's more appropriate (can no do because of the bump to ecma)

@RobertGemmaJr RobertGemmaJr self-assigned this Nov 22, 2023
@RobertGemmaJr RobertGemmaJr linked an issue Nov 22, 2023 that may be closed by this pull request
@RobertGemmaJr
Copy link
Member Author

I need to update the documentation before I merge this in!

Copy link

github-actions bot commented Nov 22, 2023

Visit the preview URL for this PR (updated for commit 5238ddf):

https://ccv-honeycomb--pr335-ref-eslint-prettier-owld1nwa.web.app

(expires Wed, 29 Nov 2023 15:49:05 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4ace1dcea913a952d2a1af84b94a4421bf36e610

@RobertGemmaJr
Copy link
Member Author

Coincides with this PR in the documentation

Comment on lines +24 to +25
/.pnp
.pnp.js
Copy link

Choose a reason for hiding this comment

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

you're using modern yarn?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, just npm. But it's been the gitignore since I started on the project 🤷‍♂️

@@ -20,8 +20,8 @@ let USE_EEG = false;
let VIDEO = false;

// Override product ID if environment variable set
const activeProductId = process.env.EVENT_MARKER_PRODUCT_ID || productId;
const activeComName = process.env.EVENT_MARKER_COM_NAME || comName;
const activeProductId = process.env.EVENT_MARKER_PRODUCT_ID ?? productId;

Choose a reason for hiding this comment

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

Was this a linting fix, or was it manually changed? I don't see a corresponding rule, but it might be a good idea to rule this in the linter if possible.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was a manual change. It's something I've been eyeing and can now change since I've updated the ecma version

@RobertGemmaJr RobertGemmaJr merged commit d60603c into main Dec 6, 2023
8 checks passed
@RobertGemmaJr RobertGemmaJr deleted the ref-eslint-prettier branch December 6, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Seperate eslint and prettier commands
3 participants