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

fix: fix formatting rules name #521

Merged
merged 1 commit into from
Aug 28, 2024
Merged

fix: fix formatting rules name #521

merged 1 commit into from
Aug 28, 2024

Conversation

azu
Copy link
Contributor

@azu azu commented Aug 28, 2024

Previously, dist/* can not define correct RULE_NAME in some rules.

This PR use hard code RULE_NAME instead of getFilename util

  1. replace getFilename with <filename>
  2. remove getFilename usage
#!/bin/bash

for file in $(ls -1 src/rules/*.ts); do
  echo "Processing $file"
  sed -i '' -e "s#getFilename(import.meta.url)#'$(basename ${file%.*})'#g" $file
done

fix #509

- use hard code `RULE_NAME` instead of `getFilename` util
@azu azu changed the title fix: fix to export formatting rules fix: fix formatting rules name Aug 28, 2024
@veritem veritem merged commit 054121b into vitest-dev:main Aug 28, 2024
@azu azu deleted the fix/509 branch August 28, 2024 23:04
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.

formatting rules are not exported in build output
2 participants