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(eslint-plugin): rework configs: recommended, strict, stylistic; -type-checked #5251

Merged

Conversation

JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Jun 25, 2022

BREAKING CHANGE:
changes the recommended configs


PR Checklist

Overview

Has each config after recommended also include all rules from prior configs. Simplifies what users will have to configure by letting them only specify the strictest desired config.

This is being used to generate the table in #6014.

@JoshuaKGoldberg JoshuaKGoldberg added the breaking change This change will require a new major version to be released label Jun 25, 2022
@typescript-eslint
Copy link
Contributor

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.

@netlify
Copy link

netlify bot commented Jun 25, 2022

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 1f0c9af
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/6358350553902b0009de7910
😎 Deploy Preview https://deploy-preview-5251--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@JoshuaKGoldberg JoshuaKGoldberg changed the title feat\!: include lesser configs in recommended/strict feat!: include lesser configs in recommended/strict Jun 25, 2022
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review June 26, 2022 21:04
@armano2 armano2 added this to the 6.0.0 milestone Jun 27, 2022
@bradzacher bradzacher changed the title feat!: include lesser configs in recommended/strict feat(eslint-plugin): include lesser configs in recommended/strict Jul 2, 2022
@JoshuaKGoldberg JoshuaKGoldberg changed the base branch from main to v6 October 25, 2022 21:17
Andarist and others added 10 commits October 25, 2022 19:59
…pescript-eslint#5036)

* refactor(utils)!: removed `TRuleListener` generic from the `createRule`

* refactor!: removed `TRuleListener` generic from the `CLIEngine` and `RuleCreateFunction`

* chore: document and refactor 'extra' to 'parserSettings' (typescript-eslint#5834)

* chore(website): fix renamed Sponsorship docs link (typescript-eslint#5882)

* docs: Mention wide globs performance implications in monorepos docs and parser README (typescript-eslint#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>
…ipt-eslint#3076)

* feat: update TSImportType node

* fix: update visitor keys

* chore: document and refactor 'extra' to 'parserSettings' (typescript-eslint#5834)

* chore(website): fix renamed Sponsorship docs link (typescript-eslint#5882)

* docs: Mention wide globs performance implications in monorepos docs and parser README (typescript-eslint#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' (typescript-eslint#5834)

* chore(website): fix renamed Sponsorship docs link (typescript-eslint#5882)

* Remove much more

* Fix WebLinter lint

* docs: Mention wide globs performance implications in monorepos docs and parser README (typescript-eslint#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 (typescript-eslint#5883)

Co-authored-by: Adnan Hashmi <56730784+adnanhashmi09@users.noreply.github.com>
…TSInterfaceDeclaration and TSModuleDeclaration (typescript-eslint#4863)

* chore: remove invalid properties from ast nodes

* chore: remove invalid code in scope-manager and typescript-estree

* chore: re-write snapshots that were using invalid properties

* feat: remove modifiers union from ast types

Co-authored-by: Juan García <juank1809@gmail.com>
Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
* chore(utils)\!: remove (ts-)eslint-scope types

* Remove eslint-scope dep

* More file deletions
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review December 18, 2022 04:15
packages/eslint-plugin/CHANGELOG.md Outdated Show resolved Hide resolved
packages/eslint-plugin/src/rules/no-extra-semi.ts Outdated Show resolved Hide resolved
packages/eslint-plugin/tests/configs.test.ts Outdated Show resolved Hide resolved
packages/eslint-plugin/tests/configs.test.ts Outdated Show resolved Hide resolved
packages/eslint-plugin/tools/generate-configs.mts Outdated Show resolved Hide resolved
packages/experimental-utils/CHANGELOG.md Outdated Show resolved Hide resolved
packages/utils/src/ts-eslint/Rule.ts Show resolved Hide resolved
packages/website/plugins/generated-rule-docs.ts Outdated Show resolved Hide resolved
packages/website/plugins/generated-rule-docs.ts Outdated Show resolved Hide resolved
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

futureisnow_oldman

Comment on lines 19 to 20
'recommended-requiring-type-checking': recommendedRequiringTypeChecking,
'recommended-type-checked': recommendedTypeChecked,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was going to say you could save that one file and do this instead:

Suggested change
'recommended-requiring-type-checking': recommendedRequiringTypeChecking,
'recommended-type-checked': recommendedTypeChecked,
'recommended-requiring-type-checking': recommendedTypeChecked,
'recommended-type-checked': recommendedTypeChecked,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ha yeah true. And on top of this & v6 overall already being breaking changes, with #6458 we don't have to worry about people reaching into dist/. Great.

packages/utils/src/ts-eslint/Rule.ts Show resolved Hide resolved
@bradzacher bradzacher added the 1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready label Feb 13, 2023
@JoshuaKGoldberg JoshuaKGoldberg merged commit 5346b5b into typescript-eslint:v6 Feb 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2023
@JoshuaKGoldberg JoshuaKGoldberg deleted the config-inclusions branch December 28, 2023 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval PR that a maintainer has LGTM'd - any maintainer can merge this when ready breaking change This change will require a new major version to be released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configs: Have recommended/strict configs include lesser configs
5 participants