2016-11-29 12:14:10 -05:00
|
|
|
{
|
2017-01-09 22:45:22 -05:00
|
|
|
"name": "prettier",
|
2025-06-27 10:56:48 +08:00
|
|
|
"version": "3.7.0-dev",
|
2017-07-01 17:14:24 -07:00
|
|
|
"description": "Prettier is an opinionated code formatter",
|
2022-04-03 00:04:45 +08:00
|
|
|
"bin": "./bin/prettier.cjs",
|
2017-03-13 16:39:54 -05:00
|
|
|
"repository": "prettier/prettier",
|
2021-12-06 13:55:58 +08:00
|
|
|
"funding": "https://github.com/prettier/prettier?sponsor=1",
|
2017-07-01 17:14:24 -07:00
|
|
|
"homepage": "https://prettier.io",
|
2017-01-11 15:40:29 +00:00
|
|
|
"author": "James Long",
|
2022-02-12 15:39:16 +08:00
|
|
|
"type": "module",
|
2017-01-13 21:11:03 -07:00
|
|
|
"license": "MIT",
|
2022-10-14 17:17:47 +08:00
|
|
|
"main": "./src/index.cjs",
|
2020-05-25 09:51:54 +03:00
|
|
|
"browser": "./standalone.js",
|
|
|
|
|
"unpkg": "./standalone.js",
|
2022-10-06 15:20:19 +08:00
|
|
|
"exports": {
|
|
|
|
|
".": {
|
2023-02-23 22:15:18 +09:00
|
|
|
"types": "./src/index.d.ts",
|
2023-03-31 14:15:09 +08:00
|
|
|
"require": "./src/index.cjs",
|
2022-10-06 15:20:19 +08:00
|
|
|
"default": "./src/index.js"
|
|
|
|
|
},
|
2025-05-06 10:34:05 +08:00
|
|
|
"./standalone": "./src/standalone.js",
|
|
|
|
|
"./plugins/*": "./src/plugins/*.js",
|
2022-10-16 12:47:33 +08:00
|
|
|
"./*": "./*"
|
2022-10-06 15:20:19 +08:00
|
|
|
},
|
2017-09-16 19:47:53 +03:00
|
|
|
"engines": {
|
2023-10-29 19:23:22 +08:00
|
|
|
"node": ">=18"
|
2017-09-16 19:47:53 +03:00
|
|
|
},
|
2020-04-23 10:37:09 +08:00
|
|
|
"files": [
|
|
|
|
|
"index.js",
|
|
|
|
|
"standalone.js",
|
|
|
|
|
"src",
|
2022-02-28 19:48:14 +08:00
|
|
|
"bin"
|
2020-04-23 10:37:09 +08:00
|
|
|
],
|
2017-06-17 17:36:50 +03:00
|
|
|
"dependencies": {
|
2025-08-23 21:33:54 +08:00
|
|
|
"@angular/compiler": "20.2.1",
|
2025-05-06 09:10:51 +08:00
|
|
|
"@babel/code-frame": "7.27.1",
|
2025-08-15 21:08:33 +08:00
|
|
|
"@babel/parser": "7.28.3",
|
|
|
|
|
"@babel/types": "7.28.2",
|
2025-08-03 22:46:45 +08:00
|
|
|
"@glimmer/syntax": "0.95.0",
|
2025-06-15 16:33:55 +08:00
|
|
|
"@prettier/cli": "0.9.0",
|
2025-07-26 12:27:05 +08:00
|
|
|
"@prettier/html-tags": "1.1.0",
|
2023-08-08 17:41:46 +08:00
|
|
|
"@prettier/parse-srcset": "3.1.0",
|
2025-08-30 15:05:13 +08:00
|
|
|
"@typescript-eslint/typescript-estree": "8.41.0",
|
|
|
|
|
"@typescript-eslint/visitor-keys": "8.41.0",
|
2025-06-09 02:11:18 +08:00
|
|
|
"acorn": "8.15.0",
|
2022-01-28 15:25:30 +08:00
|
|
|
"acorn-jsx": "5.3.2",
|
2025-07-18 11:22:33 +08:00
|
|
|
"angular-estree-parser": "13.0.2",
|
2025-03-13 00:25:39 +08:00
|
|
|
"angular-html-parser": "8.1.0",
|
2023-08-15 09:20:40 +08:00
|
|
|
"camelcase": "8.0.0",
|
2025-07-07 17:05:45 +08:00
|
|
|
"ci-info": "4.3.0",
|
2025-03-18 15:46:27 +08:00
|
|
|
"cjk-regex": "3.3.0",
|
2022-12-15 01:51:19 -05:00
|
|
|
"collapse-white-space": "1.0.6",
|
2024-10-30 11:07:42 +08:00
|
|
|
"css-units-list": "2.1.0",
|
2019-09-28 21:44:20 +08:00
|
|
|
"dashify": "2.0.0",
|
2025-06-20 04:24:58 +08:00
|
|
|
"deno-path-from-file-url": "0.0.3",
|
2025-05-23 14:16:25 +08:00
|
|
|
"diff": "8.0.2",
|
2019-09-28 21:41:30 +08:00
|
|
|
"editorconfig": "0.15.3",
|
2024-08-31 05:00:32 +08:00
|
|
|
"emoji-regex": "10.4.0",
|
2022-03-02 13:43:17 +08:00
|
|
|
"escape-string-regexp": "5.0.0",
|
2025-06-10 21:27:57 +08:00
|
|
|
"espree": "10.4.0",
|
2025-01-08 10:57:59 +08:00
|
|
|
"fast-glob": "3.3.3",
|
2020-06-18 23:15:06 +08:00
|
|
|
"fast-json-stable-stringify": "2.1.0",
|
2025-08-23 21:26:01 +08:00
|
|
|
"file-entry-cache": "10.1.4",
|
2025-04-09 07:41:12 +08:00
|
|
|
"find-cache-directory": "6.0.0",
|
2025-08-17 22:23:48 +08:00
|
|
|
"flow-parser": "0.279.0",
|
2024-10-15 17:07:04 +08:00
|
|
|
"get-east-asian-width": "1.3.0",
|
2022-07-12 10:28:00 +08:00
|
|
|
"get-stdin": "9.0.0",
|
2025-04-27 05:22:27 +08:00
|
|
|
"graphql": "16.11.0",
|
2025-08-23 21:53:55 +08:00
|
|
|
"hermes-parser": "0.32.0",
|
2025-08-03 10:43:54 +08:00
|
|
|
"html-element-attributes": "3.5.0",
|
2025-07-26 12:12:18 +08:00
|
|
|
"html-ua-styles": "0.0.9",
|
2025-06-02 23:22:59 +08:00
|
|
|
"ignore": "7.0.5",
|
2024-05-06 10:42:45 +08:00
|
|
|
"import-meta-resolve": "4.1.0",
|
2025-05-27 09:35:31 +08:00
|
|
|
"index-to-position": "1.1.0",
|
2025-03-12 18:57:46 +08:00
|
|
|
"is-es5-identifier-name": "1.0.0",
|
2025-06-20 03:34:37 +08:00
|
|
|
"jest-docblock": "30.0.1",
|
2023-01-03 10:29:14 +08:00
|
|
|
"json5": "2.2.3",
|
2022-03-02 13:41:59 +08:00
|
|
|
"leven": "4.0.0",
|
2025-08-08 12:46:09 +08:00
|
|
|
"linguist-languages": "8.1.0",
|
2025-07-02 21:54:55 +08:00
|
|
|
"meriyah": "6.1.4",
|
2024-08-24 02:06:58 +08:00
|
|
|
"micromatch": "4.0.8",
|
2023-02-12 19:08:12 +08:00
|
|
|
"minimist": "1.2.8",
|
2020-11-14 10:51:46 +00:00
|
|
|
"n-readlines": "1.0.1",
|
2020-12-17 14:22:15 +08:00
|
|
|
"outdent": "0.8.0",
|
2025-08-23 21:53:40 +08:00
|
|
|
"oxc-parser": "0.82.3",
|
2025-04-09 21:51:25 +08:00
|
|
|
"parse-json": "8.3.0",
|
2025-03-10 11:48:01 +08:00
|
|
|
"picocolors": "1.1.1",
|
2020-03-23 03:32:05 +02:00
|
|
|
"please-upgrade-node": "3.2.0",
|
2025-06-18 21:26:42 +08:00
|
|
|
"postcss": "8.5.6",
|
2022-01-17 09:19:34 +08:00
|
|
|
"postcss-less": "6.0.0",
|
2017-06-01 20:38:25 -07:00
|
|
|
"postcss-media-query-parser": "0.2.3",
|
2023-11-06 22:34:13 +08:00
|
|
|
"postcss-scss": "4.0.9",
|
2017-06-01 20:38:25 -07:00
|
|
|
"postcss-selector-parser": "2.2.3",
|
2019-11-17 11:02:55 +01:00
|
|
|
"postcss-values-parser": "2.0.1",
|
2025-03-08 15:11:48 +08:00
|
|
|
"regexp-util": "2.0.3",
|
2020-08-24 07:04:15 +00:00
|
|
|
"remark-footnotes": "2.0.0",
|
2020-11-16 01:03:35 +08:00
|
|
|
"remark-math": "3.0.1",
|
2020-07-20 14:13:07 +03:00
|
|
|
"remark-parse": "8.0.3",
|
2022-06-11 23:32:32 +09:00
|
|
|
"sdbm": "2.0.0",
|
2025-05-10 05:18:12 +08:00
|
|
|
"search-closest": "1.1.0",
|
2025-08-11 16:10:26 +08:00
|
|
|
"smol-toml": "1.4.2",
|
2023-05-28 19:24:15 +08:00
|
|
|
"strip-ansi": "7.1.0",
|
2022-08-17 09:47:08 +08:00
|
|
|
"to-fast-properties": "4.0.0",
|
2025-03-17 11:18:33 +08:00
|
|
|
"trim-newlines": "5.0.0",
|
2025-08-05 17:15:03 +08:00
|
|
|
"typescript": "5.9.2",
|
2025-03-08 15:11:48 +08:00
|
|
|
"unicode-regex": "4.1.2",
|
2022-05-08 17:36:02 +08:00
|
|
|
"unified": "9.2.2",
|
2025-04-29 02:39:18 +08:00
|
|
|
"url-or-path": "2.6.1",
|
2025-03-08 19:36:56 +08:00
|
|
|
"vnopts": "2.0.2",
|
2024-10-08 14:13:29 +08:00
|
|
|
"wcwidth.js": "2.0.0",
|
2025-05-06 08:18:50 +08:00
|
|
|
"yaml": "1.10.2",
|
2025-03-22 01:59:03 +08:00
|
|
|
"yaml-unist-parser": "2.0.5"
|
2017-06-17 17:36:50 +03:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2025-08-15 21:08:33 +08:00
|
|
|
"@babel/generator": "7.28.3",
|
2025-08-13 23:03:59 +08:00
|
|
|
"@eslint-react/eslint-plugin": "1.52.4",
|
|
|
|
|
"@eslint/js": "9.33.0",
|
|
|
|
|
"@stylistic/eslint-plugin": "5.2.3",
|
2025-06-07 19:38:13 +08:00
|
|
|
"@types/estree": "1.0.8",
|
2025-08-30 15:05:13 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "8.41.0",
|
|
|
|
|
"@typescript-eslint/parser": "8.41.0",
|
2025-06-26 05:31:05 +08:00
|
|
|
"browserslist": "4.25.1",
|
2024-01-16 10:34:53 +08:00
|
|
|
"browserslist-to-esbuild": "2.1.1",
|
2025-05-29 15:30:45 +08:00
|
|
|
"buffer": "6.0.3",
|
2025-01-20 14:20:09 +08:00
|
|
|
"c8": "10.1.3",
|
2025-07-26 10:47:35 +08:00
|
|
|
"cross-env": "10.0.0",
|
2025-06-20 04:26:43 +08:00
|
|
|
"cspell": "9.1.1",
|
2023-08-08 10:22:48 +08:00
|
|
|
"enquirer": "2.4.1",
|
2025-07-14 00:27:47 +08:00
|
|
|
"esbuild": "0.25.6",
|
2025-06-20 04:44:08 +08:00
|
|
|
"esbuild-plugins-node-modules-polyfill": "1.7.1",
|
2025-01-08 11:31:09 +08:00
|
|
|
"esbuild-visualizer": "0.7.0",
|
2025-08-13 23:03:59 +08:00
|
|
|
"eslint": "9.33.0",
|
2025-07-26 11:31:31 +08:00
|
|
|
"eslint-config-prettier": "10.1.8",
|
2022-04-25 14:39:16 +08:00
|
|
|
"eslint-formatter-friendly": "7.0.0",
|
2025-01-08 13:51:28 +08:00
|
|
|
"eslint-plugin-compat": "6.0.2",
|
2025-06-19 05:56:28 +08:00
|
|
|
"eslint-plugin-jest": "29.0.1",
|
2025-08-13 23:03:59 +08:00
|
|
|
"eslint-plugin-n": "17.21.3",
|
|
|
|
|
"eslint-plugin-regexp": "2.10.0",
|
2024-07-13 18:31:55 +08:00
|
|
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
2025-07-26 10:56:11 +08:00
|
|
|
"eslint-plugin-unicorn": "60.0.0",
|
2025-04-29 23:11:34 +08:00
|
|
|
"esm-utils": "4.4.2",
|
2025-07-07 17:47:34 +08:00
|
|
|
"globals": "16.3.0",
|
2025-07-28 16:32:23 +08:00
|
|
|
"jest": "30.0.5",
|
2025-06-10 21:50:34 +08:00
|
|
|
"jest-light-runner": "0.7.9",
|
2025-03-10 11:48:33 +08:00
|
|
|
"jest-snapshot-serializer-ansi": "2.2.1",
|
2023-07-17 15:41:41 +08:00
|
|
|
"jest-snapshot-serializer-raw": "2.0.0",
|
2025-06-20 03:35:08 +08:00
|
|
|
"jest-watch-typeahead": "3.0.1",
|
2025-06-20 04:43:08 +08:00
|
|
|
"knip": "5.61.2",
|
2025-01-17 07:04:23 +08:00
|
|
|
"magic-string": "0.30.17",
|
2025-06-04 14:06:17 +08:00
|
|
|
"nano-spawn": "1.0.2",
|
2025-07-15 01:29:40 +08:00
|
|
|
"node-style-text": "1.0.0",
|
2025-06-04 17:27:38 +08:00
|
|
|
"npm-run-all2": "8.0.4",
|
2025-06-27 10:56:48 +08:00
|
|
|
"prettier": "3.6.2",
|
2025-05-06 08:46:56 +08:00
|
|
|
"pretty-bytes": "7.0.0",
|
2025-05-27 09:35:31 +08:00
|
|
|
"pretty-ms": "9.2.0",
|
2025-02-19 21:50:32 +08:00
|
|
|
"rollup-plugin-license": "3.6.0",
|
2025-05-14 22:15:09 +08:00
|
|
|
"semver": "7.7.2",
|
2024-01-09 23:49:32 +08:00
|
|
|
"serialize-javascript": "6.0.2",
|
2022-09-13 10:52:29 +08:00
|
|
|
"snapshot-diff": "0.10.0",
|
2023-07-17 15:44:49 +08:00
|
|
|
"tempy": "3.1.0",
|
2025-08-17 22:15:24 +08:00
|
|
|
"tinybench": "5.0.0",
|
2023-02-23 22:15:18 +09:00
|
|
|
"ts-expect": "1.3.0"
|
2016-12-23 19:31:38 +00:00
|
|
|
},
|
2022-09-04 04:08:42 +03:00
|
|
|
"resolutions": {
|
|
|
|
|
"trim": "1.0.1"
|
|
|
|
|
},
|
2016-12-23 19:31:38 +00:00
|
|
|
"scripts": {
|
2017-10-03 19:34:08 +11:00
|
|
|
"prepublishOnly": "echo \"Error: must publish from dist/\" && exit 1",
|
2025-04-20 22:23:37 +08:00
|
|
|
"test": "jest",
|
2022-01-12 08:47:55 +08:00
|
|
|
"test:dev-package": "cross-env INSTALL_PACKAGE=1 yarn test",
|
2025-06-20 04:12:18 +08:00
|
|
|
"test:production": "cross-env NODE_ENV=production yarn test",
|
|
|
|
|
"test:production-standalone": "cross-env TEST_STANDALONE=1 yarn test:production",
|
|
|
|
|
"test:production-lint": "eslint dist/prettier --config=./scripts/bundle-eslint-config.js --quiet --format friendly",
|
2025-04-09 08:38:46 +08:00
|
|
|
"perf": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/prettier/bin/prettier.cjs",
|
|
|
|
|
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/prettier/bin/prettier.cjs",
|
2022-05-01 22:29:45 +08:00
|
|
|
"perf:benchmark": "yarn perf --debug-benchmark",
|
2022-08-06 06:25:34 +03:00
|
|
|
"perf:compare": "./scripts/benchmark/compare.sh",
|
2025-03-07 19:24:30 +08:00
|
|
|
"lint": "run-p --continue-on-error \"lint:*\"",
|
2020-02-14 18:20:38 +08:00
|
|
|
"lint:typecheck": "tsc",
|
|
|
|
|
"lint:eslint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
|
2023-03-28 16:18:53 +08:00
|
|
|
"lint:changelog": "node ./scripts/lint-changelog.js",
|
2024-01-19 17:20:41 +08:00
|
|
|
"lint:prettier": "prettier . --check --cache",
|
2022-01-27 15:03:49 +08:00
|
|
|
"lint:spellcheck": "cspell --no-progress --relative --dot --gitignore",
|
2023-03-28 16:18:53 +08:00
|
|
|
"lint:deps": "node ./scripts/check-deps.js",
|
2024-09-18 16:40:10 +08:00
|
|
|
"lint:knip": "knip",
|
2025-02-08 17:27:43 +08:00
|
|
|
"lint:format-test": "node ./scripts/format-test-lint.js",
|
2025-03-07 19:24:30 +08:00
|
|
|
"fix": "run-s --continue-on-error fix:eslint fix:prettier",
|
2020-08-06 09:04:02 +08:00
|
|
|
"fix:eslint": "yarn lint:eslint --fix",
|
|
|
|
|
"fix:prettier": "yarn lint:prettier --write",
|
2023-03-28 16:18:53 +08:00
|
|
|
"build": "node ./scripts/build/build.js",
|
2023-09-04 19:54:16 +08:00
|
|
|
"build:website": "node ./scripts/build-website.js",
|
2023-09-18 01:37:05 -04:00
|
|
|
"gen:changelog": "node ./scripts/generate-changelog.js",
|
2025-05-29 15:30:45 +08:00
|
|
|
"debug": "node bin/prettier.js --ignore-path=.prettierignore --plugin=./packages/plugin-oxc/index.js --plugin=./packages/plugin-hermes/index.js",
|
|
|
|
|
"debug:watch": "node --watch bin/prettier.js --ignore-path=.prettierignore --plugin=./packages/plugin-oxc/index.js --plugin=./packages/plugin-hermes/index.js",
|
|
|
|
|
"debug:inspect": "node --inspect-brk bin/prettier.js --ignore-path=.prettierignore --plugin=./packages/plugin-oxc/index.js --plugin=./packages/plugin-hermes/index.js"
|
2021-08-16 15:08:19 +08:00
|
|
|
},
|
2022-01-04 17:00:25 +08:00
|
|
|
"c8": {
|
|
|
|
|
"reporter": [
|
|
|
|
|
"lcov",
|
|
|
|
|
"text"
|
2022-10-17 08:25:32 +08:00
|
|
|
],
|
2022-10-22 23:33:08 +08:00
|
|
|
"all": true,
|
2022-10-17 08:25:32 +08:00
|
|
|
"include": [
|
|
|
|
|
"src/**",
|
|
|
|
|
"bin/**"
|
|
|
|
|
],
|
|
|
|
|
"exclude": [
|
2022-10-22 23:33:08 +08:00
|
|
|
"bin/prettier.js",
|
2022-10-17 08:25:32 +08:00
|
|
|
"src/standalone.js",
|
2022-10-22 23:33:08 +08:00
|
|
|
"src/index.cjs",
|
|
|
|
|
"src/document/debug.js",
|
|
|
|
|
"src/utils/unexpected-node-error.js",
|
2023-02-23 22:15:18 +09:00
|
|
|
"src/language-js/types/estree.d.ts",
|
|
|
|
|
"src/**/**/*.d.ts"
|
2022-01-04 17:00:25 +08:00
|
|
|
]
|
|
|
|
|
},
|
2021-08-16 15:08:19 +08:00
|
|
|
"browserslist": [
|
|
|
|
|
">0.5%",
|
2023-09-18 22:22:33 +09:00
|
|
|
"not dead",
|
2021-08-16 15:08:19 +08:00
|
|
|
"not op_mini all"
|
2022-05-06 20:27:33 +08:00
|
|
|
],
|
2023-08-28 10:25:36 +08:00
|
|
|
"preferUnplugged": true,
|
2025-06-04 13:30:52 +08:00
|
|
|
"packageManager": "yarn@4.9.2"
|
2017-09-01 18:17:07 +08:00
|
|
|
}
|