Skip to content

Commit

Permalink
Revert "upgrade prettier to latest v3"
Browse files Browse the repository at this point in the history
This reverts commit 840d0ae.
  • Loading branch information
rnegron committed Dec 3, 2024
1 parent 8c4384d commit 3926632
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lerna": "^8.0.2",
"lint-staged": "^11.2.6",
"mocha": "^10.2.0",
"prettier": "^3.4.1",
"prettier": "^2.8.3",
"semver": "^7.3.8",
"should": "^13"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"open": "10.1.0",
"ora": "5.4.0",
"parse-gitignore": "0.5.1",
"prettier": "3.4.1",
"prettier": "2.8.8",
"read": "4.0.0",
"semver": "7.6.3",
"string-length": "4.0.2",
Expand Down
8 changes: 3 additions & 5 deletions packages/cli/src/utils/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ const createFile = async (content, filename, dir) => {
endSpinner();
};

const prettifyJs = async (code) => {
return prettier.format(code, { singleQuote: true, parser: 'babel' });
};

const prettifyJs = (code) =>
prettier.format(code, { singleQuote: true, parser: 'babel' });
const prettifyJSON = (origString) => JSON.stringify(origString, null, 2);

const renderTemplate = async (
Expand Down Expand Up @@ -190,7 +188,7 @@ const renderSource = (definition, functions = {}) => {
});
};

const renderDefinitionSlice = async (definitionSlice, filename) => {
const renderDefinitionSlice = (definitionSlice, filename) => {
let exportBlock = _.cloneDeep(definitionSlice);
let functionBlock = {};

Expand Down
2 changes: 1 addition & 1 deletion schema-to-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"marked": "^12.0.2",
"pino": "^9.1.0",
"pino-pretty": "^11.0.0",
"prettier": "^3.4.1",
"prettier": "^3.2.5",
"word-wrap": "^1.2.5"
},
"devDependencies": {
Expand Down
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10944,12 +10944,7 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==

[email protected], prettier@^3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.1.tgz#e211d451d6452db0a291672ca9154bc8c2579f7b"
integrity sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==

prettier@^2.0.0:
[email protected], prettier@^2.0.0, prettier@^2.8.3:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
Expand Down

0 comments on commit 3926632

Please sign in to comment.