thepassle / eslint-plugin-barrel-files

MIT License
118 stars 10 forks source link

Support flat config #16

Open rakleed opened 1 week ago

rakleed commented 1 week ago

Please add support for flat config because now I get the error:

A config object has a "plugins" key defined as an array of strings.

Flat config requires "plugins" to be an object in this form:

    {
        plugins: {
            barrel-files: pluginObject
        }
    }

Please see the following page for information on how to convert your config object into the correct format:
https://eslint.org/docs/latest/use/configure/migration-guide#importing-plugins-and-custom-parsers

See https://eslint.org/docs/latest/extend/plugin-migration-flat-config