Skip to content

Commit

Permalink
chore: fix ci prettier warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
teebszet committed Dec 23, 2024
1 parent a282be1 commit eb42242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"quoteProps": "as-needed",
Expand Down
10 changes: 8 additions & 2 deletions scripts/pin_all_deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ const packageJson = require('../package.json');

for (const packageName in packageJson.dependencies) {
const installedPathKey = `node_modules/${packageName}`;
if (packageJson.dependencies.hasOwnProperty(packageName) && packageLock.packages[installedPathKey]) {
if (
packageJson.dependencies.hasOwnProperty(packageName) &&
packageLock.packages[installedPathKey]
) {
packageJson.dependencies[packageName] = packageLock.packages[installedPathKey].version;
}
}

for (const packageName in packageJson.devDependencies) {
const installedPathKey = `node_modules/${packageName}`;
if (packageJson.devDependencies.hasOwnProperty(packageName) && packageLock.packages[installedPathKey]) {
if (
packageJson.devDependencies.hasOwnProperty(packageName) &&
packageLock.packages[installedPathKey]
) {
packageJson.devDependencies[packageName] = packageLock.packages[installedPathKey].version;
}
}
Expand Down

0 comments on commit eb42242

Please sign in to comment.