Skip to content

Conversation

@haoqunjiang
Copy link
Member

@haoqunjiang haoqunjiang commented Dec 18, 2025

It's becoming harder and harder to maintain @vue/create-eslint-config separately as the tooling space evolves. So I decided to merge it back to the main repo.

The functionality remains mostly the same, except that we now explicitly generate an oxlint config file instead of passing options via CLI args.
Previously, I was adding --ignore-path .gitignore to oxlint commands, but it turns out .gitignore is automatically respected inside a git repo1. So I skipped that part.

The general idea of this refactoring is that each general feature should be self-contained inside its own template folder (linting and formatting in this PR, in parallel with tsconfig and other stuff), so that in the future we can test them independently or even publish them as separate packages again. Still a lot of work to do in that direction, but this is a start.

The commit log is a bit messy because I used git subtree to keep all commit history from https://github.com/vuejs/create-eslint-config/
But after all the refactoring, I guess I would squash them on merging.
The commit history isn't that important in this case.

Footnotes

  1. https://oxc.rs/docs/guide/usage/linter/cli.html#ignore-files

haoqunjiang and others added 30 commits July 22, 2022 18:44
https://github.com/npm/cli/tree/v8.17.0#faq-on-branding

`npm` should never be capitalized unless it is being displayed in a location that is customarily all-capitals (ex. titles on `man` pages).

pnpm seems to prefer lower-case branding too.
So that esbuild can correctly analyze the module dependency graph when
this package is bundled into other packages such as create-vue.
So that there won't be extraneous `default` property.
Fixed prettierrc generation of default style guide.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
We need them to be in module graph so that esbuild can correctly bundle
them, see vuejs/create-eslint-config@f822d2d

This is a breaking change as we can only support Node.js 16.14+
by using this feature.
haoqunjiang and others added 29 commits November 19, 2025 13:21
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…67a3f3ceea6099'

git-subtree-dir: linters-and-formatters
git-subtree-mainline: 1f3b749
git-subtree-split: 856da4a
It's becoming harder and harder to maintain `create-eslint-config`
separately as the tooling space evolves. So I decided to merge it back
to the main repo.

The functionality remains mostly the same, except that we now explicitly
generate an oxlint config file instead of passing options via CLI args.
Previously I was adding `--ignore-path .gitignore` to oxlint commands,
but it turns out `.gitignore` is automatically respected inside a git
repo[^1]. So I skipped that part.

The general idea of this refactoring is that each functionality should
be self-contained inside its own template folder, so that in the future
we can test them independently or even publish them as separate packages
again. Still a lot of work to do in that direction, but this is a start.

[^1]: https://oxc.rs/docs/guide/usage/linter/cli.html#ignore-files
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.

6 participants