Skip to content

Commit

Permalink
Merge pull request #156 from chouchouji/chore-prettier
Browse files Browse the repository at this point in the history
chore: add .prettierignore
  • Loading branch information
ErKeLost authored Dec 14, 2024
2 parents 95c9f05 + b07ed15 commit 9906f46
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/package.json
**/*.md
.github/**

pnpm-lock.yaml
pnpm-workspace.yaml

2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
// assetsInlineLimit: 4096 * 2,
},
server: {
port: 8451
port: 8451,
},
// publicDir: 'base/public',
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export function resolveOptions(
({
...options[item],
...transformType[item],
} as ResolvedOptions),
}) as ResolvedOptions,
);
const obj = {};
keys.forEach((item, index) => {
Expand Down
4 changes: 2 additions & 2 deletions src/core/devalue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function devalue(value) {
proto !== Object.prototype &&
proto !== null &&
Object.getOwnPropertyNames(proto).sort().join('\0') !==
objectProtoOwnPropertyNames
objectProtoOwnPropertyNames
) {
if (typeof thing.toJSON !== 'function') {
log(
Expand Down Expand Up @@ -118,7 +118,7 @@ function devalue(value) {
if (getType(json) === 'String') {
try {
json = JSON.parse(json);
} catch (e) { }
} catch (e) {}
}
return stringify(json);
}
Expand Down
6 changes: 3 additions & 3 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'tsup'
import Unused from 'unplugin-unused/esbuild'
import { defineConfig } from 'tsup';
import Unused from 'unplugin-unused/esbuild';

export default defineConfig({
entry: ['./src/*.ts'],
Expand All @@ -11,4 +11,4 @@ export default defineConfig({
cjsInterop: true,
shims: true,
esbuildPlugins: [Unused()],
})
});

0 comments on commit 9906f46

Please sign in to comment.