Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defineConfig helper in newest ESLint 9.22 #158

Open
devtobi opened this issue Mar 19, 2025 · 1 comment
Open

defineConfig helper in newest ESLint 9.22 #158

devtobi opened this issue Mar 19, 2025 · 1 comment

Comments

@devtobi
Copy link
Contributor

devtobi commented Mar 19, 2025

eslint 9.22 introduced the helper function defineConfig (see https://eslint.org/blog/2025/03/flat-config-extends-define-config-global-ignores/#introducing-defineconfig()-for-eslint for more information).

As vuejs/eslint-config-typescript also provides its own helper function defineConfigWithVueTs, I wonder whether this is still necessary.
If so, the implementation of defineConfigWithVueTs should be refactored to use the eslint helper function. (e.g. flattening can be done by eslint helper function).

@haoqunjiang
Copy link
Member

It's still necessary to transform the user-config inside the helper function.
The implementation is based on typescript-eslint's config helper, which has different semantics from the official one (typescript-eslint/typescript-eslint#10856). We'll need a breaking change to match it. Let's wait for typescript-eslint to catch it up first.

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

No branches or pull requests

2 participants