Skip to content

ESLint flat configurations? #374

Open

Description

@Scc33

ESLint v9 has rolled out flat configs.

I didn't see this plugin listed in their tracker (eslint/eslint#18093) nor do I see any documentation for how to use this plugin in a flat config.

Was wondering if that was supported by this project or if there are plans to support it.

Activity

  1. ssbarnea commented on Apr 12, 2024

    @ssbarnea

    Clearly documentation needs to be updated to cover for eslint v9. I do have a WIP on ansible/vscode-ansible#1223 which enables tsdoc plugin and one rule but I am wondering which is correct way to do it.

    My expectation was that I would not need to define the extra tsdoc/syntax rule in order to enable it and instead of make use of extends to enable them.

  2. blipk commented on Sep 8, 2024

    @blipk

    It's possible to enable like below:

    import tsdoceslint from "eslint-plugin-tsdoc"
    
    // ...
    
        plugins : {
            "tsdoc": tsdoceslint
        },
        rules : {
            "tsdoc/syntax": "warn",
        },
    
    /// ...

    However it's not possible to disable a single rule as eslint-plugin-tsdoc is expecting "ignore" but the new format requires "off" or 0

    e.g. Still warns for the extra rule in the VSCode ESLint extension and when running ESLint

    rules : {
        "tsdoc/syntax": "warn",
        "tsdoc/tsdoc-reference-missing-hash": [ "off" ]
    },

    e.g. Does not warn for the extra rule in the VSCode ESlint extension but ESLint refuses to run with the error below

    rules : {
        "tsdoc/syntax": "warn",
        "tsdoc/tsdoc-reference-missing-hash": [ "ignore" ]
    },
    Configuration for rule "tsdoc/tsdoc-reference-missing-hash" is invalid. Expected severity of "off", 0, "warn", 1, "error", or 2.
    
    You passed '"ignore"'.
    
  3. beorn commented on Oct 27, 2024

    @beorn

    What's the correct way to use this with ESLint 9?

  4. runspired commented on May 14, 2025

    @runspired

    👀 eslint 8 is ancientware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions