eslint-plugin-import: v0.23.0 has a TypeError in newline-after-import
Hi guys,
Our build fails when upgrading to v2.23.0 with lots of
error Unexpected use of file extension "js" for "./AboutInfo.js" import/extensions
The rule’s actually right, this is something we need to fix. But if it’s a change in some defaults, maybe you should have released a major version. WDYT? Typically minors and patches do not introduce breaking changes.
Cheers!
David
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 28
- Comments: 20 (6 by maintainers)
Commits related to this issue
- fix: fix eslint-plugin-import Refs: - https://github.com/benmosher/eslint-plugin-import/issues/2056 — committed to cnpm/bug-versions by killagu 3 years ago
- [meta] correct #2065 -> #2056 — committed to import-js/eslint-plugin-import by ljharb 3 years ago
Can chime in that something is broken in 2.23.0
me too…
@ljharb I could, but it’s really any
require('×××.js')
instead ofrequire('×××')
. I’ll fix these in our codebase anyway so I’m goodPlease do not post “same issue” unless you can provide new information. I will fix the type error as soon as i can.
@ddolcimascolo a new eslint warning that should have always appeared is typically not considered a breaking change, otherwise every bugfix would be one. Unfortunately your issue has been hijacked by the type error, so I’ll get to that after publishing a v2.23.1 that fixes the crash.
@martinstark as long as it’s fixed for you, then no 😃
Yes, only relative files. A few
require('./index.js')
also that should readrequire('.')
@SoloJiang @mlbiche please file a new issue for that, so it doesn’t get lost in the noise here.
same issue