Skip to content

Commit

Permalink
fix: new eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smithgp committed May 13, 2024
1 parent 3dbf02a commit faff3df
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/lib/analytics/app/folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,17 @@ export default class Folder {
public async create(body: CreateAppBody): Promise<string | undefined> {
if (this.serverVersion >= 55.0 && body.templateSourceId) {
if (!body.templateOptions) {
body.templateOptions = { dynamicOptions: { productionType: 'ATF_3_0', runtimeLogEntryLevel: 'Warning' } };
// eslint-disable-next-line no-param-reassign
body = {
...body,
templateOptions: { dynamicOptions: { productionType: 'ATF_3_0', runtimeLogEntryLevel: 'Warning' } },
};
} else if (!body.templateOptions.dynamicOptions) {
body.templateOptions.dynamicOptions = { productionType: 'ATF_3_0', runtimeLogEntryLevel: 'Warning' };
// eslint-disable-next-line no-param-reassign
body.templateOptions = {
...body.templateOptions,
dynamicOptions: { productionType: 'ATF_3_0', runtimeLogEntryLevel: 'Warning' },
};
}
}
const response = await connectRequest<AppFolder>(this.connection, {
Expand Down
1 change: 1 addition & 0 deletions src/lib/analytics/query/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export default class QuerySvc {
ux.table(
records,
columnNames.reduce<Ux.Table.Columns<Row>>((all, name) => {
// eslint-disable-next-line no-param-reassign
all[name] = { header: name, get: (row) => convertRowValue(row[name]) };
return all;
}, {})
Expand Down
1 change: 1 addition & 0 deletions src/lib/analytics/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function generateTableColumns<R extends Ux.Table.Data>(
if (mutute) {
column = mutute(key, column);
}
// eslint-disable-next-line no-param-reassign
columns[key] = column;
return columns;
}, {});
Expand Down
1 change: 1 addition & 0 deletions test/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
rules: {
// Allow assert style expressions. i.e. expect(true).to.be.true
'no-unused-expressions': 'off',
'no-param-reassign': 'off',
'mocha/no-identical-title': 'error',

// Return types are defined by the source code. Allows for quick overwrites.
Expand Down

0 comments on commit faff3df

Please sign in to comment.