From e5fa1645af5f7731f7839ec82b12b492e9b231d7 Mon Sep 17 00:00:00 2001 From: runjuu Date: Tue, 19 Dec 2023 10:49:28 -0800 Subject: [PATCH] chore: format code --- format-package.json | 74 ++++++++++++++++++++++----------------------- package.json | 2 +- renovate.json | 8 ++--- turbo.json | 40 ++++++++++++------------ 4 files changed, 61 insertions(+), 63 deletions(-) diff --git a/format-package.json b/format-package.json index 17846d81..475cb6c8 100644 --- a/format-package.json +++ b/format-package.json @@ -1,39 +1,39 @@ { - "order": [ - "name", - "version", - "description", - "license", - "private", - "engines", - "os", - "cpu", - "repository", - "bugs", - "homepage", - "author", - "contributors", - "keywords", - "bin", - "man", - "main", - "module", - "typings", - "sideEffects", - "browser", - "files", - "directories", - "workspaces", - "config", - "publishConfig", - "scripts", - "husky", - "lint-staged", - "...rest", - "dependencies", - "peerDependencies", - "devDependencies", - "optionalDependencies", - "bundledDependencies" - ] + "order": [ + "name", + "version", + "description", + "license", + "private", + "engines", + "os", + "cpu", + "repository", + "bugs", + "homepage", + "author", + "contributors", + "keywords", + "bin", + "man", + "main", + "module", + "typings", + "sideEffects", + "browser", + "files", + "directories", + "workspaces", + "config", + "publishConfig", + "scripts", + "husky", + "lint-staged", + "...rest", + "dependencies", + "peerDependencies", + "devDependencies", + "optionalDependencies", + "bundledDependencies" + ] } diff --git a/package.json b/package.json index f28e2dad..36472d40 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "clean": "turbo run clean", "dev:docs": "pnpm --filter 'docs' dev", "format": "run-p format:code format:package", - "format:code": "prettier '@(packages|sites|scripts)/**/*.@(ts|tsx|html|json)' --write", + "format:code": "prettier '*.@(ts|tsx|html|json)' '@(packages|sites|scripts)/**/*.@(ts|tsx|html|json)' --write", "format:package": "format-package 'package.json' -w -c format-package.json", "lint": "eslint . --ext .ts,.tsx --fix --max-warnings 0", "prepare": "husky install", diff --git a/renovate.json b/renovate.json index 473cd121..8d46c92c 100644 --- a/renovate.json +++ b/renovate.json @@ -1,7 +1,5 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ], - "enabled": false + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base"], + "enabled": false } diff --git a/turbo.json b/turbo.json index d024f332..a8489ea6 100644 --- a/turbo.json +++ b/turbo.json @@ -1,22 +1,22 @@ { - "$schema": "https://turborepo.org/schema.json", - "pipeline": { - "build": { - "dependsOn": ["^build"] - }, - "test": { - "dependsOn": ["build"], - "outputs": [] - }, - "lint": { - "dependsOn": ["build"], - "outputs": [] - }, - "start": { - "outputs": [] - }, - "clean": { - "outputs": [] - } - } + "$schema": "https://turborepo.org/schema.json", + "pipeline": { + "build": { + "dependsOn": ["^build"] + }, + "test": { + "dependsOn": ["build"], + "outputs": [] + }, + "lint": { + "dependsOn": ["build"], + "outputs": [] + }, + "start": { + "outputs": [] + }, + "clean": { + "outputs": [] + } + } }