Skip to content

Suggestion: Use defineConfig for downloaded configuration files #885

@Pixel998

Description

@Pixel998

What problem do you want to solve?

The ESLint playground currently generates configuration files using plain object exports:

export default [
    {
        rules: { ... }
    }
];

This works, but it doesn't follow modern ESLint best practices.

What do you think is the correct solution?

I'd like the playground to generate configuration files using defineConfig helper:

import { defineConfig } from "eslint/config";

export default defineConfig([
    {
        rules: { ... }
    }
]);

Participation

  • I am willing to submit a pull request for this change.

Additional comments

Refs eslint/eslint#19505

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions