Skip to content

Conversation

JoshuaKGoldberg
Copy link
Member

PR Checklist

Overview

Roughly per the issue, adds recommendations and links to docs in two places:

  • A new docs/FAQs.md emphatically linked to in the README.md
  • A block comment at the beginning of the generated config file

Notes

FYI @adidahiya @bradzacher @JamesHenry - I wouldn't feel comfortable speaking on behave of either maintenance team without checking in 😄. Does this phrasing look good to you?

**Formatters** such as [Prettier](https://prettier.io) do a [much better job](https://prettier.io/docs/en/why-prettier.html) of formatting your code.
See [this issue](https://github.com/typescript-eslint/typescript-eslint/issues/880) for more explanation.

The maintenance teams at both TSLint and typescript-eslint recommend using a formatter such as Prettier to format your code instead of a linter.

Choose a reason for hiding this comment

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

👍

docs/FAQs.md Outdated

Our recommended TSLint-to-ESLint configuration migration approach is:

1. Switch your configuration to extend from [typescript-eslint's `recommended` and `recommend-requiring-type-checking` rulesets](https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md)

Choose a reason for hiding this comment

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

maybe the first step in this ordered list should be actually using tslint-to-eslint-config?

Copy link
Member Author

Choose a reason for hiding this comment

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

Haha I was actually in the headspace of not doing that, since I've been just starting from scratch... but I can see how that would be a confusing recommendation. Plus a lot of the folks I've talked to consider starting from scratch a much more time-intensive, collaborative process than switching minimally... will edit!

Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

Good stuff 👏

@JamesHenry
Copy link
Member

FYI @JoshuaKGoldberg I approved the request for renovate app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment on the futility of directly copying configs in generated ESLint configs

4 participants