Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docs: Misleading statement: "Contains all ofstylistic, along with additional stylistic rules that require type information." #11211

Closed as not planned
Labels
documentationDocumentation ("docs") that needs adding/updatingfix: user errorissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
@bjenkins-partstech

Description

@bjenkins-partstech

Before You File a Documentation Request Please Confirm You Have Done The Following...

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}});

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation ("docs") that needs adding/updatingfix: user errorissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp