Skip to content
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

feat!: add conditional TypeScript support to the ESLint config. #146

Merged
merged 6 commits into from
Apr 5, 2024

Conversation

abdullahwaheed
Copy link
Contributor

BREAKING CHANGE:

  • Drops support for eslint@^6.8.0; @edx/eslint-config must now be used with at least eslint@^7.32.0 or eslint@^8.2.0.
  • Requires at least eslint-plugin-import@^2.25.3.

Adds conditional support for TypeScript in the shared ESLint configuration. Relies on trying to find tsconfig.json file in the root folder of consumers' project.

If found, conditionally extends airbnb-typescript and sets the parserOptions.project to the discovered tsconfig.json file. If a tsconfig.json file is not found, does not add support for TypeScript to avoid throwing an error about a missing tsconfig.json file in parserOptions.project when using airbnb-typescript without a tsconfig.json file.

adamstankiewicz and others added 6 commits April 14, 2023 15:02
BREAKING CHANGE: Drops support for `eslint` ^6.8.0; `@edx/eslint-config` must now be used with at least `eslint` versions ^7.32.0 or ^8.2.0.
feat: Eslint config alpha version merge with master
@BilalQamar95 BilalQamar95 merged commit 89d0227 into master Apr 5, 2024
6 checks passed
@BilalQamar95 BilalQamar95 deleted the alpha branch April 5, 2024 06:15
@edx-semantic-release
Copy link

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants