Skip to content

Support flat config#3080

Closed
ghost wants to merge 5 commits into
masterfrom
unknown repository
Closed

Support flat config#3080
ghost wants to merge 5 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jan 25, 2025

Copy link
Copy Markdown

This is a pull request to support flat config for eslint-config-airbnb-base and eslint-config-airbnb and do some rewriting.

Example:

// eslint.config.cjs
const airbnb = require('eslint-config-airbnb/flat');

module.exports = [
  ...airbnb,
  // ......
];
// eslint.config.mjs
import airbnb from 'eslint-config-airbnb/flat';

export default [
  ...airbnb,
  // ......
];

@ghost

ghost commented Jan 25, 2025

Copy link
Copy Markdown
Author

By the way, I haven't fully tested it yet. So I'm not sure if it will really work.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m confused, what is the “base” folder? The existing files directly inside rules will remain where they are, and shouldn’t be duplicated.

@ljharb ljharb marked this pull request as draft January 25, 2025 15:22
@ghost ghost requested a review from ljharb January 25, 2025 15:39
@ghost ghost closed this Jan 25, 2025
@ljharb

ljharb commented Jan 25, 2025

Copy link
Copy Markdown
Collaborator

Why was this closed and replaced with a duplicate #3081?

@ghost

ghost commented Jan 25, 2025

Copy link
Copy Markdown
Author

I tried updating, I'm new to github so I don't really understand how this works. Sorry.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant