Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
* Contains all of `stylistic`, along with additional stylistic rules that require type information. |
This statement led me to think that I wouldn't need any@stylistic/*
packages and that by using thetseslint.configs.stylisticTypeChecked
config I would getstylistic
lint errors out of the box.
Affected URL(s)
https://typescript-eslint.io/users/configs/#stylistic-type-checked
Additional Info
It may also be worthwhile to provide an example for those looking to use bothtypescript-eslint
andstylistic
.
It was rather challenging for me to come up with this:
importeslintfrom"@eslint/js";importtseslintfrom"typescript-eslint";importstylisticfrom'@stylistic/eslint-plugin-ts'//import stylisticJsx from '@stylistic/eslint-plugin-jsx'exportdefaulttseslint.config(eslint.configs.recommended,tseslint.configs.recommendedTypeChecked,tseslint.configs.stylisticTypeChecked,stylistic.configs.all,{"languageOptions":{"parser":tseslint.parser,"parserOptions":{//"project": "./tsconfig.json","projectService":true,"tsconfigRootDir":import.meta.dirname}},"plugins":{"@stylistic/ts":stylistic,//"@stylistic/jsx": stylisticJsx}});