Skip to content

bug report: eslint-plugin-no-autofix:This method cannot be used with flat config. Add your entries directly into the config array #102

@AIluffy

Description

@AIluffy

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions