-
-
Notifications
You must be signed in to change notification settings - Fork 242
chore: setup oxfmt for formatting #997
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
Changes from 4 commits
4207c40
aa82e65
b90e76c
ec6ff45
d02e2e6
80e2f23
cdb50a1
e43a5ba
46ba00e
3ca3a10
3b30b07
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
hi-ogawa marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "printWidth": 80, | ||
| "semi": false, | ||
| "singleQuote": true, | ||
| "experimentalSortImports": { | ||
| "newlinesBetween": false, | ||
| "partitionByNewline": true | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,10 @@ | ||
| import { dirname, join } from 'node:path' | ||
| import { fileURLToPath } from 'node:url' | ||
| import { readFileSync } from 'node:fs' | ||
| import type * as babelCore from '@babel/core' | ||
| import type { ParserOptions, TransformOptions } from '@babel/core' | ||
| import { createFilter } from 'vite' | ||
| import * as vite from 'vite' | ||
| import type { Plugin, ResolvedConfig } from 'vite' | ||
| import { | ||
| exactRegex, | ||
| makeIdFiltersToMatchWithQuery, | ||
| } from '@rolldown/pluginutils' | ||
| import { | ||
| addRefreshWrapper, | ||
| getPreambleCode, | ||
|
|
@@ -14,10 +13,11 @@ import { | |
| silenceUseClientWarning, | ||
| virtualPreamblePlugin, | ||
| } from '@vitejs/react-common' | ||
| import { | ||
| exactRegex, | ||
| makeIdFiltersToMatchWithQuery, | ||
| } from '@rolldown/pluginutils' | ||
| import { readFileSync } from 'node:fs' | ||
| import { dirname, join } from 'node:path' | ||
| import { fileURLToPath } from 'node:url' | ||
| import { createFilter } from 'vite' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not a fan of having all type import before runtime ones, it create more diffing when switching from type import to runtime or the other way around and when importing both types and import (I personally like them to be merged) it's cleaner to have them next to each other IMO if not merged |
||
| import * as vite from 'vite' | ||
|
|
||
| const _dirname = dirname(fileURLToPath(import.meta.url)) | ||
| const refreshRuntimePath = join(_dirname, 'refresh-runtime.js') | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.