Skip to content

Commit

Permalink
chore(deps): update dependency @ionic/prettier-config to v4 (#4586)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency @ionic/prettier-config to v4

* fmt(): format code

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ryan Waskiewicz <ryanwaskiewicz@gmail.com>
  • Loading branch information
renovate[bot] and rwaskiewicz committed Jul 18, 2023
1 parent 7d5dc6c commit 9d2d0a0
Show file tree
Hide file tree
Showing 346 changed files with 1,125 additions and 1,120 deletions.
6 changes: 3 additions & 3 deletions bin/stencil
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ if (isNodeLT(minimumVersion)) {
currentVersion +
', however Stencil requires v' +
minimumVersion +
'.0 or greater. It is recommended to use an Active LTS version of Node (https://nodejs.org/en/about/releases/).\n'
'.0 or greater. It is recommended to use an Active LTS version of Node (https://nodejs.org/en/about/releases/).\n',
);
process.exit(1);
}

if (isNodeLT(futureDeprecationMinVersion)) {
console.warn(
'\nIn an upcoming major release of Stencil, Node v' + recommendedVersion + '.0 or higher will be required.\n'
'\nIn an upcoming major release of Stencil, Node v' + recommendedVersion + '.0 or higher will be required.\n',
);
} else if (isNodeLT(recommendedVersion)) {
console.warn(
'\nYour current version of Node is v' +
currentVersion +
", however Stencil's recommendation is v" +
recommendedVersion +
'.0 or greater. Note that future versions of Stencil will eventually remove support for older Node versions and an Active LTS version is recommended (https://nodejs.org/en/about/releases/).\n'
'.0 or greater. Note that future versions of Stencil will eventually remove support for older Node versions and an Active LTS version is recommended (https://nodejs.org/en/about/releases/).\n',
);
}

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"tsc.watch": "tsc --incremental --watch"
},
"devDependencies": {
"@ionic/prettier-config": "^3.1.0",
"@ionic/prettier-config": "^4.0.0",
"@rollup/plugin-commonjs": "15.1.0",
"@rollup/plugin-json": "6.0.0",
"@rollup/plugin-node-resolve": "9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ export async function bundleBuild(opts: BuildOptions): Promise<void> {
await Promise.all(
rollupOption.output.map(async (output) => {
await bundle.write(output);
})
}),
);
} else {
await bundle.write(rollupOption.output);
}
})
}),
);
}
2 changes: 1 addition & 1 deletion scripts/bundles/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function devServer(opts: BuildOptions) {
// copy server-worker-thread.js
await fs.copy(
join(opts.srcDir, 'dev-server', 'server-worker-thread.js'),
join(opts.output.devServerDir, 'server-worker-thread.js')
join(opts.output.devServerDir, 'server-worker-thread.js'),
);

// copy template files
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundles/helpers/lazy-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ function _lazyRequire(moduleId) {
const importedModule = require(moduleId);
return Reflect.set(importedModule, propertyKey, value);
},
}
},
);
}
2 changes: 1 addition & 1 deletion scripts/bundles/internal-platform-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ async function copyPolyfills(opts: BuildOptions, outputInternalClientPolyfillsDi
const src = join(srcPolyfillsDir, fileName);
const dest = join(outputInternalClientPolyfillsDir, fileName);
await fs.copyFile(src, dest);
})
}),
);
}
2 changes: 1 addition & 1 deletion scripts/bundles/mock-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function bundleMockDocDts(inputDir: string, outputDir: string) {
const output = await Promise.all(
srcDtsFiles.map((inputDtsFile) => {
return getDtsContent(inputDir, inputDtsFile);
})
}),
);

const srcIndexDts = await fs.readFile(join(inputDir, 'index.d.ts'), 'utf8');
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundles/plugins/pretty-minify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function prettyMinifyPlugin(opts: BuildOptions, preamble?: string): Plugi
});
b.code = minifyResults.code;
}
})
}),
);
},
};
Expand Down
18 changes: 9 additions & 9 deletions scripts/release-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
task: () => {
if (!pkg.private && isPrereleaseVersion(newVersion) && !opts.tag) {
throw new Error(
'You must specify a dist-tag using --tag when publishing a pre-release version. This prevents accidentally tagging unstable versions as "latest". https://docs.npmjs.com/cli/dist-tag'
'You must specify a dist-tag using --tag when publishing a pre-release version. This prevents accidentally tagging unstable versions as "latest". https://docs.npmjs.com/cli/dist-tag',
);
}
},
Expand All @@ -67,7 +67,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
.then(() => execa('npm', ['config', 'get', 'tag-version-prefix']))
.then(
({ stdout }) => (tagPrefix = stdout),
() => {}
() => {},
)
// verify that a tag for the new version string does not already exist by checking the output of
// `git rev-parse --verify`
Expand All @@ -84,7 +84,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
if (err.stdout !== '' || err.stderr !== '') {
throw err;
}
}
},
),
skip: () => isDryRun,
},
Expand Down Expand Up @@ -117,7 +117,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
}
}),
skip: () => isDryRun,
}
},
);

