Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d0a4864

Browse filesBrowse files
committed
chore: use new Prettier
1 parent 67e1b04 commit d0a4864
Copy full SHA for d0a4864

File tree

Expand file treeCollapse file tree

5 files changed

+65
-48
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

5 files changed

+65
-48
lines changed
Open diff view settings
Collapse file

‎package-lock.json‎

Copy file name to clipboardExpand all lines: package-lock.json
+57-41Lines changed: 57 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
},
6161
"scripts": {
6262
"lint": "npm run lint:prettify && npm run lint:code && npm run lint:markdown",
63-
"lint:prettify": "prettier --config .prettierrc.cjs --check .",
63+
"lint:prettify": "prettier --check .",
6464
"lint:code": "eslint . --ext ts,d.ts,test.ts",
6565
"lint:markdown": "markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"",
6666
"build": "npm run build:cjs && npm run build:esm",
67-
"build:esm": "tsc -p tsconfig.build.json --outDir dist/esm --module ES2020 --declarationDir dist/types",
67+
"build:esm": "tsc -p tsconfig.build.json --outDir dist/esm --module ES2020 --declarationDir dist/types && node scripts/rewrite-extensions.mjs dist/esm",
6868
"build:cjs": "tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types",
6969
"test": "node --experimental-vm-modules node_modules/.bin/jest",
7070
"prepublishOnly": "npm run lint && npm run test && npm run build"
@@ -81,7 +81,7 @@
8181
"eslint-plugin-simple-import-sort": "^10.0.0",
8282
"jest": "^29.5.0",
8383
"markdownlint-cli2": "^0.5.1",
84-
"prettier": "^2.8.7",
84+
"prettier": "^3.0.0-alpha.6",
8585
"ts-jest": "^29.0.5",
8686
"typescript": "^5.0.2"
8787
},
Collapse file

‎.prettierrc.cjs‎ ‎prettier.config.js‎.prettierrc.cjs renamed to prettier.config.js

Copy file name to clipboardExpand all lines: prettier.config.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type { import('prettier').Config } */
2-
module.exports = {
2+
export default {
33
arrowParens: 'avoid',
44
bracketSameLine: false,
55
bracketSpacing: true,
Collapse file

‎src/targets/php/guzzle/client.ts‎

Copy file name to clipboardExpand all lines: src/targets/php/guzzle/client.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ export const guzzle: Client<GuzzleOptions> = {
123123
const headers = Object.keys(headersObj)
124124
.sort()
125125
.map(function (key) {
126-
return `${
127-
opts.indent
128-
}${opts.indent}'${key}' => '${escapeForSingleQuotes(headersObj[key])}',`;
126+
return `${opts.indent}${opts.indent}'${key}' => '${escapeForSingleQuotes(
127+
headersObj[key],
128+
)}',`;
129129
});
130130

131131
// construct cookies
Collapse file

‎tsconfig.build.json‎

Copy file name to clipboardExpand all lines: tsconfig.build.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"outDir": "dist",
44
"rootDir": "src",
55
"allowJs": false,
6+
"resolveJsonModule": false,
67
"declaration": true,
78
"strict": true,
89
"moduleResolution": "Node16",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.