Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export default defineConfig(
// React config
reactPlugin.configs.flat.recommended,

// Prettier config must be placed here to disable formatting rules from the
// base configs above, while allowing our custom rules below to take
// precedence.
prettierConfig,

// Custom configuration for all files
{
files: ['**/*.js', '**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.tsx'],
Expand Down Expand Up @@ -311,8 +316,5 @@ export default defineConfig(
...globals.jest,
},
},
},

// Prettier config (must be last to override other formatting rules)
prettierConfig
}
);
4 changes: 3 additions & 1 deletion scripts/lib/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ export async function startDevServer(buildConfig, options = {}) {
// Graceful shutdown
let isShuttingDown = false;
process.on('SIGINT', async () => {
if (isShuttingDown) return;
if (isShuttingDown) {
return;
}
isShuttingDown = true;

console.log('\nShutting down...');
Expand Down
4 changes: 3 additions & 1 deletion scripts/lib/esbuild-plugins.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export function circularDependencyPlugin() {
setup(build) {
build.initialOptions.metafile = true;
build.onEnd((result) => {
if (!result.metafile?.inputs) return;
if (!result.metafile?.inputs) {
return;
}

const { inputs } = result.metafile;
const recursionStack = new Set();
Expand Down
4 changes: 3 additions & 1 deletion src/components/stack-chart/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,9 @@ class StackChartCanvasImpl extends React.PureComponent<Props> {
};

_onDoubleClickStack = (hoveredItem: HoveredStackTiming | null) => {
if (!hoveredItem) return;
if (!hoveredItem) {
return;
}

const result =
this._getCallNodeIndexOrMarkerIndexFromHoveredItem(hoveredItem);
Expand Down
4 changes: 3 additions & 1 deletion src/test/store/symbolication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ describe('doSymbolicateProfile', function () {
// Helper function to get filename from source index
const getFileName = (funcIndex: number): string | null => {
const sourceIndex = funcTable.source[funcIndex];
if (sourceIndex === null) return null;
if (sourceIndex === null) {
return null;
}
const urlIndex = sources.filename[sourceIndex];
return stringTable.getString(urlIndex);
};
Expand Down
Loading