if (!opts.isPublishRelease) {
Expand Down Expand Up @@ -162,7 +162,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
task: () => {
return updateChangeLog(opts);
},
}
},
);
}

Expand Down Expand Up @@ -224,7 +224,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
}
return postGithubRelease(opts);
},
}
},
);
}

Expand All @@ -237,13 +237,13 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
console.log(
`\n ${opts.vermoji} ${color.bold.magenta(pkg.name)} ${color.bold.yellow(newVersion)} published!! ${
opts.vermoji
}\n`
}\n`,
);
} else {
console.log(
`\n ${opts.vermoji} ${color.bold.magenta(pkg.name)} ${color.bold.yellow(
newVersion
)} prepared, check the diffs and commit ${opts.vermoji}\n`
newVersion,
)} prepared, check the diffs and commit ${opts.vermoji}\n`,
);
}
})
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function prepareRelease(opts: BuildOptions, args: ReadonlyArray<string>):
const pkg = opts.packageJson;
const oldVersion = opts.packageJson.version;
console.log(
`\nPrepare to publish ${opts.vermoji} ${color.bold.magenta(pkg.name)} ${color.dim(`(currently ${oldVersion})`)}\n`
`\nPrepare to publish ${opts.vermoji} ${color.bold.magenta(pkg.name)} ${color.dim(`(currently ${oldVersion})`)}\n`,
);

try {
Expand All @@ -90,7 +90,7 @@ async function publishRelease(opts: BuildOptions, args: ReadonlyArray<string>):
const pkg = opts.packageJson;
if (opts.version !== pkg.version) {
throw new Error(
`Prepare release data (${opts.version}) and package.json (${pkg.version}) versions do not match. Try re-running release prepare.`
`Prepare release data (${opts.version}) and package.json (${pkg.version}) versions do not match. Try re-running release prepare.`,
);
}

Expand Down
28 changes: 14 additions & 14 deletions scripts/tech-debt-burndown-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ if (errorsOnPRCount === errorsOnMainCount) {
lines.push(`That's ${errorsOnMainCount - errorsOnPRCount} fewer than on \`main\`! 🎉🎉🎉`);
} else {
lines.push(
`Unfortunately, it looks like that's an increase of ${errorsOnPRCount - errorsOnMainCount} over \`main\` 😞.`
`Unfortunately, it looks like that's an increase of ${errorsOnPRCount - errorsOnMainCount} over \`main\` 😞.`,
);
const newEntries = prData.filter(
(prTsError) =>
Expand All @@ -253,8 +253,8 @@ if (errorsOnPRCount === errorsOnMainCount) {
prTsError.value.cursor.value.line === mainTsError.value.cursor.value.line &&
prTsError.value.cursor.value.col === mainTsError.value.cursor.value.col &&
prTsError.value.tsError.value.errorString === mainTsError.value.tsError.value.errorString &&
prTsError.value.message.value === mainTsError.value.message.value
)
prTsError.value.message.value === mainTsError.value.message.value,
),
);
lines.push(
collapsible('Violations Not on `main` (may be more than the count above)', (out: string[]) => {
Expand All @@ -269,11 +269,11 @@ if (errorsOnPRCount === errorsOnMainCount) {
`${value.path.value}`,
`(${location.line}, ${location.col})`,
`${value.tsError.value.errorString}`,
`${sanitizedErrorMsg}`
)
`${sanitizedErrorMsg}`,
),
);
});
})
}),
);

lines.push('');
Expand All @@ -296,7 +296,7 @@ lines.push(
.forEach(([path, errorCount]) => {
out.push(tableRow(path, String(errorCount)));
});
})
}),
);

