Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS]: better docs around setup #57

Open
AndreaPontrandolfo opened this issue Apr 23, 2024 · 3 comments
Open

[DOCS]: better docs around setup #57

AndreaPontrandolfo opened this issue Apr 23, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@AndreaPontrandolfo
Copy link

It's not fully clear to me how to setup the plugin in a FlatConfig, meaning eslint.config.js, the docs could be expanded on that.

@vitonsky vitonsky added the documentation Improvements or additions to documentation label Apr 23, 2024
@AndreaPontrandolfo
Copy link
Author

Also, i'm sorry to report that it's not working for me.

Used it like this (in flat config):

import paths from 'eslint-plugin-paths';
   export default [ 
      {
      plugins: { paths },
      rules: {
        'paths/alias': 2,
      },
    }
]

I see no warnings from Eslint

Node v20.10.0
eslint: v8.57.0
typescript: v5.3.3

@alexwork1611
Copy link

Will there ever be support for a v9 flat config?

@samtsai
Copy link
Contributor

samtsai commented Oct 24, 2024

Also, i'm sorry to report that it's not working for me.

Used it like this (in flat config):

import paths from 'eslint-plugin-paths';
   export default [ 
      {
      plugins: { paths },
      rules: {
        'paths/alias': 2,
      },
    }
]

I see no warnings from Eslint

Node v20.10.0 eslint: v8.57.0 typescript: v5.3.3

What does your tsconfig look like, specifically you're alias paths? I was able to get warnings though I also had to make some general fixes #145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: No status
Development

No branches or pull requests

4 participants