2016-11-29 12:14:10 -05:00
|
|
|
{
|
2017-01-09 22:45:22 -05:00
|
|
|
"name": "prettier",
|
2024-02-04 14:35:44 +09:00
|
|
|
"version": "3.3.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"
|
|
|
|
|
},
|
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": {
|
2024-04-03 20:35:27 +08:00
|
|
|
"@angular/compiler": "17.3.2",
|
2024-04-04 21:27:38 +08:00
|
|
|
"@babel/code-frame": "7.24.2",
|
2024-05-06 15:22:03 +08:00
|
|
|
"@babel/parser": "7.24.5",
|
|
|
|
|
"@babel/types": "7.24.5",
|
2024-05-06 14:32:17 +08:00
|
|
|
"@glimmer/syntax": "0.92.0",
|
2020-04-23 13:41:17 +03:00
|
|
|
"@iarna/toml": "2.2.5",
|
2023-07-09 14:37:57 +08:00
|
|
|
"@prettier/is-es5-identifier-name": "0.2.0",
|
2023-08-08 17:41:46 +08:00
|
|
|
"@prettier/parse-srcset": "3.1.0",
|
2024-05-06 10:43:07 +08:00
|
|
|
"@typescript-eslint/typescript-estree": "7.8.0",
|
|
|
|
|
"@typescript-eslint/visitor-keys": "7.8.0",
|
2024-01-02 13:30:15 +08:00
|
|
|
"acorn": "8.11.3",
|
2022-01-28 15:25:30 +08:00
|
|
|
"acorn-jsx": "5.3.2",
|
2024-02-22 00:09:17 +08:00
|
|
|
"angular-estree-parser": "10.0.1",
|
2023-12-14 13:01:54 +09:00
|
|
|
"angular-html-parser": "5.2.0",
|
2023-08-15 09:20:40 +08:00
|
|
|
"camelcase": "8.0.0",
|
2023-07-09 14:42:34 +08:00
|
|
|
"chalk": "5.3.0",
|
2023-10-29 23:52:08 +08:00
|
|
|
"ci-info": "4.0.0",
|
2023-10-27 01:32:06 +08:00
|
|
|
"cjk-regex": "3.1.0",
|
2022-12-15 01:51:19 -05:00
|
|
|
"collapse-white-space": "1.0.6",
|
2022-08-22 14:14:32 +08:00
|
|
|
"css-units-list": "2.0.1",
|
2019-09-28 21:44:20 +08:00
|
|
|
"dashify": "2.0.0",
|
2024-02-16 14:16:48 +00:00
|
|
|
"diff": "5.2.0",
|
2019-09-28 21:41:30 +08:00
|
|
|
"editorconfig": "0.15.3",
|
2023-10-28 18:14:11 +09:00
|
|
|
"emoji-regex": "10.3.0",
|
2022-03-02 13:43:17 +08:00
|
|
|
"escape-string-regexp": "5.0.0",
|
2024-02-18 18:26:22 +08:00
|
|
|
"espree": "10.0.1",
|
2023-11-07 10:25:24 +08:00
|
|
|
"fast-glob": "3.3.2",
|
2020-06-18 23:15:06 +08:00
|
|
|
"fast-json-stable-stringify": "2.1.0",
|
2023-11-20 03:45:32 +08:00
|
|
|
"file-entry-cache": "7.0.2",
|
2023-09-02 09:12:51 +08:00
|
|
|
"find-cache-dir": "5.0.0",
|
2024-05-08 20:26:13 -07:00
|
|
|
"flow-parser": "0.235.1",
|
2023-10-30 02:57:04 +08:00
|
|
|
"get-east-asian-width": "1.2.0",
|
2022-07-12 10:28:00 +08:00
|
|
|
"get-stdin": "9.0.0",
|
2023-09-22 20:14:59 +08:00
|
|
|
"graphql": "16.8.1",
|
2024-05-08 20:26:13 -07:00
|
|
|
"hermes-parser": "0.21.0",
|
2024-04-04 21:42:03 +08:00
|
|
|
"html-element-attributes": "3.4.0",
|
2023-03-29 09:14:24 +08:00
|
|
|
"html-tag-names": "2.1.0",
|
2024-04-10 17:02:37 +08:00
|
|
|
"html-ua-styles": "0.0.6",
|
2024-02-03 19:08:49 +08:00
|
|
|
"ignore": "5.3.1",
|
2024-05-06 10:42:45 +08:00
|
|
|
"import-meta-resolve": "4.1.0",
|
2023-11-20 13:35:09 +08:00
|
|
|
"iterate-directory-up": "1.1.1",
|
2023-09-18 00:16:04 +09:00
|
|
|
"jest-docblock": "29.7.0",
|
2023-09-02 01:02:22 +08:00
|
|
|
"js-yaml": "4.1.0",
|
2023-01-03 10:29:14 +08:00
|
|
|
"json5": "2.2.3",
|
2022-03-02 13:41:59 +08:00
|
|
|
"leven": "4.0.0",
|
2023-11-09 13:24:49 +08:00
|
|
|
"lines-and-columns": "2.0.4",
|
2023-10-28 02:40:42 +08:00
|
|
|
"linguist-languages": "7.27.0",
|
2024-04-04 22:33:33 +08:00
|
|
|
"meriyah": "4.4.2",
|
2022-03-28 02:18:16 +09:00
|
|
|
"micromatch": "4.0.5",
|
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",
|
2023-11-23 10:57:28 +08:00
|
|
|
"parse-json": "8.1.0",
|
2020-03-23 03:32:05 +02:00
|
|
|
"please-upgrade-node": "3.2.0",
|
2024-03-30 03:41:38 +08:00
|
|
|
"postcss": "8.4.38",
|
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",
|
2023-07-10 19:45:18 +08:00
|
|
|
"regexp-util": "2.0.0",
|
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",
|
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",
|
2024-04-12 16:14:46 +08:00
|
|
|
"typescript": "5.4.5",
|
2023-07-10 19:45:18 +08:00
|
|
|
"unicode-regex": "4.0.0",
|
2022-05-08 17:36:02 +08:00
|
|
|
"unified": "9.2.2",
|
2023-11-19 23:12:13 +08:00
|
|
|
"url-or-path": "2.3.0",
|
2023-07-22 01:49:00 +09:00
|
|
|
"vnopts": "2.0.0",
|
2023-12-15 06:03:30 +08:00
|
|
|
"wcwidth.js": "1.1.2",
|
2022-10-16 11:53:24 +08:00
|
|
|
"yaml-unist-parser": "2.0.1"
|
2017-06-17 17:36:50 +03:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2024-05-06 15:22:03 +08:00
|
|
|
"@babel/generator": "7.24.5",
|
2024-02-24 19:22:02 +08:00
|
|
|
"@eslint/eslintrc": "3.0.2",
|
|
|
|
|
"@eslint/js": "8.57.0",
|
2024-05-06 14:32:17 +08:00
|
|
|
"@glimmer/reference": "0.92.0",
|
2024-04-04 21:40:06 +08:00
|
|
|
"@stylistic/eslint-plugin-js": "1.7.0",
|
2024-01-08 14:48:45 +08:00
|
|
|
"@types/eslint__js": "8.42.3",
|
2023-11-13 01:25:04 +08:00
|
|
|
"@types/estree": "1.0.5",
|
2023-11-13 01:14:36 +08:00
|
|
|
"@types/file-entry-cache": "5.0.4",
|
2024-02-06 20:12:53 +08:00
|
|
|
"@types/jest": "29.5.12",
|
2024-05-06 10:43:07 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "7.8.0",
|
2018-07-01 19:49:16 -07:00
|
|
|
"benchmark": "2.1.4",
|
2024-02-18 18:24:54 +08:00
|
|
|
"browserslist": "4.23.0",
|
2024-01-16 10:34:53 +08:00
|
|
|
"browserslist-to-esbuild": "2.1.1",
|
2024-02-03 19:11:41 +08:00
|
|
|
"c8": "9.1.0",
|
2022-04-25 14:39:16 +08:00
|
|
|
"cross-env": "7.0.3",
|
2024-04-04 22:33:46 +08:00
|
|
|
"cspell": "8.6.1",
|
2023-08-08 10:22:48 +08:00
|
|
|
"enquirer": "2.4.1",
|
2024-03-30 03:43:59 +08:00
|
|
|
"esbuild": "0.20.2",
|
2024-01-30 14:34:27 +08:00
|
|
|
"esbuild-plugins-node-modules-polyfill": "1.6.2",
|
2024-01-03 10:51:40 +08:00
|
|
|
"esbuild-visualizer": "0.6.0",
|
2024-02-24 19:22:02 +08:00
|
|
|
"eslint": "8.57.0",
|
2023-12-05 11:24:03 +08:00
|
|
|
"eslint-config-prettier": "9.1.0",
|
2022-04-25 14:39:16 +08:00
|
|
|
"eslint-formatter-friendly": "7.0.0",
|
2023-09-04 14:02:10 +08:00
|
|
|
"eslint-plugin-compat": "4.2.0",
|
2024-01-03 11:03:48 +08:00
|
|
|
"eslint-plugin-import": "2.29.1",
|
2024-02-18 18:33:50 +08:00
|
|
|
"eslint-plugin-jest": "27.9.0",
|
2024-02-06 20:06:38 +08:00
|
|
|
"eslint-plugin-n": "16.6.2",
|
2024-04-04 21:40:06 +08:00
|
|
|
"eslint-plugin-react": "7.34.1",
|
2024-04-10 18:20:06 +08:00
|
|
|
"eslint-plugin-regexp": "2.5.0",
|
2024-02-18 18:39:17 +08:00
|
|
|
"eslint-plugin-simple-import-sort": "12.0.0",
|
2024-04-04 21:43:51 +08:00
|
|
|
"eslint-plugin-unicorn": "52.0.0",
|
2023-11-06 20:32:43 +08:00
|
|
|
"esm-utils": "4.2.1",
|
2023-08-08 10:23:10 +08:00
|
|
|
"execa": "7.2.0",
|
2024-02-24 17:28:11 +08:00
|
|
|
"jest": "30.0.0-alpha.3",
|
2023-11-30 19:33:18 +08:00
|
|
|
"jest-light-runner": "0.6.0",
|
2023-07-17 15:55:31 +08:00
|
|
|
"jest-snapshot-serializer-ansi": "2.1.0",
|
2023-07-17 15:41:41 +08:00
|
|
|
"jest-snapshot-serializer-raw": "2.0.0",
|
2023-01-29 13:26:40 +08:00
|
|
|
"jest-watch-typeahead": "2.2.2",
|
2024-04-04 21:42:24 +08:00
|
|
|
"magic-string": "0.30.9",
|
2024-02-03 19:13:12 +08:00
|
|
|
"npm-run-all2": "6.1.2",
|
2019-11-09 13:23:22 +01:00
|
|
|
"prettier": "3.2.5",
|
2023-07-17 15:50:07 +08:00
|
|
|
"pretty-bytes": "6.1.1",
|
2024-03-30 03:41:03 +08:00
|
|
|
"rollup-plugin-license": "3.3.1",
|
2024-05-10 17:38:50 +08:00
|
|
|
"semver": "7.6.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",
|
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",
|
2022-07-20 23:18:24 +08:00
|
|
|
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
|
2022-01-12 08:47:55 +08:00
|
|
|
"test:dev-package": "cross-env INSTALL_PACKAGE=1 yarn test",
|
|
|
|
|
"test:dist": "cross-env NODE_ENV=production yarn test",
|
|
|
|
|
"test:dist-standalone": "cross-env TEST_STANDALONE=1 yarn test:dist",
|
2024-01-08 14:48:45 +08:00
|
|
|
"test:dist-lint": "eslint --no-ignore --no-inline-config --config=./scripts/bundle-eslint-config.js dist",
|
2023-03-08 09:18:45 +08:00
|
|
|
"perf": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin/prettier.cjs",
|
|
|
|
|
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/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",
|
2022-09-08 09:44:12 +08:00
|
|
|
"lint": "run-p \"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",
|
2023-12-01 13:29:30 +09:00
|
|
|
"lint:blog": "node ./scripts/lint-blog.js",
|
2020-08-06 09:04:02 +08:00
|
|
|
"fix": "run-s fix:eslint fix:prettier",
|
|
|
|
|
"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",
|
2023-09-04 19:54:16 +08:00
|
|
|
"debug": "node bin/prettier.js --ignore-path=.prettierignore"
|
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,
|
2024-04-04 22:28:18 +08:00
|
|
|
"packageManager": "yarn@4.1.1"
|
2017-09-01 18:17:07 +08:00
|
|
|
}
|