wix-incubator / eslint-plugin-lodash

ESLint rules for lodash
MIT License
277 stars 65 forks source link

Support ESLint 8.x #334

Open MichaelDeBoey opened 3 years ago

MichaelDeBoey commented 3 years ago

ESLint v8.0.0 is released 🎉

It would be awesome to have official ESLint 8 support. 👊 I'm happy to help where I can of course 🙂

csvan commented 6 months ago

ESLint 9.x is now out as well.

snoack commented 1 month ago

I found a simple workaround for using eslint-plugin-lodash with ESLint 9's Flat configs:

import js from "@eslint/js";
import lodashPlugin from 'eslint-plugin-lodash';

const lodashConfig = lodashPlugin.configs.canonical;
lodashConfig.plugins = {lodash: lodashPlugin};  // Compatibility with Flat configs

export default [
  js.configs.recommended,  // Optional: eslint's recommended rules
  lodashConfig
];