Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
chore: switch to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Feb 8, 2024
1 parent 312a9bb commit 72ac2cf
Show file tree
Hide file tree
Showing 32 changed files with 5,721 additions and 5,599 deletions.
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
interval: 'daily'
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
open-pull-requests-limit: 5
18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
**/.git
**/.svn
**/.hg
**/node_modules
**/dist/**

/venv/
**/venv
/.venv/
**/.venv

pnpm-lock.yaml
.changeset/
cdn

fixtures
.vite-ssg-temp
.next
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"trailingComma": "all",
"quoteProps": "consistent",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"singleAttributePerLine": true,
"bracketSameLine": true,
"importOrder": ["^@/(.*)$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Command-line interface to work with OpenAPI files

## Features

* Format & validate OpenAPI files
* Upload your OpenAPI files to Scalar
* Get a fully mocked API for testing purposes
* Preview your API reference
* Bundle multiple OpenAPI files
- Format & validate OpenAPI files
- Upload your OpenAPI files to Scalar
- Get a fully mocked API for testing purposes
- Preview your API reference
- Bundle multiple OpenAPI files

## Quickstart

Expand Down Expand Up @@ -88,4 +88,4 @@ Contributions are welcome! Read [`CONTRIBUTING`](https://github.com/scalar/cli/b

## License

The source code in this repository is licensed under [MIT](https://github.com/scalar/cli/blob/main/LICENSE).
The source code in this repository is licensed under [MIT](https://github.com/scalar/cli/blob/main/LICENSE).
40 changes: 21 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"name": "root",
"private": true,
"scripts": {
"@scalar/cli": "pnpm --filter @scalar/cli run @scalar/cli",
"test": "vitest",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"format:check": "pnpm -r format:check",
"cli:link": "pnpm --filter @scalar/cli cli:link",
"bump": "CI=true pnpm run test && pnpm changeset version",
"build": "pnpm -r build"
},
"dependencies": {
"@changesets/cli": "^2.27.1"
},
"devDependencies": {
"turbo": "^1.12.3",
"vitest": "^1.2.2"
}
"name": "root",
"private": true,
"scripts": {
"@scalar/cli": "pnpm --filter @scalar/cli run @scalar/cli",
"test": "vitest",
"lint": "pnpm -r lint",
"format": "pnpm prettier --write .",
"format:check": "pnpm prettier --check .",
"cli:link": "pnpm --filter @scalar/cli cli:link",
"bump": "CI=true pnpm run test && pnpm changeset version",
"build": "pnpm -r build"
},
"dependencies": {},
"devDependencies": {
"turbo": "^1.12.3",
"vitest": "^1.2.2",
"@changesets/cli": "^2.27.1",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.6"
}
}
32 changes: 0 additions & 32 deletions packages/cli/biome.json

This file was deleted.

8,490 changes: 4,233 additions & 4,257 deletions packages/cli/openapi.json

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,56 @@
{
"name": "@scalar/cli",
"description": "A command-line interface to work with OpenAPI files",
"license": "MIT",
"author": "Scalar (https://github.com/scalar)",
"homepage": "https://github.com/scalar/cli",
"bugs": "https://github.com/scalar/cli/issues/new/choose",
"keywords": [
"scalar",
"openapi",
"swagger",
"cli"
],
"engines": {
"node": ">=18"
},
"scripts": {
"@scalar/cli": "pnpm vite-node src/index.ts",
"lint": "pnpm dlx @biomejs/biome lint .",
"format": "pnpm dlx @biomejs/biome check . --apply",
"format:check": "pnpm dlx @biomejs/biome check .",
"cli:link": "pnpm run build && npm unlink -g && npm link",
"types:check": "tsc --noEmit --skipLibCheck",
"build": "rm -Rf dist/ && tsc && rollup -c"
},
"type": "module",
"version": "0.0.1",
"bin": {
"scalar": "./dist/index.js"
},
"files": [
"./dist"
],
"dependencies": {
"@hono/node-server": "^1.7.0",
"@scalar/api-reference": "^1.15.1",
"@seriousme/openapi-schema-validator": "^2.1.6",
"commander": "^12.0.0",
"hono": "^3.12.12",
"kleur": "^4.1.5",
"openapi-types": "^12.1.3",
"prettier": "^3.2.5",
"prettyjson": "^1.2.5",
"prompts": "^2.4.2",
"toml-js": "^0.0.8",
"vite-node": "^1.2.2"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.11.17",
"execa": "^8.0.1",
"rollup": "^4.9.6",
"rollup-plugin-delete": "^2.0.0",
"strip-ansi": "^7.1.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
}
"name": "@scalar/cli",
"description": "A command-line interface to work with OpenAPI files",
"license": "MIT",
"author": "Scalar (https://github.com/scalar)",
"homepage": "https://github.com/scalar/cli",
"bugs": "https://github.com/scalar/cli/issues/new/choose",
"keywords": [
"scalar",
"openapi",
"swagger",
"cli"
],
"engines": {
"node": ">=18"
},
"scripts": {
"@scalar/cli": "pnpm vite-node src/index.ts",
"cli:link": "pnpm run build && npm unlink -g && npm link",
"types:check": "tsc --noEmit --skipLibCheck",
"build": "rm -Rf dist/ && tsc && rollup -c"
},
"type": "module",
"version": "0.0.1",
"bin": {
"scalar": "./dist/index.js"
},
"files": [
"./dist"
],
"dependencies": {
"@hono/node-server": "^1.7.0",
"@scalar/api-reference": "^1.15.1",
"@seriousme/openapi-schema-validator": "^2.1.6",
"commander": "^12.0.0",
"hono": "^3.12.12",
"kleur": "^4.1.5",
"openapi-types": "^12.1.3",
"prettier": "^3.2.5",
"prettyjson": "^1.2.5",
"prompts": "^2.4.2",
"toml-js": "^0.0.8",
"vite-node": "^1.2.2"
},
"devDependencies": {
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.11.17",
"execa": "^8.0.1",
"rollup": "^4.9.6",
"rollup-plugin-delete": "^2.0.0",
"strip-ansi": "^7.1.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit 72ac2cf

Please sign in to comment.