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 · 1 comment
Open

[DOCS]: better docs around setup #57

AndreaPontrandolfo opened this issue Apr 23, 2024 · 1 comment
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

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
None yet
Development

No branches or pull requests

2 participants