chore: document and refactor 'extra' to 'parserSettings'#5834
chore: document and refactor 'extra' to 'parserSettings'#5834bradzacher merged 8 commits intotypescript-eslint:mainfrom
Conversation
|
Thanks for the PR, @JoshuaKGoldberg! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
8e502de to
3ead14e
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5834 +/- ##
==========================================
+ Coverage 91.33% 91.36% +0.03%
==========================================
Files 361 364 +3
Lines 12044 12134 +90
Branches 3506 3540 +34
==========================================
+ Hits 11000 11086 +86
Misses 748 748
- Partials 296 300 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
packages/typescript-estree/src/create-program/createSourceFile.ts
Outdated
Show resolved
Hide resolved
😭 Edit: went away on re-run. I'm going to pretend this little blip never happened. |
packages/typescript-estree/src/parseSettings/createParseSettings.ts
Outdated
Show resolved
Hide resolved
…gs.ts Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
…xtra-to-parser-settings
|
Getting real tired of having to re-request review after merges 🥲 |
) * refactor(utils)!: removed `TRuleListener` generic from the `createRule` * refactor!: removed `TRuleListener` generic from the `CLIEngine` and `RuleCreateFunction` * chore: document and refactor 'extra' to 'parserSettings' (#5834) * chore(website): fix renamed Sponsorship docs link (#5882) * docs: Mention wide globs performance implications in monorepos docs and parser README (#5864) * docs: Mention wide globs performance implications in monorepos docs and parser readme * Update docs/linting/typed-linting/MONOREPOS.md Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> Co-authored-by: Adnan Hashmi <56730784+adnanhashmi09@users.noreply.github.com>
* feat: update TSImportType node * fix: update visitor keys * chore: document and refactor 'extra' to 'parserSettings' (#5834) * chore(website): fix renamed Sponsorship docs link (#5882) * docs: Mention wide globs performance implications in monorepos docs and parser README (#5864) * docs: Mention wide globs performance implications in monorepos docs and parser readme * Update docs/linting/typed-linting/MONOREPOS.md Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> Co-authored-by: Adnan Hashmi <56730784+adnanhashmi09@users.noreply.github.com>
* feat(scope-manager): ignore ECMA version * chore: document and refactor 'extra' to 'parserSettings' (#5834) * chore(website): fix renamed Sponsorship docs link (#5882) * Remove much more * Fix WebLinter lint * docs: Mention wide globs performance implications in monorepos docs and parser README (#5864) * docs: Mention wide globs performance implications in monorepos docs and parser readme * Update docs/linting/typed-linting/MONOREPOS.md Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * chore: add auto-canary release for v6 (#5883) Co-authored-by: Adnan Hashmi <56730784+adnanhashmi09@users.noreply.github.com>


PR Checklist
codeandextravariables #5833Overview
Despite the nontrivial diff, this shouldn't change any significant logic.
ast,code,extra, andprogrammodule scoped variables into parameters that get passed aroundextraExtratoParseSettingsand adds doc comments for its propertiesparserSettings(formerlyextra) into acreateParseSettingsfunction, and makes it almost all happen in-placeI'm choosing to ignore the Codecov complaint because the diff is reducing lines of code ✨. But if you think we should test these edge cases more, I could use some help figuring out where that should go.