Skip to content

Commit c2ec88c

Browse files
committed
fix(nx-plugin): fix lint
1 parent 233cfd7 commit c2ec88c

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = tseslint.config(
1717
rules: {
1818
// Nx plugins don't yet support ESM: https://github.com/nrwl/nx/issues/15682
1919
'unicorn/prefer-module': 'off',
20+
'n/file-extension-in-import': 'off',
2021
// used instead of verbatimModuleSyntax tsconfig flag (requires ESM)
2122
'@typescript-eslint/consistent-type-imports': [
2223
'warn',

packages/nx-plugin/src/executors/cli/executor.unit.test.ts

Whitespace-only changes.

packages/nx-plugin/src/plugin/plugin.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
import {
1+
import type {
22
CreateNodes,
33
CreateNodesContext,
4-
CreateNodesContextV2,
54
CreateNodesResult,
6-
CreateNodesV2,
7-
createNodesFromFiles,
85
} from '@nx/devkit';
9-
import { dirname } from 'path';
10-
import {
11-
CODE_PUSHUP_CONFIG_REGEX,
12-
PROJECT_JSON_FILE_NAME,
13-
} from '../internal/constants';
6+
import { PROJECT_JSON_FILE_NAME } from '../internal/constants';
147
import { createTargets } from './target/targets';
158
import type { CreateNodesOptions } from './types';
16-
import {
17-
normalizedCreateNodesContext,
18-
normalizedCreateNodesV2Context,
19-
} from './utils';
9+
import { normalizedCreateNodesContext } from './utils';
2010

2111
// name has to be "createNodes" to get picked up by Nx <v20
2212
export const createNodes: CreateNodes = [

packages/nx-plugin/src/plugin/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
} from '@nx/devkit';
66
import type { WithRequired } from '@code-pushup/utils';
77
import type { DynamicTargetOptions } from '../internal/types';
8-
import { CreateTargetsOptions } from './target/targets';
8+
import type { CreateTargetsOptions } from './target/targets';
99

1010
export type ProjectPrefixOptions = {
1111
projectPrefix?: string;

0 commit comments

Comments
 (0)