weixin_39966644 2020-11-19 13:12
浏览 0

Make most variants of module.exports = { ... } fixable

I need a codemod-like way to convert module.exports = { foo: ... } to exports.foo = ... statements. Seems like that can be achieved by making the exports-style rule fixable when in exports mode.

TODO:

  • [x] See if comments before, between and after the properties can somehow be preserved
  • 写回答

5条回答 默认 最新

  • weixin_39966644 2020-11-19 13:12
    关注

    , is this something you would consider supporting in the plugin? 🌞

    评论

报告相同问题?