Open
Description
根据ESlint官方计划,原定是12月或1月出9.0的,延期应该也不会很久,可以预期Q1会出现9.0的正式版。
在9.0中,Flat Config会变成默认配置,且Flat Config确实有不少可见的好处,我们也建议尽快跟进。
同时,在这个大版本中,我希望相对彻底地重构一下本项目,解决一些历史上没有去碰的问题,让它整体更现代化一些。
- 为了减少复杂度,暂时停止对百度规则的支持,后续百度系统有更新需求时再加回
- 全包改为ESM模式,不支持CJS
- 要求ESLint >= 9,待9.0版本发布
- 基础、
import
、react
、import
配置调整 - 重新审查所有TypeScript相关规则
- 风格类规则迁移使用stylistic
-
san
插件需要根据Flat Config进行升级 @errorrik -
vue
配置按版本分为多个 @Justineo - 修改
.eslintrc.js
为eslint.config.js
并确保本库代码通过检查 - 使用
exports
声明导出的模块。 - 修改
README
说明使用方法
社区进展:
- [Fix] pass languageOptions through in child context import-js/eslint-plugin-import#2829
- [Feature Request] Support new ESLint flat config import-js/eslint-plugin-import#2556
- ESLint v9 Support typescript-eslint/typescript-eslint#8211
- Enable Flat Config by default microsoft/vscode-eslint#1644
- How to configure with
eslint.config.js
with ESM? jsx-eslint/eslint-plugin-react#3685 - eslint-plugin-react-hooks & "Flat Config" (ESLint 9) facebook/react#28313
Metadata
Metadata
Assignees
Labels
No labels