-
Notifications
You must be signed in to change notification settings - Fork 58
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
formatting rules are not exported in build output #509
Comments
It's extremely strange because in the source code you see the code: https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/src/index.ts#L209 but in the build output, the code disappear. |
i have no clue why it's happening to be honest. if you want to dig into it sure, go a head. I don't have time right now. |
unbuild compile export const RULE_NAME = get_filename(import.meta.url) to const RULE_NAME$7 = getFilename((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))); It means that use The build output file name always be As a result, padding* rules use same eslint-plugin-vitest/src/index.ts Lines 208 to 215 in d940d0b
Perhaps a simple solution would be to define - export const RULE_NAME = get_filename(import.meta.url)
+ export const RULE_NAME = "padding-around-after-each-blocks" |
No description provided.
The text was updated successfully, but these errors were encountered: