-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 loadESLint() API method for v8 #18098
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for docs-eslint canceled.
|
snitin315
reviewed
Feb 9, 2024
snitin315
added
the
accepted
There is consensus among the team that this change meets the criteria for inclusion
label
Feb 9, 2024
snitin315
approved these changes
Feb 9, 2024
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.
LGTM, thanks! I'll leave it open for others to review.
Co-authored-by: Milos Djermanovic <[email protected]>
Co-authored-by: Milos Djermanovic <[email protected]>
mdjermanovic
approved these changes
Feb 14, 2024
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.
LGTM, thanks!
Vylpes
pushed a commit
to Vylpes/Droplet
that referenced
this pull request
Apr 10, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`8.56.0` -> `8.57.0`](https://renovatebot.com/diffs/npm/eslint/8.56.0/8.57.0) | | [@types/eslint](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped)) | devDependencies | patch | [`8.56.2` -> `8.56.6`](https://renovatebot.com/diffs/npm/@types%2feslint/8.56.2/8.56.6) | --- ### Release Notes <details> <summary>eslint/eslint (eslint)</summary> ### [`v8.57.0`](https://github.com/eslint/eslint/releases/tag/v8.57.0) [Compare Source](eslint/eslint@v8.56.0...v8.57.0) #### Features - [`1120b9b`](eslint/eslint@1120b9b) feat: Add loadESLint() API method for v8 ([#​18098](eslint/eslint#18098)) (Nicholas C. Zakas) - [`dca7d0f`](eslint/eslint@dca7d0f) feat: Enable `eslint.config.mjs` and `eslint.config.cjs` ([#​18066](eslint/eslint#18066)) (Nitin Kumar) #### Bug Fixes - [`2196d97`](eslint/eslint@2196d97) fix: handle absolute file paths in `FlatRuleTester` ([#​18064](eslint/eslint#18064)) (Nitin Kumar) - [`69dd1d1`](eslint/eslint@69dd1d1) fix: Ensure config keys are printed for config errors ([#​18067](eslint/eslint#18067)) (Nitin Kumar) - [`9852a31`](eslint/eslint@9852a31) fix: deep merge behavior in flat config ([#​18065](eslint/eslint#18065)) (Nitin Kumar) - [`4c7e9b0`](eslint/eslint@4c7e9b0) fix: allow circular references in config ([#​18056](eslint/eslint#18056)) (Milos Djermanovic) #### Documentation - [`84922d0`](eslint/eslint@84922d0) docs: Show prerelease version in dropdown ([#​18139](eslint/eslint#18139)) (Nicholas C. Zakas) - [`5b8c363`](eslint/eslint@5b8c363) docs: Switch to Ethical Ads ([#​18117](eslint/eslint#18117)) (Milos Djermanovic) - [`77dbfd9`](eslint/eslint@77dbfd9) docs: show NEXT in version selectors ([#​18052](eslint/eslint#18052)) (Milos Djermanovic) #### Chores - [`1813aec`](eslint/eslint@1813aec) chore: upgrade [@​eslint/js](https://github.com/eslint/js)[@​8](https://github.com/8).57.0 ([#​18143](eslint/eslint#18143)) (Milos Djermanovic) - [`5c356bb`](eslint/eslint@5c356bb) chore: package.json update for [@​eslint/js](https://github.com/eslint/js) release (Jenkins) - [`f4a1fe2`](eslint/eslint@f4a1fe2) test: add more tests for ignoring files and directories ([#​18068](eslint/eslint#18068)) (Nitin Kumar) - [`42c0aef`](eslint/eslint@42c0aef) ci: Enable CI for `v8.x` branch ([#​18047](eslint/eslint#18047)) (Milos Djermanovic) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjAiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=--> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/Droplet/pulls/295 Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
Vylpes
pushed a commit
to Vylpes/card-drop
that referenced
this pull request
Apr 10, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`8.56.0` -> `8.57.0`](https://renovatebot.com/diffs/npm/eslint/8.56.0/8.57.0) | --- ### Release Notes <details> <summary>eslint/eslint (eslint)</summary> ### [`v8.57.0`](https://github.com/eslint/eslint/releases/tag/v8.57.0) [Compare Source](eslint/eslint@v8.56.0...v8.57.0) #### Features - [`1120b9b`](eslint/eslint@1120b9b) feat: Add loadESLint() API method for v8 ([#​18098](eslint/eslint#18098)) (Nicholas C. Zakas) - [`dca7d0f`](eslint/eslint@dca7d0f) feat: Enable `eslint.config.mjs` and `eslint.config.cjs` ([#​18066](eslint/eslint#18066)) (Nitin Kumar) #### Bug Fixes - [`2196d97`](eslint/eslint@2196d97) fix: handle absolute file paths in `FlatRuleTester` ([#​18064](eslint/eslint#18064)) (Nitin Kumar) - [`69dd1d1`](eslint/eslint@69dd1d1) fix: Ensure config keys are printed for config errors ([#​18067](eslint/eslint#18067)) (Nitin Kumar) - [`9852a31`](eslint/eslint@9852a31) fix: deep merge behavior in flat config ([#​18065](eslint/eslint#18065)) (Nitin Kumar) - [`4c7e9b0`](eslint/eslint@4c7e9b0) fix: allow circular references in config ([#​18056](eslint/eslint#18056)) (Milos Djermanovic) #### Documentation - [`84922d0`](eslint/eslint@84922d0) docs: Show prerelease version in dropdown ([#​18139](eslint/eslint#18139)) (Nicholas C. Zakas) - [`5b8c363`](eslint/eslint@5b8c363) docs: Switch to Ethical Ads ([#​18117](eslint/eslint#18117)) (Milos Djermanovic) - [`77dbfd9`](eslint/eslint@77dbfd9) docs: show NEXT in version selectors ([#​18052](eslint/eslint#18052)) (Milos Djermanovic) #### Chores - [`1813aec`](eslint/eslint@1813aec) chore: upgrade [@​eslint/js](https://github.com/eslint/js)[@​8](https://github.com/8).57.0 ([#​18143](eslint/eslint#18143)) (Milos Djermanovic) - [`5c356bb`](eslint/eslint@5c356bb) chore: package.json update for [@​eslint/js](https://github.com/eslint/js) release (Jenkins) - [`f4a1fe2`](eslint/eslint@f4a1fe2) test: add more tests for ignoring files and directories ([#​18068](eslint/eslint#18068)) (Nitin Kumar) - [`42c0aef`](eslint/eslint@42c0aef) ci: Enable CI for `v8.x` branch ([#​18047](eslint/eslint#18047)) (Milos Djermanovic) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjAiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=--> Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/186 Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
Vylpes
pushed a commit
to Vylpes/random-bunny
that referenced
this pull request
Apr 10, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`8.56.0` -> `8.57.0`](https://renovatebot.com/diffs/npm/eslint/8.56.0/8.57.0) | | [@types/eslint](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped)) | devDependencies | patch | [`8.56.2` -> `8.56.3`](https://renovatebot.com/diffs/npm/@types%2feslint/8.56.2/8.56.3) | --- ### Release Notes <details> <summary>eslint/eslint (eslint)</summary> ### [`v8.57.0`](https://github.com/eslint/eslint/releases/tag/v8.57.0) [Compare Source](eslint/eslint@v8.56.0...v8.57.0) #### Features - [`1120b9b`](eslint/eslint@1120b9b) feat: Add loadESLint() API method for v8 ([#​18098](eslint/eslint#18098)) (Nicholas C. Zakas) - [`dca7d0f`](eslint/eslint@dca7d0f) feat: Enable `eslint.config.mjs` and `eslint.config.cjs` ([#​18066](eslint/eslint#18066)) (Nitin Kumar) #### Bug Fixes - [`2196d97`](eslint/eslint@2196d97) fix: handle absolute file paths in `FlatRuleTester` ([#​18064](eslint/eslint#18064)) (Nitin Kumar) - [`69dd1d1`](eslint/eslint@69dd1d1) fix: Ensure config keys are printed for config errors ([#​18067](eslint/eslint#18067)) (Nitin Kumar) - [`9852a31`](eslint/eslint@9852a31) fix: deep merge behavior in flat config ([#​18065](eslint/eslint#18065)) (Nitin Kumar) - [`4c7e9b0`](eslint/eslint@4c7e9b0) fix: allow circular references in config ([#​18056](eslint/eslint#18056)) (Milos Djermanovic) #### Documentation - [`84922d0`](eslint/eslint@84922d0) docs: Show prerelease version in dropdown ([#​18139](eslint/eslint#18139)) (Nicholas C. Zakas) - [`5b8c363`](eslint/eslint@5b8c363) docs: Switch to Ethical Ads ([#​18117](eslint/eslint#18117)) (Milos Djermanovic) - [`77dbfd9`](eslint/eslint@77dbfd9) docs: show NEXT in version selectors ([#​18052](eslint/eslint#18052)) (Milos Djermanovic) #### Chores - [`1813aec`](eslint/eslint@1813aec) chore: upgrade [@​eslint/js](https://github.com/eslint/js)[@​8](https://github.com/8).57.0 ([#​18143](eslint/eslint#18143)) (Milos Djermanovic) - [`5c356bb`](eslint/eslint@5c356bb) chore: package.json update for [@​eslint/js](https://github.com/eslint/js) release (Jenkins) - [`f4a1fe2`](eslint/eslint@f4a1fe2) test: add more tests for ignoring files and directories ([#​18068](eslint/eslint#18068)) (Nitin Kumar) - [`42c0aef`](eslint/eslint@42c0aef) ci: Enable CI for `v8.x` branch ([#​18047](eslint/eslint#18047)) (Milos Djermanovic) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjAiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=--> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/150 Reviewed-by: Vylpes <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
This was referenced Jul 2, 2024
This was referenced Jul 13, 2024
eslint-github-bot
bot
added
the
archived due to age
This issue has been archived; please open a new issue for any further discussion
label
Aug 13, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
feature
This change adds a new feature to ESLint
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: Intentionally sent to v8.x branch.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
loadESLint()
method to the public API.shouldUseFlatConfig()
function accept an optionalcwd
argument.configType
to bothESLint
andFlatESLint
.refs #18075
Is there anything you'd like reviewers to focus on?