-
Notifications
You must be signed in to change notification settings - Fork 5
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. #124
Conversation
"eslint": "^6.8.0 || ^7.0.0 || ^8.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@typescript-eslint/parser": "^5.58.0", | ||
"eslint": "^7.32.0 || ^8.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BREAKING CHANGE: eslint@^6.8.0
was removed from peer dependencies as its no longer supported with the introduction of eslint-config-airbnb-typescript
.
"eslint-config-airbnb": "^18.0.1 || ^19.0.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-config-airbnb-typescript": "^17.0.0", | ||
"eslint-plugin-import": "^2.25.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BREAKING CHANGE: This peer dependency's version was bumped slightly as eslint-config-airbnb-typescript
specifies ^2.25.3
as the minimum.
58f040f
to
43941c2
Compare
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.
43941c2
to
093436f
Compare
We will merge this PR into |
🎉 This PR is included in version 4.0.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* feat!: add conditional TypeScript support to the ESLint config. (#124) 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. * refactor: updated package-lock * refactor: updated typescript-eslint parser & plugin * refactor: updated package-lock --------- Co-authored-by: Adam Stankiewicz <agstanki@gmail.com> Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
BREAKING CHANGE:
eslint@^6.8.0
;@edx/eslint-config
must now be used with at leasteslint@^7.32.0
oreslint@^8.2.0
.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 theparserOptions.project
to the discoveredtsconfig.json
file. If atsconfig.json
file is not found, does not add support for TypeScript to avoid throwing an error about a missingtsconfig.json
file inparserOptions.project
when usingairbnb-typescript
without atsconfig.json
file.