Skip to content

Commit

Permalink
chore: update lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Nov 1, 2024
1 parent 38f4406 commit 3f3f293
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ export default [
'lockdown.js',
],
},
{
rules: {
'no-unused-vars': ['error', { varsIgnorePattern: '^_' }],
},
},
];
2 changes: 1 addition & 1 deletion services/fetchAndStoreLogsFromGCP.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const fetchAndStoreLogsFromGCP = async ({
pageToken: nextPageToken,
};

const [entries, _, { nextPageToken: newPageToken }] =
const [entries, _, { nextPageToken: _newPageToken }] =
await logging.getEntries(options);
console.log('Fetched page size: ' + entries.length);
allEntries = allEntries.concat(entries);
Expand Down
7 changes: 4 additions & 3 deletions services/slogProcessor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-continue */
// Source: https://github.com/Agoric/agoric-sdk/blob/slog-to-causeway/packages/SwingSet/misc-tools/slog-to-diagram.mjs
import { fs } from 'zx';
import { pipeline } from 'stream';
Expand Down Expand Up @@ -114,7 +113,7 @@ async function slogSummary(entries) {
});
switch (vd?.[0]) {
case 'startVat': {
const [_tag, vatParams] = vd;
const [_tag, _vatParams] = vd;
dInfo = {
type: entry.type,
time: entry.time,
Expand Down Expand Up @@ -275,6 +274,7 @@ const fmtPlantUml = freeze({
response: (src, dest, label) => `${src} --> ${dest} : ${label}\n`,
});

/* eslint-disable no-unused-vars */
/**
* ref: https://mermaid-js.github.io/mermaid/
*/
Expand All @@ -298,6 +298,7 @@ const fmtMermaid = freeze({
/** @type {(s: string, d: string, msg: string) => string} */
response: (src, dest, label) => ` ${src} -->> ${dest} : ${label}\n`,
});
/* eslint-enable no-unused-vars */

/**
* @param {typeof fmtPlantUml} fmt
Expand Down Expand Up @@ -334,7 +335,7 @@ async function* diagramLines(
method,
state,
argSize,
compute,
_compute,
blockTime,
},
] of byTime) {
Expand Down

0 comments on commit 3f3f293

Please sign in to comment.