{"id":15857215,"url":"https://github.com/killshot13/mj-pa","last_synced_at":"2025-03-15T22:31:12.271Z","repository":{"id":46796545,"uuid":"306216673","full_name":"killshot13/mj-pa","owner":"killshot13","description":"mj-pa is an opinionated config package that extends Prettier. It is tailored to format JS, JSON, \u0026 JSX code in a React- or Vue-based environment.","archived":false,"fork":false,"pushed_at":"2024-03-01T08:49:08.000Z","size":2474,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-12T14:04:34.495Z","etag":null,"topics":["configuration-files","javascript","mj-pa","npm","prettier","prettier-config","prettier-json"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mj-pa","language":null,"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/killshot13.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"killshot13"}},"created_at":"2020-10-22T03:54:39.000Z","updated_at":"2023-07-31T06:48:09.000Z","dependencies_parsed_at":"2023-02-17T03:15:16.681Z","dependency_job_id":"d120ad29-a2ea-4dfd-be7f-ddf909010d89","html_url":"https://github.com/killshot13/mj-pa","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":"0.021739130434782594","last_synced_commit":"3e36c94bd5e0e8dcdec1db5003d4ea2a620774b7"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killshot13%2Fmj-pa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killshot13%2Fmj-pa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killshot13%2Fmj-pa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killshot13%2Fmj-pa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killshot13","download_url":"https://codeload.github.com/killshot13/mj-pa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801600,"owners_count":20350105,"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":["configuration-files","javascript","mj-pa","npm","prettier","prettier-config","prettier-json"],"created_at":"2024-10-05T20:21:23.093Z","updated_at":"2025-03-15T22:31:07.257Z","avatar_url":"https://github.com/killshot13.png","language":null,"funding_links":["https://github.com/sponsors/killshot13"],"categories":[],"sub_categories":[],"readme":"# mj-pa\n\n| [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | [![Known Vulnerabilities](https://snyk.io/test/github/killshot13/mj-pa/badge.svg)](https://snyk.io/test/github/killshot13/mj-pa) | [![Try on RunKit](https://badge.runkitcdn.com/mj-pa.svg)](https://npm.runkit.com/mj-pa) |\n|-|-|-|\n\n## about\n\n- `mj-pa` is my personal [Prettier](https://prettier.io) config tailored to format JS, JSON, \u0026 JSX.\n- Opinionated by nature, it seeks to improve code simplicity and readability.\n- For best results, `mj-pa` should be used in a React- or Vue-based environment.\n\nHere is a look at the configuration object it exports.\n\n![output of `.prettierrc.json`](https://github.com/killshot13/mj-pa/raw/main/resources/config.svg)\n\n## usage\n\n\u003e IMPORTANT: You must have [Prettier](https://www.npmjs.com/package/prettier) installed in your project for [mj-pa](https://www.npmjs.com/package/mj-pa) to work properly.\n\n### 1) install\n\nUsing npm\n\n```shell\nnpm install --save-dev mj-pa\n```\n\nUsing yarn\n\n```shell\nyarn add -D mj-pa\n```\n\n### 2) configure\n\nEdit the `package.json` file for your project to extend Prettier with `mj-pa`. Or, to be more specific, copy the following line of code and paste it underneath the `version` line of your project's `package.json` file in the root directory.\n\n```json\n{\n \"prettier\": \"mj-pa\"\n}\n```\n\n### 3) format\n\nNothing changes here; run the `check` or `write` command as you normally would\n\n```shell\nnpx prettier --check .\n```\n\n```shell\nnpx prettier --write .\n```\n\n## output\n\n \u003e 👉 FUN FACT: `mj-pa` is short for \"Make JavaScript Pretty Again\"— because what JS developer doesn't love a good one-liner? 😎\n\nHere is an example of how your VSCode logs will appear when `mj-pa` is used to extend the default configuration so formatting can be applied in turn by the [VS Code plugin](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) for Prettier.\n\n![Sample VSCode log output...mj-pa is extending the default configuration and formatting is being applied by the VS Code plugin for Prettier.](https://github.com/killshot13/mj-pa/blob/main/resources/mjpa-vscode-output.svg)\n\nIf you have any questions, comments, or suggestions, you can open a pull request or [drop me an email](mailto:dmreh@outlook.com)\n\nTo learn more about how Prettier works or to create your own configuration file, you can reference the [Prettier documentation](https://prettier.io/docs/en/index.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillshot13%2Fmj-pa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillshot13%2Fmj-pa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillshot13%2Fmj-pa/lists"}