Closed pmcelhaney closed 2 years ago
Thanks for the PR!
I'm fine with refactoring this to make it easier to add new transforms. That said, I don't think we should add the transform from https://github.com/eslint/eslint/pull/9788 (I'm guessing that you're making this change based on the discussion in https://github.com/eslint/eslint/pull/9788, but please correct me if I'm wrong.) I don't think we should encourage plugins to generate a bunch of duplicate code when a simpler solution exists (dynamically adding a URL to the rules
export).
Right, I'm not holding out hope that particular transform will be added.
To add a new transform:
There's no need to create new (Mocha) test file. At this point, documenting the transform is still manual, but it could be easily automated.