Skip to content

Commit dd678de

Browse files
committed
refactor(nx-plugin): target specific deprecation with ignore
1 parent 497ea43 commit dd678de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* eslint-disable deprecation/deprecation,import/no-deprecated */
21
import type {
2+
// eslint-disable-next-line import/no-deprecated
33
CreateNodes,
44
CreateNodesContext,
55
CreateNodesResult,
@@ -10,6 +10,7 @@ import type { CreateNodesOptions } from './types.js';
1010
import { normalizedCreateNodesContext } from './utils.js';
1111

1212
// name has to be "createNodes" to get picked up by Nx
13+
// eslint-disable-next-line import/no-deprecated,deprecation/deprecation
1314
export const createNodes: CreateNodes = [
1415
`**/${PROJECT_JSON_FILE_NAME}`,
1516
async (

testing/test-nx-utils/src/lib/utils/nx-plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* eslint-disable deprecation/deprecation,import/no-deprecated */
21
import type {
2+
// eslint-disable-next-line import/no-deprecated
33
CreateNodes,
44
CreateNodesContext,
55
CreateNodesContextV2,
@@ -33,6 +33,7 @@ export async function invokeCreateNodesOnVirtualFiles<
3333
T extends Record<string, unknown> | undefined,
3434
>(
3535
// FIXME: refactor this to use the V2 api & remove the eslint disable on the whole file
36+
// eslint-disable-next-line import/no-deprecated,deprecation/deprecation
3637
createNodes: CreateNodes,
3738
context: CreateNodesContext,
3839
createNodeOptions: T,

0 commit comments

Comments
 (0)