npm run eslint -- --fix 检查修复结果: 修复完成后,检查代码中的导入语句是否已按规则排序。如果 ESLint 成功修复了排序问题,你的导入语句现在应该符合 sort-imports-es6-autofix 插件的规则。 集成到开发流程(可选): 为了持续保持代码质量,你可以将 ESLint 集成到你的开发流程中,例如在保存文件时自动运行 ...
Run autofix to sort these imports!eslint(simple-import-sort/sort) I can't seem to the get following plugin to automatically fix on save? ES Lint has a wall of documentation and what I've read so far tells me to do the following: "editor...
PR welcome, but note that the autofix would need to handle quite complex cases like transforming{ foo: String as PropType<'a' | 'b'>, bar: User, baz: Number }to{ foo: 'a' | 'b'; bar: User; baz: number }. mpiniarskiadded a commit to mpiniarski/eslint-plugin-vue that refere...