{"_id":"@advanced-rest-client/prettier-config","_rev":"8-2c45688e450537850d4819ba20ae0e3d","name":"@advanced-rest-client/prettier-config","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@advanced-rest-client/prettier-config","version":"0.1.0","keywords":["advanced-rest-client","config","prettier"],"license":"Apache-2.0","_id":"@advanced-rest-client/prettier-config@0.1.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"contributors":[{"name":"Pawel Psztyc"},{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"homepage":"https://github.com/advanced-rest-client/advanced-rest-client#readme","bugs":{"url":"https://github.com/advanced-rest-client/advanced-rest-client/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"4a168fdf2a5f79dd6d99f359df99f0370c6a2515","tarball":"https://registry.npmjs.org/@advanced-rest-client/prettier-config/-/prettier-config-0.1.0.tgz","fileCount":3,"integrity":"sha512-vxHlwtSiOAg3hrmTzVOMZtsfZ6O+JOuS3ogGlYV4ufCY0HZAHrEo6lV6HaX/wMLfhgVZKqBMwDvsrCZP4RCuAg==","signatures":[{"sig":"MEQCIAa1eRYpeWG1ZOruD4jmcTDquFDZOOPziwFxwxVq4XfNAiBIlC9v75yYrlCZVHYOlZf2838lAS3fGRONwMxjgGzZYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdO1ZYCRA9TVsSAnZWagAA0sAP/3bFEAn9Fk4Hwpgkj7Cp\nxNOZETbOC0Nqy+wmPgKFy9EnHiTixeTvly9jV/raJgp9Ck4eToEYsg2Ahhmn\nNpWq1hj7raGzibxAMEpYuayJXVXPqa9qHQE+lnXLUCvnP7u/zWhmweo3z7Pt\nb/yXNnw7xlXLCB0jXWhfMOgIaEoRvkpIZpmN35651o5huLbwk17S4owetCAq\n/S3tmOmOavbWoXWEuOTZXFyXJRLQ9Oj5uIHQEQ/k0rsNh8qpM5kAq+FFNape\nBBmsM//H+dqjEb9vC64UzWrlWUC9pFIiEovGIaqDkPauRaMfpYvEgspBwcEI\ncYGYY+NCCGVMc14XPE2dJS82t+G3QBm1tFFxIwfELhe87ZMwxa/Dl7xShquG\na6NnK1Xw0GyKZyyw4ZRlrbV8rpJPyCF48GH4MHGuVYV9pgUeTIq0fC+Z4g2+\nfcsukBDv18Clly5yyG15Ef39Qj4qhf6CDICvX81uGqSqmFRbacK68IF9C8xG\nPsQiVj1GxdveUXz1e0YY85vnqDostzWYZlm2r45Ru7razOsJ5JYk8fcQzIeM\nvLHlqp7oRT8I1T7GGVKENakVWLaLTX5P/FSZRE4ozoCaGUDTl+hWKFIZmNfF\nUmNegZ64aB2mugxnL0SIBf88OOryMHObLKGzijZ/lgm6x+XmCwsL8bi7FZkZ\n03eo\r\n=la6V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"prettier.config.js","authors":["Pawel Psztyc","The Advanced REST client authors <arc@mulesoft.com>"],"gitHead":"93df411d757d053378666875a5f366888a73939f","_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git://github.com/advanced-rest-client/advanced-rest-client.git","type":"git"},"_npmVersion":"6.10.0","description":"Prettier config for API components","directories":{},"_nodeVersion":"10.16.0","dependencies":{"prettier":"^1.18.2","eslint-config-prettier":"^6.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/prettier-config_0.1.0_1564169815934_0.6189387634430885","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-07-26T19:36:55.773Z","modified":"2026-04-07T19:24:55.991Z","0.1.0":"2019-07-26T19:36:56.039Z"},"bugs":{"url":"https://github.com/advanced-rest-client/advanced-rest-client/issues","email":"arc@mulesoft.com"},"license":"Apache-2.0","homepage":"https://github.com/advanced-rest-client/advanced-rest-client#readme","keywords":["advanced-rest-client","config","prettier"],"repository":{"url":"git://github.com/advanced-rest-client/advanced-rest-client.git","type":"git"},"description":"Prettier config for API components","contributors":[{"name":"Pawel Psztyc"},{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"maintainers":[{"email":"jarrodek@gmail.com","name":"jarrodek"},{"email":"alexperez@mulesoft.com","name":"alexperez_march_2024"},{"email":"elmellidiego@gmail.com","name":"dmacias"}],"readme":"# Linting Prettier\n\nUse [Prettier](https://prettier.io) to format your JS, CSS and HTML code.\n\nBased on [@open-wc/prettier-config](https://github.com/open-wc/open-wc/tree/master/packages/prettier-config).\n\n\n-   Install `@advanced-rest-client/prettier-config`.\n\n```bash\nnpm i --save-dev @@advanced-rest-client/prettier-config\n```\n\n-   Create `prettier.config.js` in the root directory of your project.\n\n```js\nmodule.exports = require('@advanced-rest-client/prettier-config');\n```\n\n-   Add the following scripts to your package.json\n\n```js\n\"scripts\": {\n  \"lint:prettier\": \"prettier \\\"**/*.js\\\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)\",\n  \"format:prettier\": \"prettier \\\"**/*.js\\\" --write\",\n},\n```\n\n- Update your `.eslintrc.js` to look like this:\n\n```js\nmodule.exports = {\n  extends: [\n    '@advanced-rest-client/eslint-config',\n    'eslint-config-prettier'\n  ].map(require.resolve),\n};\n```\n\n## What you get\n\n-   Apply formatting to JS files\n-   Apply formatting to HTML inside of `html` tagged template literals used by [lit-html](https://github.com/Polymer/lit-html)\n-   Apply formatting to CSS inside of `css` tagged template literals used by [lit-css](https://github.com/lit-styles/lit-styles/tree/master/packages/lit-css)\n-   Integration with ESLint to prevent potentially conflicting rules\n\n## Usage\n\nRun:\n-   `npm run lint:prettier` to check if your files are correctly formatted\n-   `npm run format:prettier` to auto format your files\n\n## Linting Error Examples\n\n```bash\n$ npm run lint:prettier\n\ntest/set-card.test.js\ntest/set-game.test.js\n↑↑ these files are not prettier formatted ↑↑\n```\n\nSimply run `npm run format:prettier` to format your files automatically.\n","readmeFilename":"README.md"}