You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
{files: ['**/*.ts','**/*.tsx','**/*.js','**/*.jsx'],plugins: {'you-dont-need-momentjs': youDontNeedMomentJS,},rules: {// Manually register each rule to ensure they follow flat config expectations
...Object.fromEntries(Object.entries(youDontNeedMomentJS.rules).map(([key,rule])=>[`you-dont-need-momentjs/${key}`,rule&&rule.create ? 'warn' : 'off',// Apply if rule has a create method]),),},},
Can any share their config ?
does it meant it's not compatibil with flat approach ?
The text was updated successfully, but these errors were encountered: