Skip to content

Commit abbcd59

Browse files
📦 Update linting devDependencies (#40105)
* 📦 Update linting devDependencies * `amp lint --fix` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Rozenberg <[email protected]>
1 parent ebb25e4 commit abbcd59

File tree

6 files changed

+231
-223
lines changed

6 files changed

+231
-223
lines changed

‎build-system/common/logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {isCiBuild} = require('./ci');
77
* Used by tests to wrap progress dots. Attempts to match the terminal width
88
* during local development and defaults to 150 if it couldn't be determined.
99
*/
10-
const dotWrappingWidth = isCiBuild() ? 150 : process.stdout.columns ?? 150;
10+
const dotWrappingWidth = isCiBuild() ? 150 : (process.stdout.columns ?? 150);
1111

1212
/**
1313
* Used by CI job scripts to print a prefix before top-level logging lines.

‎build-system/server/new-server/transforms/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import transformModules from './modules/modules-transform';
99
const argv = minimist(process.argv.slice(2));
1010
const FOR_TESTING = argv._.includes('integration');
1111
// Use 9876 if running integration tests as this is the KARMA_SERVER_PORT
12-
const PORT = FOR_TESTING ? 9876 : argv.port ?? 8000;
12+
const PORT = FOR_TESTING ? 9876 : (argv.port ?? 8000);
1313
const ESM = !!argv.esm;
1414

1515
const defaultTransformConfig = {

‎build-system/tasks/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ async function esbuildCompile(srcDir, srcFilename, destDir, options) {
261261
const entryPoint = path.join(srcDir, srcFilename);
262262
const filename = options.minify
263263
? options.minifiedName
264-
: options.toName ?? srcFilename;
264+
: (options.toName ?? srcFilename);
265265
// This guards against someone passing `minify: true` but no `minifiedName`.
266266
if (!filename) {
267267
throw new Error('No minifiedName provided for ' + srcFilename);

0 commit comments

Comments
 (0)