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

add the --report-unused-disable-directives to lint script #441

Merged
merged 3 commits into from
May 12, 2024

Conversation

demetris-manikas
Copy link
Contributor

@demetris-manikas demetris-manikas commented May 11, 2024

This PR adds the --report-unused-disable-directives which removes all unused eslint disable directives.

It also adds a .eslintignore file that excludes the .eslintrc.cjs file.
This is because after enabling the Microsoft eslint plugin in VSCode it complains about this
Many ways to solve it and I picked the easiest one.
Really why the .cjs extension? why not .js or '.json' ?

@qianl15
Copy link
Member

qianl15 commented May 11, 2024

Thank you! One formatting nit is that --report-unused-disable-directives seems to replace the disable directives lines with empty lines. Can you remove those new empty lines?

This PR is also conflicting with main, please resolve conflicts.

We will clean up eslint config. I filed an issue to track this.

@demetris-manikas demetris-manikas force-pushed the eslint-updates branch 2 times, most recently from bde580d to c27ad7d Compare May 11, 2024 18:04
@demetris-manikas
Copy link
Contributor Author

demetris-manikas commented May 11, 2024

I tried renaming eslintconfg.cjs to eslintconfg.js and immediately realized want you were talking about...
There is a duplicate parserOptions...

Copy link
Member

@qianl15 qianl15 left a comment

Choose a reason for hiding this comment

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

This PR looks good!

@qianl15 qianl15 merged commit 6843330 into dbos-inc:main May 12, 2024
2 checks passed
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.

None yet

2 participants