Tell us about your environment
- **eslint version:9.17.0
- **eslint-plugin-no-autofix version:2.1.0
- **eslint config:
import path from "node:path";
import { fileURLToPath } from "node:url";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import autoPlugin from 'eslint-plugin-no-autofix';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
export default [autoPlugin.configs.all];
Expected behavior
success use
Actual behavior
throw error: This method cannot be used with flat config. Add your entries directly into the config array
Tell us about your environment
Expected behavior
success use
Actual behavior
throw error: This method cannot be used with flat config. Add your entries directly into the config array