Skip to content

Commit 5571b7e

Browse files
committed
refactor: autofix lint after update
1 parent e8a2949 commit 5571b7e

File tree

64 files changed

+90
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+90
-103
lines changed

e2e/nx-plugin-e2e/tests/executor-cli.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function addTargetToWorkspace(
2727
...projectCfg,
2828
targets: {
2929
...projectCfg.targets,
30-
['code-pushup']: {
30+
'code-pushup': {
3131
executor: '@code-pushup/nx-plugin:cli',
3232
},
3333
},

e2e/nx-plugin-e2e/tests/plugin-create-nodes.e2e.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('nx-plugin', () => {
4747
expect(code).toBe(0);
4848

4949
expect(projectJson.targets).toEqual({
50-
['code-pushup--configuration']: {
50+
'code-pushup--configuration': {
5151
configurations: {},
5252
executor: 'nx:run-commands',
5353
options: {
@@ -99,7 +99,7 @@ describe('nx-plugin', () => {
9999
expect(code).toBe(0);
100100

101101
expect(projectJson.targets).toStrictEqual({
102-
['cp--configuration']: expect.any(Object),
102+
'cp--configuration': expect.any(Object),
103103
});
104104
});
105105

@@ -118,7 +118,7 @@ describe('nx-plugin', () => {
118118
expect(code).toBe(0);
119119

120120
expect(projectJson.targets).toStrictEqual({
121-
['code-pushup--configuration']: expect.objectContaining({
121+
'code-pushup--configuration': expect.objectContaining({
122122
options: {
123123
command: `nx g XYZ:configuration --skipTarget --targetName="code-pushup" --project="${project}"`,
124124
},
@@ -139,7 +139,7 @@ describe('nx-plugin', () => {
139139

140140
expect(projectJson.targets).toStrictEqual(
141141
expect.not.objectContaining({
142-
['code-pushup--configuration']: expect.any(Object),
142+
'code-pushup--configuration': expect.any(Object),
143143
}),
144144
);
145145
expect(projectJson.targets).toMatchSnapshot();
@@ -156,7 +156,7 @@ describe('nx-plugin', () => {
156156
expect(code).toBe(0);
157157

158158
expect(projectJson.targets).toStrictEqual({
159-
['code-pushup']: {
159+
'code-pushup': {
160160
configurations: {},
161161
executor: `@code-pushup/nx-plugin:cli`,
162162
options: {},
@@ -222,7 +222,7 @@ describe('nx-plugin', () => {
222222
expect(code).toBe(0);
223223

224224
expect(projectJson.targets).toStrictEqual({
225-
['code-pushup']: expect.objectContaining({
225+
'code-pushup': expect.objectContaining({
226226
executor: 'XYZ:cli',
227227
}),
228228
});
@@ -245,7 +245,7 @@ describe('nx-plugin', () => {
245245
expect(code).toBe(0);
246246

247247
expect(projectJson.targets).toStrictEqual({
248-
['code-pushup']: expect.objectContaining({
248+
'code-pushup': expect.objectContaining({
249249
executor: `@code-pushup/nx-plugin:cli`,
250250
options: {
251251
projectPrefix: 'cli',

e2e/plugin-coverage-e2e/tests/collect.e2e.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ describe('PLUGIN collect report with coverage-plugin NPM package', () => {
1919
const existingDir = join(testFileDir, 'existing-report');
2020

2121
const fixtureDir = join('e2e', nxTargetProject(), 'mocks', 'fixtures');
22+
2223
beforeAll(async () => {
2324
await cp(fixtureDir, testFileDir, { recursive: true });
2425
});
26+
2527
afterAll(async () => {
2628
await teardownTestFolder(basicDir);
2729
await teardownTestFolder(existingDir);
2830
});
31+
2932
afterEach(async () => {
3033
await teardownTestFolder(join(basicDir, '.code-pushup'));
3134
await teardownTestFolder(join(existingDir, '.code-pushup'));

e2e/plugin-lighthouse-e2e/tests/collect.e2e.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ describe('PLUGIN collect report with lighthouse-plugin NPM package', () => {
2222
const defaultSetupDir = join(testFileDir, 'default-setup');
2323

2424
const fixturesDir = join('e2e', nxTargetProject(), 'mocks/fixtures');
25+
2526
beforeAll(async () => {
2627
await cp(fixturesDir, testFileDir, { recursive: true });
2728
});

examples/plugins/src/lighthouse/src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-magic-numbers */
21
import type { Audit, CategoryRef, Group } from '@code-pushup/models';
32

43
export const LIGHTHOUSE_OUTPUT_FILE_DEFAULT = 'lighthouse-report.json';

examples/plugins/src/lighthouse/src/lighthouse.plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function lhrToAuditOutputs(lhr: Result): AuditOutputs {
121121
slug,
122122
score: score ?? 0, // score can be null
123123
value: Number.parseInt(value.toString(), 10),
124-
displayValue: displayValue,
124+
displayValue,
125125
};
126126

127127
const issues = lhrDetailsToIssueDetails(details);

examples/plugins/src/lighthouse/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getLighthouseCliArguments(
3333

3434
// handle chrome flags
3535
// eslint-disable-next-line functional/no-let
36-
let chromeFlags: Array<string> = [];
36+
let chromeFlags: string[] = [];
3737
if (headless) {
3838
chromeFlags = [...chromeFlags, `--headless=${headless}`];
3939
}
@@ -43,7 +43,7 @@ export function getLighthouseCliArguments(
4343
if (chromeFlags.length > 0) {
4444
argsObj = {
4545
...argsObj,
46-
['chrome-flags']: chromeFlags.join(' '),
46+
'chrome-flags': chromeFlags.join(' '),
4747
};
4848
}
4949

packages/ci/src/lib/cli/persist.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function persistedCliFiles<TFormat extends Format = Format>({
5656
...acc,
5757
[`${format}FilePath`]: path.join(rootDir, `${filename}.${format}`),
5858
}),
59-
// eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter, @typescript-eslint/consistent-type-assertions
59+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
6060
{} as PersistedCliFilesFormats,
6161
);
6262
const files = Object.values(filePaths);
@@ -86,7 +86,7 @@ export function findPersistedFiles({
8686
return acc;
8787
}
8888
return { ...acc, [`${format}FilePath`]: path.join(rootDir, matchedFile) };
89-
// eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter, @typescript-eslint/consistent-type-assertions
89+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
9090
}, {} as PersistedCliFilesFormats);
9191
return {
9292
...filePaths,

packages/cli/src/lib/history/history.options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function yargsHistoryOptionsDefinition(): Record<
3030
// https://git-scm.com/docs/git-log#Documentation/git-log.txt---max-countltnumbergt
3131
describe: 'Number of steps in history',
3232
type: 'number',
33-
// eslint-disable-next-line no-magic-numbers
33+
3434
default: 5,
3535
},
3636
from: {

packages/cli/src/lib/implementation/core-config.model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { CoreConfig, Format, UploadConfig } from '@code-pushup/models';
22

3-
/* eslint-disable @typescript-eslint/naming-convention */
43
export type PersistConfigCliOptions = {
54
'persist.outputDir'?: string;
65
'persist.filename'?: string;
@@ -13,7 +12,6 @@ export type UploadConfigCliOptions = {
1312
'upload.apiKey'?: string;
1413
'upload.server'?: string;
1514
};
16-
/* eslint-enable @typescript-eslint/naming-convention */
1715

1816
export type ConfigCliOptions = {
1917
config?: string;

0 commit comments

Comments
 (0)