Skip to content

It's a bit hard to set up using flat config style #155

Open
@vandriesh

Description

@vandriesh

Can any share their config ?

const youDontNeedMomentJS = require('eslint-plugin-you-dont-need-momentjs');
...
module.exports = [
    ...,
    {
        files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
        plugins: {
            'you-dont-need-momentjs': youDontNeedMomentJS,
        },
        rules: {
            ...youDontNeedMomentJS.configs.recommended.rules,
        },
    },
];
TypeError: Error while loading rule 'you-dont-need-momentjs/no-dynamic-import-moment': Rule must be an object with a `create` method
Occurred while linting /Users/vandries/my-repos/.../eslint.config.js

TypeError: Error while loading rule 'you-dont-need-momentjs/no-dynamic-import-moment': Rule must be an object with a `create` method
Occurred while linting /Users/vandries/my-repos/.../eslint.config.js

does it meant it's not compatibil with flat approach ?

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