{"_id":"@afshinhaghighat/prettier-plugin-twig-melody","_rev":"2-bfa34e6b31fbff169095aeb16032fee1","name":"@afshinhaghighat/prettier-plugin-twig-melody","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.0":{"name":"@afshinhaghighat/prettier-plugin-twig-melody","version":"2.0.0","description":"Prettier Plugin for Twig/Melody","main":"src","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/afshinhaghighat/prettier-plugin-twig-melody.git"},"author":{"name":"Tom Bartel","email":"thomas.bartel@trivago.com"},"license":"Apache 2.0","engines":{"node":">=18.0.0"},"scripts":{"lint":"jest -c jest.eslint.config.js","test":"jest","prettier":"prettier --plugin=. --parser=melody","publish":"npm publish --access public"},"dependencies":{"babel-types":"^6.26.0","melody-extension-core":"^1.7.5","melody-parser":"^1.7.5","melody-traverse":"^1.7.5","melody-types":"^1.7.5","prettier":"^3.0.1","resolve":"^1.22.2"},"devDependencies":{"eslint":"^8.46.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.28.0","eslint-plugin-jest":"^27.2.3","eslint-plugin-prettier":"^5.0.0","eslint-plugin-prettier-doc":"^1.1.0","jest":"^29.6.2","jest-runner-eslint":"^2.1.0"},"jest":{"projects":["<rootDir>/jest.*.config.js"]},"_id":"@afshinhaghighat/prettier-plugin-twig-melody@2.0.0","gitHead":"bde65c1926cd04c86b34a793e96c4d1d86f1fcaa","bugs":{"url":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody/issues"},"homepage":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody#readme","_nodeVersion":"18.16.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-nhnaGKLdTMe6VrwRzJzTnTitmHYWbBEPHvQvJJHg1zq4xgVIa9hlLKmH8Wevss3cpjtWZ8fRrHgz+A7d5m+M5A==","shasum":"c7f0931deeacd72d935f43cc8ec66787e5bf4df1","tarball":"https://registry.npmjs.org/@afshinhaghighat/prettier-plugin-twig-melody/-/prettier-plugin-twig-melody-2.0.0.tgz","fileCount":55,"unpackedSize":107030,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8nqk/dKEM/z+XDBY7TlncMcZRoqbtg64Jidp8BnDNxAiEAiT1+UPgF/VtShGdA2Il9TcHKnryUm8k1WloB6yRlu14="}]},"_npmUser":{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"},"directories":{},"maintainers":[{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-twig-melody_2.0.0_1691107490401_0.9015744707478326"},"_hasShrinkwrap":false},"2.0.1":{"name":"@afshinhaghighat/prettier-plugin-twig-melody","version":"2.0.1","description":"Prettier Plugin for Twig/Melody","main":"src","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/afshinhaghighat/prettier-plugin-twig-melody.git"},"author":{"name":"Tom Bartel","email":"thomas.bartel@trivago.com"},"license":"Apache 2.0","engines":{"node":">=18.0.0"},"scripts":{"lint":"jest -c jest.eslint.config.js","test":"jest","prettier":"prettier --plugin=. --parser=melody","publish":"npm publish --access public"},"dependencies":{"babel-types":"^6.26.0","melody-extension-core":"^1.7.5","melody-parser":"^1.7.5","melody-traverse":"^1.7.5","melody-types":"^1.7.5","prettier":"^3.0.1","resolve":"^1.22.2"},"devDependencies":{"eslint":"^8.46.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.28.0","eslint-plugin-jest":"^27.2.3","eslint-plugin-prettier":"^5.0.0","eslint-plugin-prettier-doc":"^1.1.0","jest":"^29.6.2","jest-runner-eslint":"^2.1.0"},"jest":{"projects":["<rootDir>/jest.*.config.js"]},"_id":"@afshinhaghighat/prettier-plugin-twig-melody@2.0.1","gitHead":"3f039099228fc06e970a81bab918f68af71ca4f0","bugs":{"url":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody/issues"},"homepage":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody#readme","_nodeVersion":"18.16.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-5/oo2qSA0PLy0rel0gMlr/y7+hijcpBKjz+rgaI8XlhEYefa2rxzkZGYEhQr8aPkdNoEFZVnsymDCTW1tGXF8g==","shasum":"51ef249d12725eb31373ca871f735215ae3a0565","tarball":"https://registry.npmjs.org/@afshinhaghighat/prettier-plugin-twig-melody/-/prettier-plugin-twig-melody-2.0.1.tgz","fileCount":55,"unpackedSize":107425,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtFXJH4ttclD9WLttdEdVxaa94aV/wipi6bC+KwZCQUAiBXrhm2BwGCUoeHB5qkeQqr6fmo526936uIQ4J7UrIu2A=="}]},"_npmUser":{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"},"directories":{},"maintainers":[{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-twig-melody_2.0.1_1691141384677_0.8929005374154255"},"_hasShrinkwrap":false},"2.0.2":{"name":"@afshinhaghighat/prettier-plugin-twig-melody","version":"2.0.2","description":"Prettier Plugin for Twig/Melody","main":"src","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/afshinhaghighat/prettier-plugin-twig-melody.git"},"author":{"name":"Tom Bartel","email":"thomas.bartel@trivago.com"},"license":"Apache 2.0","engines":{"node":">=18.0.0"},"scripts":{"lint":"jest -c jest.eslint.config.js","test":"jest","prettier":"prettier --plugin=. --parser=melody","publish":"npm publish --access public"},"dependencies":{"babel-types":"^6.26.0","melody-extension-core":"^1.7.5","melody-parser":"^1.7.5","melody-traverse":"^1.7.5","melody-types":"^1.7.5","prettier":"^3.1.1","resolve":"^1.22.8"},"devDependencies":{"eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^27.6.1","eslint-plugin-prettier":"^5.1.2","eslint-plugin-prettier-doc":"^1.1.0","jest":"^29.7.0","jest-runner-eslint":"^2.1.2"},"jest":{"projects":["<rootDir>/jest.*.config.js"]},"_id":"@afshinhaghighat/prettier-plugin-twig-melody@2.0.2","gitHead":"1465173ed542425cb40362607dda0102d77c96d2","bugs":{"url":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody/issues"},"homepage":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody#readme","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Y6GNfaBnxomr485CZyGwd8JJu/RF8WbZwNcXmAO9W8dt6S8wp6TEgvPTI1aRG1O/Beuypn7raslQ3XILvnGO/g==","shasum":"465cef84eef712fe77180167240849df357a0748","tarball":"https://registry.npmjs.org/@afshinhaghighat/prettier-plugin-twig-melody/-/prettier-plugin-twig-melody-2.0.2.tgz","fileCount":55,"unpackedSize":107424,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXZ4EW2rfSqrukMvpSg8TfuoJwrbOlDAM80AfSMLzeRAIgBp7mVxGTR69rS35vkWz//E5bmB8FM61vYq34EIFyR28="}]},"_npmUser":{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"},"directories":{},"maintainers":[{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-twig-melody_2.0.2_1704312677048_0.5305439035930568"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-04T00:04:50.340Z","2.0.0":"2023-08-04T00:04:50.646Z","modified":"2024-01-03T20:11:17.413Z","2.0.1":"2023-08-04T09:29:44.780Z","2.0.2":"2024-01-03T20:11:17.246Z"},"maintainers":[{"name":"afshinhaghighat","email":"afshin.hagigat@gmail.com"}],"description":"Prettier Plugin for Twig/Melody","homepage":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody#readme","repository":{"type":"git","url":"git+https://github.com/afshinhaghighat/prettier-plugin-twig-melody.git"},"author":{"name":"Tom Bartel","email":"thomas.bartel@trivago.com"},"bugs":{"url":"https://github.com/afshinhaghighat/prettier-plugin-twig-melody/issues"},"license":"Apache 2.0","readme":"# Prettier for Melody\n\n![Prettier Banner](https://raw.githubusercontent.com/prettier/prettier-logo/master/images/prettier-banner-light.png)\n\n---\n\nThis plugin for Prettier is a fork of [`prettier-plugin-twig-melody`](https://github.com/trivago/prettier-plugin-twig-melody), which is currently unmaintained and [`@supersoniks/prettier-plugin-twig-melody`](https://github.com/bitbirddev/prettier-plugin-twig-melody) with serveral enhancements. The newer version of prettier has removed multiple deprecated methods and functions, and led to several issues which are fixed in this repo.\n\n## Install\n\n```bash\nyarn add --dev @afshinhaghighat/prettier-plugin-twig-melody\n```\n\nor\n\n```bash\nnpm install --save-dev @afshinhaghighat/prettier-plugin-twig-melody\n```\n\n## Use\n\n```bash\nprettier --write \"**/*.melody.twig\"\n```\n\nIn your editor, if the plugin is not automatically picked up and invoked (e.g., if you are using format on save, but no formatting is happening when you save), try adding the plugin explicitly in your Prettier configuration (e.g., `.prettierrc.json`) using the `plugins` key:\n\n```json\n{\n    \"printWidth\": 80,\n    \"tabWidth\": 4,\n    \"plugins\": [\"./node_modules/@afshinhaghighat/prettier-plugin-twig-melody\"]\n}\n```\n\n## Enhancements\n\n-   Preserve `only` keyword in twig templates.\n-   Block statements : no empty line between opening end closing `block` statements.\n-   Html element : nno empty line between opening and closing tags.\n-   Updated `npm` packages to the latest version: `Prettier 3.0.0` is now included and issues related are fixed\n","readmeFilename":"README.md"}