Skip to content

Conversation

dynst
Copy link
Contributor

@dynst dynst commented Aug 7, 2025

And enable import lints on JS files again, not just TS files.

Also silence a lint by using a deep import from the CommonJS package semver. npm/node-semver#712 (comment)

dynst added 3 commits August 7, 2025 14:12
And enable the recommended lints in JS files again.

Unclear why the lint triggers on this one import, though.
it's what allows understanding the exports field.
@dynst dynst force-pushed the eslint-flat-simplify branch from 282b8dc to 2889863 Compare August 7, 2025 18:59
dynst added 2 commits August 7, 2025 19:16
no idea why but it stopped complaining once the conversion
to flat config was finished. something about import plugin
got reconfigured.
only a single function from this non tree shakeable
CJS dependency was needed.
@dynst dynst force-pushed the eslint-flat-simplify branch from 2889863 to 12a138d Compare August 7, 2025 19:16
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

If we remove @typescript-eslint/parser and @eslint/compat imports here, we can remove the dependencies from package.json too right?

@dynst
Copy link
Contributor Author

dynst commented Aug 13, 2025

If we remove @typescript-eslint/parser and @eslint/compat imports here, we can remove the dependencies from package.json too right?

@eslint/compat can be safely removed, but parser has to stay, it's a peer dependency of the plugin. Pretty sure it gets referenced in every element of the array typescriptEslint.configs["flat/strict-type-checked"] (which is why it doesn't need to be specified again explicitly).

Error: @typescript-eslint/eslint-plugin tried to access @typescript-eslint/parser (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound.

@webmaster128 webmaster128 added this to the 0.37 milestone Aug 14, 2025
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