{"id":13991852,"url":"https://github.com/prettier/plugin-swift","last_synced_at":"2025-10-05T12:31:50.596Z","repository":{"id":65982372,"uuid":"116369054","full_name":"prettier/plugin-swift","owner":"prettier","description":"[DEPRECATED] Prettier Swift Plugin - WARNING: The AST parser is not stable yet","archived":true,"fork":false,"pushed_at":"2022-02-22T11:16:52.000Z","size":221,"stargazers_count":273,"open_issues_count":4,"forks_count":13,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-09-16T06:39:22.451Z","etag":null,"topics":["prettier","swift"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prettier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-05T09:45:44.000Z","updated_at":"2025-06-04T11:37:04.000Z","dependencies_parsed_at":"2023-02-19T19:30:46.902Z","dependency_job_id":null,"html_url":"https://github.com/prettier/plugin-swift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prettier/plugin-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prettier","download_url":"https://codeload.github.com/prettier/plugin-swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278456955,"owners_count":25989949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prettier","swift"],"created_at":"2024-08-09T14:01:37.937Z","updated_at":"2025-10-05T12:31:50.294Z","avatar_url":"https://github.com/prettier.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# DEPRECATED\n\n`prettier/plugin-swift` is deprecated. It hasn’t been updated since early 2018, and the Swift community seems to have moved towards [Apple’s swift-format](https://github.com/apple/swift-format)  and [Nick Lockwood’s SwiftFormat](https://github.com/nicklockwood/SwiftFormat) instead.\n\nWe hope to someday have plugins for one or both of these tools, but the Prettier team has no current plans to develop such an integration. If you do make something, let us know by opening an issue on [the main Prettier repository](https://github.com/prettier/prettier/issues/new), and we will consider adding a link to this README.\n\n- - -\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"Prettier\" height=\"210\"\n  src=\"https://cdn.rawgit.com/prettier/prettier-logo/master/images/prettier-icon-light.svg\"\u003e\n\u003cimg alt=\"Swift\" height=\"210px\" vspace=\"\" hspace=\"25\"\n  src=\"https://upload.wikimedia.org/wikipedia/commons/9/9d/Swift_logo.svg\"\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003eSwift Plugin for the Opinionated Code Formatter\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gitter.im/jlongster/prettier\"\u003e\n    \u003cimg alt=\"Gitter\" src=\"https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/prettier/plugin-swift\"\u003e\n    \u003cimg alt=\"Travis\" src=\"https://img.shields.io/travis/prettier/plugin-swift/master.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@prettier/plugin-swift\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/@prettier/plugin-swift.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003c!-- \u003ca href=\"https://www.npmjs.com/package/@prettier/plugin-swift\"\u003e\n    \u003cimg alt=\"monthly downloads\" src=\"https://img.shields.io/npm/dm/@prettier/plugin-swift.svg?style=flat-square\"\u003e\n  \u003c/a\u003e --\u003e\n  \u003ca href=\"#badge\"\u003e\n    \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/PrettierCode\"\u003e\n    \u003cimg alt=\"Follow+Prettier+on+Twitter\" src=\"https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## What does it do?\n\n**:warning: Warning :warning:** This plugin might eat your homework in its early stage.\nIt also depends on [Swift's lib/Syntax](https://github.com/apple/swift/blob/master/lib/Syntax) which is\n[in flux](https://github.com/apple/swift/blob/master/lib/Syntax/Status.md).\nPlease stage or commit your code before performing any in-place formatting.\n\nYou can check out [how it formatted Artsy's Eidolon](https://github.com/sirlantis/eidolon/pull/1/files).\n\n## Prerequisites\n\nYou need one of the following:\n\n1. A [snapshot from March 30, 2018 or later](https://swift.org/download/#snapshots),\n2. a recent manual build from Swift's [`master`](https://github.com/apple/swift), or\n3. Swift 4.2 (once it's available as a beta or released completely).\n\nAssuming you picked **(1)** please follow the\n[installation instructions](https://swift.org/download/#using-downloads),\nwhich recommend updating your `PATH` at the end:\n\n```\nTOOLCHAIN=swift-DEVELOPMENT-SNAPSHOT-2018-03-30-a.xctoolchain\nexport PATH=/Library/Developer/Toolchains/${TOOLCHAIN}/usr/bin/:\"${PATH}\"\n```\n\nAlternatively you can pass the full path to the `swiftc` binary\nvia the environment variable `PRETTIER_SWIFT_SWIFTC`:\n\n```\nTOOLCHAIN=swift-DEVELOPMENT-SNAPSHOT-2018-03-30-a.xctoolchain\nexport PRETTIER_SWIFT_SWIFTC=/Library/Developer/Toolchains/${TOOLCHAIN}/usr/bin/swiftc\n```\n\n## Contributing\n\nIf you're interested in contributing to the development of Prettier for Swift, you can follow the [CONTRIBUTING guide from Prettier](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md), as it all applies to this repository too.\n\nTo test it out on a Swift file:\n\n* Clone this repository.\n* Run `yarn`.\n* Create a file called `test.swift`.\n* Run `yarn prettier test.swift` to check the output.\n\n## Install\n\n```bash\nyarn add --dev --exact prettier prettier/plugin-swift\n```\n\n## Use\n\n```bash\nprettier --write \"**/*.swift\"\n```\n\n## Maintainers\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/sirlantis\"\u003e\n          \u003cimg width=\"150\" height=\"150\" src=\"https://github.com/sirlantis.png?v=3\u0026s=150\"\u003e\n          \u003c/br\u003e\n          Marcel Jackwerth\n        \u003c/a\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003ctbody\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettier%2Fplugin-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprettier%2Fplugin-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettier%2Fplugin-swift/lists"}