Skip to content

chore: update eslint to latest#1588

Merged
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
Zamiell:eslint
Sep 25, 2024
Merged

chore: update eslint to latest#1588
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
Zamiell:eslint

Conversation

@Zamiell
Copy link
Contributor

@Zamiell Zamiell commented Sep 24, 2024

Closes #1582

RE: no-default-export
I spent a few hours trying to get eslint-plugin-import working, but was not able to. Afterwards, I realized that we are only using one rule from that plugin called "no-default-export", which just bans "export default foo". I don't think we are getting much value from that rule, so it makes sense just to remove it, especially since there are a bunch of "eslint-disable" for it in the codebase.

RE: ?? changes
Newer versions of the nullish-coalescing rules trigger on the existing codebase, so I went ahead and fixed the code to satisfy them.

RE: enhanced-resolve
I had to lock the version to prevent a build error. You might want to open an issue here: https://github.com/webpack/enhanced-resolve/issues

RE: strict
I had to add strict to the tsconfigs for tests, since several rules require strict to be on. (The new version of TSESLint uses the closest tsconfig.json to lint the file.)

RE: ci
had to update stuff in CI because linting was failing due to an old node version

In a future PR I think we should use the recommended rules from ESLint + TSESLint.

Copy link
Member

@Perryvw Perryvw left a comment

Choose a reason for hiding this comment

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

Thanks for shis change

@Perryvw Perryvw merged commit d7a0674 into TypeScriptToLua:master Sep 25, 2024
@Zamiell Zamiell deleted the eslint branch September 25, 2024 14:42
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.

Upgrade TypeScript ESlint to the most recent version

2 participants