eslint-plugin-import: 2.9.1 breaks import/extensions

https://github.com/ant-design/ant-design/runs/339595849

/home/runner/work/ant-design/ant-design/components/_util/__tests__/util.test.js
   4:21  error  Missing file extension "ts" for "rc-util/lib/KeyCode"           import/extensions
   5:22  error  Missing file extension "ts" for "../raf"                        import/extensions
   6:38  error  Missing file extension "tsx" for "../throttleByAnimationFrame"  import/extensions
   7:32  error  Missing file extension "ts" for "../getDataOrAriaProps"         import/extensions
   8:26  error  Missing file extension "tsx" for "../triggerEvent"              import/extensions
   9:18  error  Missing file extension "tsx" for "../wave"                      import/extensions
  10:25  error  Missing file extension "tsx" for "../transButton"               import/extensions
  11:27  error  Missing file extension "tsx" for "../openAnimation"             import/extensions

2.8.3 works fine.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 24
  • Comments: 21 (9 by maintainers)

Commits related to this issue

Most upvoted comments

When can we expect a release with this fixed?

we are experience this issue too, a workaround is to add this to the config:

        "import/extensions": [
          "error",
          "always",
          {
            ts: "never",
            tsx: "never",
            js: "never",
            jsx: "never"
          }
        ]

I tried to upgrade to 2.20.0 and this still seemed to be unresolved for me. Does anyone else still have issues with 2.20.0?

Please file a new issue if you’re still having trouble with 2.20.

when ignorePackages is true, i wouldn’t expect any warnings for any package with any configuration.