{"id":28819243,"url":"https://github.com/azmag/mag-prettier-config","last_synced_at":"2026-04-28T01:32:19.552Z","repository":{"id":69993296,"uuid":"425936520","full_name":"AZMAG/mag-prettier-config","owner":"AZMAG","description":"A conformant Prettier configuration for MAG","archived":false,"fork":false,"pushed_at":"2024-07-30T23:17:26.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T20:02:46.542Z","etag":null,"topics":["code-style","config","mag","prettier","prettier-config","prettierconfig","prettierrc","style-guide"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AZMAG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-08T17:43:14.000Z","updated_at":"2024-07-30T23:17:09.000Z","dependencies_parsed_at":"2025-04-25T02:10:51.461Z","dependency_job_id":null,"html_url":"https://github.com/AZMAG/mag-prettier-config","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.2777777777777778,"last_synced_commit":"3d6a2ddd09fac37b31aa9f6069ad548bfccf3e1c"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/AZMAG/mag-prettier-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AZMAG%2Fmag-prettier-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AZMAG%2Fmag-prettier-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AZMAG%2Fmag-prettier-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AZMAG%2Fmag-prettier-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AZMAG","download_url":"https://codeload.github.com/AZMAG/mag-prettier-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AZMAG%2Fmag-prettier-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260625199,"owners_count":23038166,"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","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":["code-style","config","mag","prettier","prettier-config","prettierconfig","prettierrc","style-guide"],"created_at":"2025-06-18T20:01:23.260Z","updated_at":"2026-04-28T01:32:19.547Z","avatar_url":"https://github.com/AZMAG.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mag-prettier-config\n\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/AZMAG/mag-prettier-config?\u0026logo=github\u0026style=flat-square)\n![GitHub Release Date](https://img.shields.io/github/release-date/AZMAG/mag-prettier-config?\u0026logo=github\u0026style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/AZMAG/mag-prettier-config?\u0026logo=github\u0026style=flat-square)\n![GitHub issues](https://img.shields.io/github/issues-raw/AZMAG/mag-prettier-config?\u0026logo=github\u0026style=flat-square)\n![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/AZMAG/mag-prettier-config?style=flat-square)\n![npm](https://img.shields.io/npm/v/mag-prettier-config?color=crimson\u0026logo=npm\u0026style=flat-square)\n![semver](https://img.shields.io/badge/semver-2.0.0-blue?style=flat-square)\n[![GitHub license](https://img.shields.io/github/license/AZMAG/mag-prettier-config?style=flat-square)](https://github.com/AZMAG/mag-prettier-config/blob/main/LICENSE)\n\nThis is Maricopa Association of Governments (MAG) shareable [Prettier](https://prettier.io) config for use in project files. This module defines standard [Prettier](https://prettier.io) rules for code formatting to help format the code in all of our projects.\n\n## :key: Keywords\n\n`config` `prettier` `prettier-config` `prettierrc` `prettierconfig` `code-style` `style-guide` `mag`\n\n## :gear: Installation\n\nInstall this Prettier config together with its peer dependencies:\n\n#### Install with `npm`\n\n```bash\n$ npm i mag-prettier-config --save-dev\n```\n\n\u003cdetails\u003e\u003csummary\u003eInstall with \u003ccode\u003eyarn\u003c/code\u003e\u003c/summary\u003e\u003cp\u003e\n\n```bash\n$ yarn add mag-prettier-config --dev\n```\n\n\u003c/p\u003e\u003c/details\u003e\n\n### Peer Dependencies\n\nPeer dependencies need to be installed in order to make it work properly.\n\n- Prettier is an opinionated code formatter.\n\n  #### Install with `npm`\n\n  ```bash\n  $ npm i prettier --save-dev\n  ```\n\n  \u003cdetails\u003e\u003csummary\u003eInstall with \u003ccode\u003eyarn\u003c/code\u003e\u003c/summary\u003e\u003cp\u003e\n\n  ```bash\n  $ yarn add prettier --dev\n  ```\n\n  \u003c/p\u003e\u003c/details\u003e\n\n- eslint-config-prettier turns off all rules that are unnecessary or might conflict with [Prettier](https://prettier.io)\n\n  #### Install with `npm`\n\n  ```bash\n  $ npm i eslint-config-prettier --save-dev\n  ```\n\n  \u003cdetails\u003e\u003csummary\u003eInstall with \u003ccode\u003eyarn\u003c/code\u003e\u003c/summary\u003e\u003cp\u003e\n\n  ```bash\n  $ yarn add eslint-config-prettier --dev\n  ```\n\n  \u003c/p\u003e\u003c/details\u003e\n\n## Usage\n\nOnce you have installed the module and its peer dependencies you will need to add this reference to your `package.json`\n\n```\n{\n  \"prettier\": \"mag-prettier-config\",\n  \"eslintConfig\": {\n      \"extends\": [\"prettier\"]\n    },\n}\n```\n\nPreviously, rules had been defined directly in a `.prettierrc `or `package.json`\n\nAny previous `.prettierrc` should be removed in favor of the shared config.\n\n## Options\n\nPrettier ships with a handful of format options.\n\n[Prettier Options](https://prettier.io/docs/en/options.html)\n\n## Current Options\n\n```\n{\n  \"$schema\": \"http://json.schemastore.org/prettierrc\",\n  \"printWidth\": 100,\n  \"tabWidth\": 2,\n  \"useTabs\": false,\n  \"singleQuote\": false,\n  \"trailingComma\": \"all\",\n  \"endOfLine\": \"lf\",\n  \"semi\": false,\n  \"bracketSameLine\": true,\n  \"bracketSpacing\": true,\n  \"htmlWhitespaceSensitivity\": \"css\",\n  \"arrowParens\": \"always\"\n}\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cstrong\u003ePrettier rules\u003c/strong\u003e\u003c/summary\u003e\u003cp\u003e\n\nThis project defines the following settings in the file.\n\n| Rule                                                                                                | Value\\*    |\n| --------------------------------------------------------------------------------------------------- | ---------- |\n| [`printWidth`](https://prettier.io/docs/en/options.html#print-width)                                | **`100`**  |\n| [`tabWidth`](https://prettier.io/docs/en/options.html#tab-width)                                    | `2`        |\n| [`useTabs`](https://prettier.io/docs/en/options.html#tabs)                                          | `false`    |\n| [`singleQuote`](https://prettier.io/docs/en/options.html#quotes)                                    | `false`    |\n| [`trailingComma`](https://prettier.io/docs/en/options.html#trailing-commas)                         | **`all`**  |\n| [`endOfLine`](https://prettier.io/docs/en/options.html#end-of-line)                                 | `lf`       |\n| [`semi`](https://prettier.io/docs/en/options.html#semicolons)                                       | `false`    |\n| [`bracketSameLine`](https://prettier.io/docs/en/options.html#jsx-brackets)                          | **`true`** |\n| [`bracketSpacing`](https://prettier.io/docs/en/options.html#bracket-spacing)                        | `true`     |\n| [`htmlWhitespaceSensitivity`](https://prettier.io/docs/en/options.html#html-whitespace-sensitivity) | `css`      |\n| [`arrowParens`](https://prettier.io/docs/en/options.html#arrow-parens)                              | `always`   |\n\n\\* Values in **bold** differ from the Prettier defaults.\n\n\u003c/p\u003e\u003c/details\u003e\n\nIf you change any options, it’s recommended to do it via the [configuration file](https://github.com/AZMAG/mag-prettier-config/blob/main/index.json).\n\n## Version\n\n### version | 1.1.2\n\n- #### Updated | 2024-07-30\n- #### Created | 2021-11-08\n\nReleases will be numbered with the following format:\n\n**`\u003cmajor\u003e.\u003cminor\u003e.\u003cpatch\u003e`**\n\nAnd constructed with the following guidelines:\n\n1. **MAJOR** version when you make incompatible API changes **bumps the major** resets minor and patch\n2. **MINOR** version when you add functionality in a backwards-compatible manner **bumps the minor** resets patch\n3. **PATCH** version when you make backwards-compatible bug fixes and misc changes **bumps only the patch**\n\n## Technologies\n\nA list of technologies used within the project:\n\n\u003ca href=\"https://prettier.io/\" title=\"Prettier\"\u003e\u003cimg src=\"https://github.com/get-icon/geticon/raw/master/icons/prettier.svg\" alt=\"Prettier\" width=\"31px\" height=\"31px\"\u003e\u003c/a\u003e\n\u003ca href=\"https://eslint.org/\" title=\"ESLint\"\u003e\u003cimg src=\"https://github.com/get-icon/geticon/raw/master/icons/eslint.svg\" alt=\"ESLint\" width=\"31px\" height=\"31px\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/\" title=\"npm\"\u003e\u003cimg src=\"https://github.com/get-icon/geticon/raw/master/icons/npm.svg\" alt=\"npm\" width=\"31px\" height=\"31px\"\u003e\u003c/a\u003e\n\u003ca href=\"https://code.visualstudio.com/\" title=\"vscode\"\u003e\u003cimg src=\"https://github.com/get-icon/geticon/raw/master/icons/visual-studio-code.svg\" alt=\"vscode\" width=\"31px\" height=\"31px\"\u003e\u003c/a\u003e\n\n## :star: Credits\n\n`Maricopa Association of Governments (MAG) and the MAG member agencies`\n\n## :zap: Disclaimer\n\n- [DISCLAIMER](DISCLAIMER.md)\n\n## :warning: Licensing\n\nCopyright 2021 Maricopa Association of Governments (MAG)\n\nThis project is licensed under the MIT license.\n\n[![GitHub license](https://img.shields.io/github/license/AZMAG/mag-prettier-config?style=flat-square)](https://github.com/AZMAG/mag-prettier-config/blob/main/LICENSE)\n\n[(Back to top)](#mag-prettier-config)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazmag%2Fmag-prettier-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazmag%2Fmag-prettier-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazmag%2Fmag-prettier-config/lists"}