diff --git a/.prettierignore b/.prettierignore index 1b8ac889..7af5905a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,5 @@ # Ignore artifacts: build coverage +output +LICENSE.md diff --git a/.prettierrc b/.prettierrc index 0967ef42..52da7d13 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1 +1,11 @@ -{} +{ + "insertPragma": false, + "tabWidth": 2, + "useTabs": false, + "semi": false, + "singleQuote": false, + "bracketSpacing": true, + "proseWrap": "preserve", + "trailingComma": "none", + "endOfLine": "lf" +} diff --git a/package.json b/package.json index 3146739b..a86da90f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,13 @@ "main": "src/pms-spec.yaml", "type": "module", "author": "LukeHagar", - "keywords": ["plex", "api", "specification", "openapi", "swagger"], + "keywords": [ + "plex", + "api", + "specification", + "openapi", + "swagger" + ], "license": "MIT", "scripts": { "dev": "redocly preview -d=./src", @@ -16,6 +22,7 @@ "test": "bun run build && vitest --run", "type-check": "tsc", "setup-speakeasy-cli": "curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh", + "format": "bun prettier . --write", "lint": "redocly lint", "lint-speakeasy": "speakeasy lint openapi -s ./src/pms-spec.yaml", "lint-bundled": "speakeasy lint openapi -s ./output/plex-media-server-spec-dereferenced.yaml"