-
Notifications
You must be signed in to change notification settings - Fork 101
Missing extends in generated config #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Well that's unfortunate 😞. The TSLint behavior equivalent is also mentioned here: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/ROADMAP.md Is there some way to figure out the |
I dug into this and came up with a working solution: jeremyyap@67c0b15 Admittedly it's quite a hacky solution but this is the only one I found so far besides just copying over the file parsing code from ESLint. I needed to use On the plus side though, this will also solve #58 😅 |
I think it might make more sense to copy ESLint's file parsing logic over. Then it could be used to parse TSLint and TS config files as well, and would help to solve #2, #4 and #151. The downside of that is that we would be parsing some files twice, once for the raw config and once for the normalized/flattened config, although performance should be less of a concern for a run-once script? |
Mmhh, My main concern would be taking a dependency on ESLint's
Indeed, a few extra file parses -even for multi-level file parsings- shouldn't be an issue. I think a quick solution for now would be to The one tricky thing there is that we can't |
#245 should start on that quick solution. 🚀 |
@jeremyyap #245 is merged in now, but if you think there's a flaw in its logic or have a better solution, I'm all ears! We can either re-open this issue or file a new one. |
🐛 Bug Report
tslint-to-eslint-config
version: 0.2.7Actual Behavior
extends
is an empty array in the output even if there wereextends
in the original.eslintrc
Expected Behavior
The
extends
in the original.eslintrc
should be retainedReproduction
Original
.eslintrc.js
:Output using ESLint 5:
Output using ESLint 6:
It seems that the behaviour of the
--print-config
flag changed in ESLint 6 and it no longer printsextends
The text was updated successfully, but these errors were encountered: