Default ESLint config with typescript should include typescript-eslint:recommended(-requiring-type-checking) #6126
Closed
JoshuaKGoldberg
started this conversation in
Proposals
Replies: 2 comments 2 replies
-
As you can see in the default config, we're already including TypeScript rules remix/packages/remix-eslint-config/rules/typescript.js Lines 5 to 54 in 66b39d1 So I don't think we need an extra If you want to extend the configs you mentioned by default, I would suggest to create a PR that does so and then the team will look into if it's desired or not. |
Beta Was this translation helpful? Give feedback.
1 reply
-
#6614 is merged so this should be resolve din the next release ( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Similar to #5071, but for projects that enable TypeScript. Right now, Remix projects created with
npx create-remix@latest
and TypeScript use the TSESLint parser for TypeScript projects -great!- but haven't enabled any of its preset configurations. Those configurations are recommended for most-to-all TypeScript projects by the TSESLint maintenance team.To verify the list of ESLint rules used in an app newly created with
create-remix --typescript
, you can run:npx eslint --print-config app/routes/_index.tsx > rules.json
Is there a particular reason not to include the
@typescript-eslint/recommended
and@typescript-eslint/recommended-requiring-type-checking
configs for users by default?A couple of notes on why that's likely more desirable now than in the past:
Proposed solution:Make a@remix-run/typescript
lint config in@remix-run/eslint-config
that extends from@typescript-eslint/recommended
and@typescript-eslint/recommended-requiring-type-checking
Increate-remix
, when TypeScript is provided, change the.eslintrc.json
file contents to include"@remix-run/typescript"
inextends
.Edit based on #6126 (comment): there's already a
typescript
set of overrides! So this discussion should be around enabling recommended rules in them.Beta Was this translation helpful? Give feedback.
All reactions