v3.3.0
v3.3.0
Adds ESLint's new configuration system, flat config
. If you're using the new flat config:
eslint.config.js
:
import eslint from "@eslint/js";
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import preferFC from "eslint-plugin-react-prefer-function-component/config";
export default [
{ files: ["**/*.{js,jsx}"] },
eslint.configs.recommended,
reactRecommended,
preferFC.configs.recommended,
];
Full Changelog: v3.2.0...v3.3.0