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
- :up: upgrade eslint-plugin-import https://github.com/benmosher/eslint-plugin-import/issues/1557 https://github.com/benmosher/eslint-plugin-import/commit/bc3b034b59a034b4aa47b8a9e74f48fe0e14e997 — committed to ant-design/ant-design by afc163 5 years ago
- fix: disable import/extensions https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to youzan/vant by chenjiahan 5 years ago
- Revert upgrading eslint-plugin-import https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to yhatt/jsx-slack by deleted user 4 years ago
- chore(eslint): Add settings for eslint-plugin-import to cope with `import/extension` violation ref. https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to cheezenaan/blog by cheezenaan 4 years ago
- chore(deps): update dependency eslint-plugin-import to v2.20.0 (#423) * chore(deps): update dependency eslint-plugin-import to v2.20.0 * chore(eslint): Add settings for eslint-plugin-import to ... — committed to cheezenaan/blog by renovate[bot] 4 years ago
- bug(.eslintrc): added import extensions rules fixes lint error for imported modules and packages seen in https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to auturec/app by namiwa 4 years ago
- Fix eslintrc https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to yuya373/manga-viewer by yuya373 4 years ago
- fix: github actions https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to simandebvu/gamer-rama by simandebvu 4 years ago
- fix: github actions https://github.com/benmosher/eslint-plugin-import/issues/1558 — committed to AleksandarMladeno/rama by AleksandarMladeno 4 years ago
When can we expect a release with this fixed?
we are experience this issue too, a workaround is to add this to the config:
I tried to upgrade to
2.20.0
and this still seemed to be unresolved for me. Does anyone else still have issues with2.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.