lines.push('');
Expand All @@ -310,8 +310,8 @@ lines.push(
tableHeader(
'[Typescript Error Code](https://github.com/microsoft/TypeScript/blob/main/src/compiler/diagnosticMessages.json)',
'Count',
'Error messages'
)
'Error messages',
),
);

sortEntries(errorCodeCounts).forEach(([tsErrorCode, errorCount]) => {
Expand All @@ -324,11 +324,11 @@ lines.push(
`<details><summary>Error messages</summary>${[...messages]
.map((msg) => msg.replace(/\n/g, '<br>'))
.map((msg) => msg.replace(/\|/g, '\\|'))
.join('<br>')}</details>`
)
.join('<br>')}</details>`,
),
);
});
})
}),
);

lines.push('');
Expand All @@ -350,7 +350,7 @@ if (deadCodeCountPR === deadCodeCountMain) {
deadCodeLine.push(`That's ${deadCodeCountMain - deadCodeCountPR} fewer than on \`main\`! 🎉🎉🎉`);
} else {
deadCodeLine.push(
`Unfortunately, it looks like that's an increase of ${deadCodeCountPR - deadCodeCountMain} over \`main\` 😞.`
`Unfortunately, it looks like that's an increase of ${deadCodeCountPR - deadCodeCountMain} over \`main\` 😞.`,
);
}
lines.push(deadCodeLine.join(''));
Expand All @@ -363,7 +363,7 @@ lines.push(
deadCodePR.forEach((deadCode) => {
out.push(tableRow(deadCode.fileName, deadCode.lineNumber, deadCode.identifier));
});
})
}),
);

console.log(lines.join('\n'));
8 changes: 4 additions & 4 deletions scripts/test/release.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('release()', () => {
packageJson: stubPackageData(),
version: '0.0.1',
},
{ spaces: 2 }
{ spaces: 2 },
);
});

Expand All @@ -109,7 +109,7 @@ describe('release()', () => {
packageJson: stubPackageData(),
version: '0.0.1',
},
[prepareFlag]
[prepareFlag],
);
});
});
Expand Down Expand Up @@ -200,7 +200,7 @@ describe('release()', () => {
});

await expect(release(rootDir, [publishFlag])).rejects.toThrow(
'Prepare release data (0.1.1) and package.json (0.1.0) versions do not match. Try re-running release prepare.'
'Prepare release data (0.1.1) and package.json (0.1.0) versions do not match. Try re-running release prepare.',
);
});

