Skip to content

Conversation

dario-piotrowicz
Copy link
Contributor

@dario-piotrowicz dario-piotrowicz commented Oct 10, 2024

I've noticed that every PR is getting eslint warnings coming from the examples directory, so I figured I could open a quick PR to address them 🙂

For example: https://github.com/opennextjs/opennextjs-aws/pull/543/files

{
files: ["examples/**/*"],
rules: {
"unused-imports/no-unused-vars": "off",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am guessing that in the examples directory you might want to keep unused vars? I'm happy to just fix the actual issues instead of disabling the rule if that's preferred 🙂

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah i guess that's fine.
Everything in examples is there for e2e and as example, it make sense that we'll have unused variable sometimes.

@dario-piotrowicz dario-piotrowicz changed the title fix all the various eslint warnings present in the examples directory fix all the various examples eslint warnings Oct 10, 2024
Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, i misread the title and thought you wanted to fix all eslint
Anyway LGTM

@conico974 conico974 merged commit 0dd718f into main Oct 11, 2024
1 check passed
@conico974 conico974 deleted the dario/eslint-examples-warnings-fix branch October 11, 2024 09:50
@dario-piotrowicz
Copy link
Contributor Author

Sorry for the delay, i misread the title and thought you wanted to fix all eslint Anyway LGTM

No problem! yeah I didn't want to fix all eslint warnings in one go as some might end up being controversial, and figured I could test the water first 😅

I'll try opening a new PR for the others at some point today 🙂

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.

2 participants