Typescript-eslint should use its own "recommended" config and have a simple startup example #8951
Replies: 6 comments
-
This is not non-conventional - it's officially supported as of ESLint v8.57.0. The reason we have the |
Beta Was this translation helpful? Give feedback.
-
We have https://github.com/typescript-eslint/typescript-eslint-examples Have you checked out our getting started guide? |
Beta Was this translation helpful? Give feedback.
-
You mean "the configuration of eslint". |
Beta Was this translation helpful? Give feedback.
-
We do use the recommend, but more. As per our config docs the strict config is the "recommended" and more. |
Beta Was this translation helpful? Give feedback.
-
That's part of ESLint really - for any non-trivial usecase it's not going to be a simple "drop a config and go" thing. It's going to require effort to handle edgecases where you need to turn things on/off (eg test files have different constraints to non-test files). Configuration is just a messy business and codebases aren't a homogeneous blob of code. |
Beta Was this translation helpful? Give feedback.
-
Finally, as per our contributing guide: https://typescript-eslint.io/contributing/discussions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was looking at this file here https://github.com/typescript-eslint/typescript-eslint/blob/main/eslint.config.mjs.
This file is so big adds so many custom rules instead of just the "recommended" from
tseslint.configs.recommended
, even more weirdly it uses non-conventional file extensioneslint.config.mjs
with a TODO in theeslint.config.mjs
.Idk if I am too inexperienced in all the intricacies of typescript, but I am not sure why the configuration of typescript-eslint has to be so complicated. I think it would help if there was a simple example application managed by typescript-eslint, with eslint and prettier and other basic, "recommended" configuration already set up.
Beta Was this translation helpful? Give feedback.
All reactions