UNPKG

prettier-plugin-embed

Version:

A configurable Prettier plugin to format embedded languages in JS/TS files.

130 lines 4.12 kB
{ "name": "prettier-plugin-embed", "description": "A configurable Prettier plugin to format embedded languages in JS/TS files.", "private": false, "version": "0.5.1", "type": "module", "files": [ "./dist" ], "main": "./dist/index.js", "module": "./dist/index.js", "exports": { ".": { "import": "./dist/index.js", "default": "./dist/index.js" }, "./plugin-embed": { "types": "./dist/plugin-embed.d.ts" }, "./embedded/*": { "types": "./dist/embedded/*.d.ts" }, "./embedded/index": null, "./embedded/register": null, "./embedded/types": null, "./embedded/utils": null, "./embedded/*/index": null, "./embedded/*/language": null, "./embedded/*/options": null, "./embedded/*/embedder": null, "./embedded/*/parser": null, "./embedded/*/printer": null }, "repository": { "type": "git", "url": "git+https://github.com/Sec-ant/prettier-plugin-embed.git" }, "homepage": "https://github.com/Sec-ant/prettier-plugin-embed", "bugs": { "url": "https://github.com/Sec-ant/prettier-plugin-embed/issues", "email": "zezhengwu@proton.me" }, "keywords": [ "prettier", "plugin", "prettier-plugin", "embed", "embedded", "embedded-language", "format" ], "author": { "name": "Ze-Zheng Wu" }, "license": "MIT", "publishConfig": { "access": "public" }, "devDependencies": { "@biomejs/biome": "2.3.10", "@changesets/cli": "^2.29.8", "@commitlint/cli": "^20.2.0", "@commitlint/config-conventional": "^20.2.0", "@prettier/plugin-php": "^0.24.0", "@prettier/plugin-pug": "^3.4.2", "@prettier/plugin-ruby": "^4.0.4", "@prettier/plugin-xml": "^3.4.2", "@stedi/prettier-plugin-jsonata": "^2.1.8", "@types/node": "^25.0.3", "@vitest/coverage-istanbul": "^4.0.16", "@vitest/ui": "^4.0.16", "@xml-tools/parser": "^1.0.11", "chevrotain": "7.1.1", "concurrently": "^9.2.1", "copy-files-from-to": "^3.13.0", "esbuild": "^0.27.1", "lint-staged": "^16.2.7", "npm-check-updates": "^19.2.0", "prettier": "^3.7.4", "prettier-plugin-glsl": "^0.2.2", "prettier-plugin-ini": "^1.3.0", "prettier-plugin-java": "^2.7.7", "prettier-plugin-latex": "^2.0.1", "prettier-plugin-nginx": "^1.0.3", "prettier-plugin-pegjs": "^2.0.2", "prettier-plugin-prisma": "^5.0.0", "prettier-plugin-properties": "^0.3.0", "prettier-plugin-sh": "^0.18.0", "prettier-plugin-sql": "^0.19.2", "prettier-plugin-sql-cst": "^0.17.2", "prettier-plugin-toml": "^2.0.6", "simple-git-hooks": "^2.13.1", "tinyglobby": "^0.2.15", "tsx": "^4.21.0", "typescript": "^5.9.3", "vite": "^7.3.0", "vitest": "^4.0.16" }, "dependencies": { "@types/estree": "^1.0.8", "dedent": "^1.7.1", "micro-memoize": "^5.1.1", "package-up": "^5.0.0", "tiny-jsonc": "^1.0.2", "type-fest": "^5.3.1" }, "scripts": { "update-hooks": "simple-git-hooks", "lint": "biome lint .", "type-check": "tsc --noEmit --emitDeclarationOnly false", "format:prettier": "prettier . --write", "format:biome": "biome format . --write", "format": "conc \"pnpm:format:prettier\" \"pnpm:format:biome\"", "check:biome": "biome check . --write", "check": "conc \"pnpm:format:prettier\" \"pnpm:check:biome\"", "prebuild": "pnpm -s check && pnpm -s type-check", "build": "vite build", "add-glob-import-types": "tsx ./scripts/add-glob-import-types.ts", "nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts", "copy": "copy-files-from-to", "postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:nocheck-chevrotain-types\" \"pnpm:copy\"", "test:ci": "vitest --run", "test": "vitest", "test:ui": "vitest --ui", "process-readme": "tsx ./scripts/process-readme", "restore-readme": "tsx ./scripts/restore-readme", "bump-biome:latest": "pnpm add -DE @biomejs/biome@latest", "bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly" } }