-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
parserOptions.project = true #1230
Comments
closes #1230 Co-authored-by: Shahar "Dawn" Or <[email protected]>
🎉 This issue has been resolved in version 38.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was a breaking change, unfortunately. Previously, the following worked: extends: standard
overrides:
- files: ['*.ts', '*.tsx']
extends: 'standard-with-typescript'
parserOptions:
project: './tsconfig.lint.json' but now we have to write: extends: standard
overrides:
- files: ['*.ts', '*.tsx']
extends: 'standard-with-typescript'
parserOptions:
project: './tsconfig.lint.json' Additionally, it causes major effort for us. We're including eslint-config-standard-with-typescript in an org-wide custom config, which is then added to dozens of downstream projects. Now all of these downstream projects have to specify the i.e. what worked before: extends: '@my-org/eslint-config'
parserOptions:
project: './tsconfig.lint.json' now has to be (in many repos): extends: '@my-org/eslint-config'
overrides:
- files: ['*.ts', '*.tsx']
parserOptions:
project: './tsconfig.lint.json' Otherwise, we get hit with the following error:
|
|
@jay-bulk Thanks very much for your detailed response!
I agree, and there was also a major release immediately afterwards. But yeah, I would consider it a breaking change.
This is a usage that worked before and now it doesn't - hence my conclusion about it being a breaking change. Obviously, I wouldn't write it this way when starting a new project :) Our actual production usage is described further down in the original comment, and there you can see the
I considered that multiple times; unfortunately, this results in wrong compilation output since we also have tests and tooling configs in TypeScript. Those need to be linted but not compiled. From what I could gather, having a secondary config for linting like this is not uncommon.
That's a good recommendation, thanks. I'm actually quite looking forward to the flat config, as it will hopefully allow us to expose a factory function from our base config package, such that changes like this can be fully abstracted away. We'll hold off on updating until the migration 👍 |
eslint/create-config#71 (comment)
The text was updated successfully, but these errors were encountered: