Replies: 1 comment
-
This is just the way plugins work in ESLint. See the docs: https://eslint.org/docs/latest/use/configure/plugins For typescript-eslint, you'll have to talk to the maintainers about how to correctly use it. We aren't involved with that project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was doing some tests with @eslint/json and typescript-eslint and I had some problems, then when I went to documentation, I saw there are not examples about how to use it in a typescript project and also some diferencies with examples that confuse me then I decided to let you know this disccusion, I hope it would be interesting your you and let you see that with some small changes it could improve for people like me.
1.- Documentation
Inside @eslint/json documentation, there are two examples:
example 1
example 2: Recommended Configuration
{plugins: {json,},},
section (example 1) or not (example 2)?{plugins: {json,},},
(example 1))?2.- Use of @eslint/json and typescript-eslint
I don´t know if other people have problems understanding the best way to use it, it is very common with manuals that they are written by experienced people with a big knowledge of the tool or experience working with it, but this manuals are not reviewed for people with less experience, then a manual that is perfect for first user is not enough for second kind of people.
typescript-eslint has a utility named config (A utility function for creating type-safe flat configs) then my propuse is :
Inside typescript-eslint documentation ...config() there are a note "...strongly recommend using this utility to improve the config authoring experience...", they also add a section to use without this utily function but it add some jdocs annotations that are confusing.
3.- Translations
Eslint is a tool very popular inside developers, maybe it is the most used utility for linting around the World, then what do you think about to add a directory with the posibility to add README files with translations to other languages? This could be doing for community colaborations.
I have created a PR-35
I will be waiting your response with expectation.
Beta Was this translation helpful? Give feedback.
All reactions