vitonsky / eslint-plugin-paths

A plugin for ESLint, to force use paths aliases from tsconfig
https://www.npmjs.com/package/eslint-plugin-paths
Apache License 2.0
48 stars 0 forks source link

[DOCS]: better docs around setup #57

Open AndreaPontrandolfo opened 4 months ago

AndreaPontrandolfo commented 4 months ago

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.

AndreaPontrandolfo commented 4 months ago

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