Expand All @@ -216,7 +216,7 @@ describe('release()', () => {
tag: 'testing',
version: '0.1.0',
},
[publishFlag]
[publishFlag],
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/test/options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('release options', () => {
describe('publish + prod check', () => {
it("throws an error if 'isPublishRelease' is set, but Stencil is not built for 'isProd'", () => {
expect(() => getOptions(ROOT_DIR, { isProd: false, isPublishRelease: true })).toThrow(
'release must also be a prod build'
'release must also be a prod build',
);
});

Expand Down
8 changes: 4 additions & 4 deletions scripts/utils/test/release-utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('release-utils', () => {

expect(openMock).toHaveBeenCalledTimes(1);
expect(openMock).toHaveBeenCalledWith(
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body='
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=',
);
});

Expand Down Expand Up @@ -82,7 +82,7 @@ describe('release-utils', () => {

expect(openMock).toHaveBeenCalledTimes(1);
expect(openMock).toHaveBeenCalledWith(
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=%23%23%23+Features%0A%0A*+**mock-doc%3A**+add+simple+MockEvent%23composedPath%28%29+impl+%28%5B%233204%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3204%29%29+%28%5B7b47d96%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F7b47d96e1e3c6c821d5c416fbe987646b4cd1551%29%29%0A*+**test%3A**+jest+27+support+%28%5B%233189%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3189%29%29+%28%5B10efeb6%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F10efeb6f74888f05a13a47d8afc00b5e83a3f3db%29%29'
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=%23%23%23+Features%0A%0A*+**mock-doc%3A**+add+simple+MockEvent%23composedPath%28%29+impl+%28%5B%233204%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3204%29%29+%28%5B7b47d96%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F7b47d96e1e3c6c821d5c416fbe987646b4cd1551%29%29%0A*+**test%3A**+jest+27+support+%28%5B%233189%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3189%29%29+%28%5B10efeb6%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F10efeb6f74888f05a13a47d8afc00b5e83a3f3db%29%29',
);
});

Expand Down Expand Up @@ -125,7 +125,7 @@ describe('release-utils', () => {

expect(openMock).toHaveBeenCalledTimes(1);
expect(openMock).toHaveBeenCalledWith(
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=%23%23%23+Bug+Fixes%0A%0A*+**cli%3A**+wait+for+help+task+to+finish+before+exiting+%28%5B%233160%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3160%29%29+%28%5Bf10cee1%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Ff10cee12a8d00e7581fcf13216f01ded46227f49%29%29%0A*+**mock-doc%3A**+make+Node.contains%28%29+return+true+for+self+%28%5B%233150%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3150%29%29+%28%5Bf164407%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Ff164407f7463faba7a3c39afca942c2a26210b82%29%29%0A*+**mock-doc%3A**+allow+urls+as+css+values+%28%5B%232857%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F2857%29%29+%28%5B6faa5f2%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F6faa5f2f196ff786ffc4b818ac09708ba5de9b35%29%29%0A*+**sourcemaps%3A**+do+not+encode+inline+sourcemaps+%28%5B%233163%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3163%29%29+%28%5Bb2eb083%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Fb2eb083306802645ee6e31987917dea942882e46%29%29%2C+closes+%5B%233147%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3147%29%0A%0A%0A%23%23%23+Features%0A%0A*+**dist-custom-elements-bundle%3A**+add+deprecation+warning+%28%5B%233167%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3167%29%29+%28%5Bc7b07c6%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Fc7b07c65265c7d4715f29835632cc6538ea63585%29%29'
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=%23%23%23+Bug+Fixes%0A%0A*+**cli%3A**+wait+for+help+task+to+finish+before+exiting+%28%5B%233160%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3160%29%29+%28%5Bf10cee1%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Ff10cee12a8d00e7581fcf13216f01ded46227f49%29%29%0A*+**mock-doc%3A**+make+Node.contains%28%29+return+true+for+self+%28%5B%233150%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3150%29%29+%28%5Bf164407%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Ff164407f7463faba7a3c39afca942c2a26210b82%29%29%0A*+**mock-doc%3A**+allow+urls+as+css+values+%28%5B%232857%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F2857%29%29+%28%5B6faa5f2%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F6faa5f2f196ff786ffc4b818ac09708ba5de9b35%29%29%0A*+**sourcemaps%3A**+do+not+encode+inline+sourcemaps+%28%5B%233163%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3163%29%29+%28%5Bb2eb083%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Fb2eb083306802645ee6e31987917dea942882e46%29%29%2C+closes+%5B%233147%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3147%29%0A%0A%0A%23%23%23+Features%0A%0A*+**dist-custom-elements-bundle%3A**+add+deprecation+warning+%28%5B%233167%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3167%29%29+%28%5Bc7b07c6%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2Fc7b07c65265c7d4715f29835632cc6538ea63585%29%29',
);
});

Expand Down Expand Up @@ -161,7 +161,7 @@ describe('release-utils', () => {

expect(openMock).toHaveBeenCalledTimes(1);
expect(openMock).toHaveBeenCalledWith(
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=%23%23%23+Features%0A%0A*+**mock-doc%3A**+add+simple+MockEvent%23composedPath%28%29+impl+%28%5B%233204%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3204%29%29+%28%5B7b47d96%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F7b47d96e1e3c6c821d5c416fbe987646b4cd1551%29%29%0A*+**test%3A**+jest+27+support+%28%5B%233189%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3189%29%29+%28%5B10efeb6%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F10efeb6f74888f05a13a47d8afc00b5e83a3f3db%29%29'
'https://github.com/ionic-team/stencil/releases/new?tag=v0.0.0&title=%F0%9F%9A%97+0.0.0+%282022-01-01%29&body=%23%23%23+Features%0A%0A*+**mock-doc%3A**+add+simple+MockEvent%23composedPath%28%29+impl+%28%5B%233204%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3204%29%29+%28%5B7b47d96%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F7b47d96e1e3c6c821d5c416fbe987646b4cd1551%29%29%0A*+**test%3A**+jest+27+support+%28%5B%233189%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fissues%2F3189%29%29+%28%5B10efeb6%5D%28https%3A%2F%2Fgithub.com%2Fionic-team%2Fstencil%2Fcommit%2F10efeb6f74888f05a13a47d8afc00b5e83a3f3db%29%29',
);
});
});
Expand Down

0 comments on commit 9d2d0a0

Please sign in to comment.