es-tooling / ecosystem-cleanup

A place to keep track of ongoing efforts to clean up the JS ecosystem
386 stars 2 forks source link

migrate `stylelint` to `tinyglobby` #103

Open benmccann opened 2 months ago

benmccann commented 2 months ago

It uses both globby and fast-glob :laughing:

https://github.com/stylelint/stylelint/blob/462cdab4c08231b310c4d428cafc6eff01051e2b/package.json#L172

https://github.com/stylelint/stylelint/blob/462cdab4c08231b310c4d428cafc6eff01051e2b/package.json#L176

Mouvedia commented 2 months ago

@ybiquitous

ybiquitous commented 2 months ago

For fast-glob, we need just fastGlob.escapePath(): https://github.com/stylelint/stylelint/blob/462cdab4c08231b310c4d428cafc6eff01051e2b/lib/standalone.mjs#L185

For globby, it would be more difficult because Stylelint provides globbyOptions as a public API: https://github.com/stylelint/stylelint/blob/462cdab4c08231b310c4d428cafc6eff01051e2b/docs/user-guide/options.md?plain=1#L149