@nx/eslint-plugin 23.0.0-beta.2 → 23.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/{angular.d.ts → dist/angular.d.ts} +0 -1
  2. package/{nx.d.ts → dist/nx.d.ts} +9 -4
  3. package/{react.d.ts → dist/react.d.ts} +0 -1
  4. package/{src → dist/src}/configs/angular-template.d.ts +0 -1
  5. package/{src → dist/src}/configs/angular.d.ts +0 -1
  6. package/{src → dist/src}/configs/javascript.d.ts +0 -1
  7. package/{src → dist/src}/configs/react-base.d.ts +0 -1
  8. package/{src → dist/src}/configs/react-jsx.d.ts +0 -1
  9. package/{src → dist/src}/configs/react-tmp.d.ts +0 -1
  10. package/{src → dist/src}/configs/react-typescript.d.ts +0 -1
  11. package/{src → dist/src}/configs/typescript.d.ts +0 -1
  12. package/{src → dist/src}/constants.d.ts +0 -1
  13. package/{src → dist/src}/flat-configs/angular-template.d.ts +0 -1
  14. package/{src → dist/src}/flat-configs/angular.d.ts +0 -1
  15. package/{src → dist/src}/flat-configs/base.d.ts +0 -1
  16. package/{src → dist/src}/flat-configs/javascript.d.ts +0 -1
  17. package/{src → dist/src}/flat-configs/react-base.d.ts +0 -1
  18. package/{src → dist/src}/flat-configs/react-jsx.d.ts +0 -1
  19. package/{src → dist/src}/flat-configs/react-tmp.d.ts +0 -1
  20. package/{src → dist/src}/flat-configs/react-typescript.d.ts +0 -1
  21. package/{src → dist/src}/flat-configs/typescript.d.ts +0 -1
  22. package/{src → dist/src}/index.d.ts +18 -7
  23. package/{src → dist/src}/resolve-workspace-rules.d.ts +0 -1
  24. package/{src → dist/src}/resolve-workspace-rules.js +68 -21
  25. package/{src → dist/src}/rules/dependency-checks.d.ts +3 -2
  26. package/{src → dist/src}/rules/dependency-checks.js +19 -6
  27. package/{src → dist/src}/rules/enforce-module-boundaries.d.ts +3 -2
  28. package/{src → dist/src}/rules/enforce-module-boundaries.js +1 -1
  29. package/{src → dist/src}/rules/nx-plugin-checks.d.ts +10 -11
  30. package/{src → dist/src}/rules/nx-plugin-checks.js +79 -77
  31. package/{src → dist/src}/utils/ast-utils.d.ts +0 -1
  32. package/{src → dist/src}/utils/ast-utils.js +5 -2
  33. package/{src → dist/src}/utils/config-utils.d.ts +0 -1
  34. package/{src → dist/src}/utils/graph-utils.d.ts +0 -1
  35. package/{src → dist/src}/utils/package-json-utils.d.ts +0 -1
  36. package/{src → dist/src}/utils/project-graph-utils.d.ts +1 -2
  37. package/{src → dist/src}/utils/project-graph-utils.js +1 -1
  38. package/{src → dist/src}/utils/runtime-lint-utils.d.ts +1 -2
  39. package/{src → dist/src}/utils/runtime-lint-utils.js +1 -2
  40. package/{typescript.d.ts → dist/typescript.d.ts} +0 -1
  41. package/package.json +68 -14
  42. package/angular.d.ts.map +0 -1
  43. package/nx.d.ts.map +0 -1
  44. package/react.d.ts.map +0 -1
  45. package/src/configs/angular-template.d.ts.map +0 -1
  46. package/src/configs/angular.d.ts.map +0 -1
  47. package/src/configs/javascript.d.ts.map +0 -1
  48. package/src/configs/react-base.d.ts.map +0 -1
  49. package/src/configs/react-jsx.d.ts.map +0 -1
  50. package/src/configs/react-tmp.d.ts.map +0 -1
  51. package/src/configs/react-typescript.d.ts.map +0 -1
  52. package/src/configs/typescript.d.ts.map +0 -1
  53. package/src/constants.d.ts.map +0 -1
  54. package/src/flat-configs/angular-template.d.ts.map +0 -1
  55. package/src/flat-configs/angular.d.ts.map +0 -1
  56. package/src/flat-configs/base.d.ts.map +0 -1
  57. package/src/flat-configs/javascript.d.ts.map +0 -1
  58. package/src/flat-configs/react-base.d.ts.map +0 -1
  59. package/src/flat-configs/react-jsx.d.ts.map +0 -1
  60. package/src/flat-configs/react-tmp.d.ts.map +0 -1
  61. package/src/flat-configs/react-typescript.d.ts.map +0 -1
  62. package/src/flat-configs/typescript.d.ts.map +0 -1
  63. package/src/index.d.ts.map +0 -1
  64. package/src/resolve-workspace-rules.d.ts.map +0 -1
  65. package/src/rules/dependency-checks.d.ts.map +0 -1
  66. package/src/rules/enforce-module-boundaries.d.ts.map +0 -1
  67. package/src/rules/nx-plugin-checks.d.ts.map +0 -1
  68. package/src/utils/ast-utils.d.ts.map +0 -1
  69. package/src/utils/config-utils.d.ts.map +0 -1
  70. package/src/utils/graph-utils.d.ts.map +0 -1
  71. package/src/utils/package-json-utils.d.ts.map +0 -1
  72. package/src/utils/project-graph-utils.d.ts.map +0 -1
  73. package/src/utils/runtime-lint-utils.d.ts.map +0 -1
  74. package/typescript.d.ts.map +0 -1
  75. /package/{LICENSE → dist/LICENSE} +0 -0
  76. /package/{angular.js → dist/angular.js} +0 -0
  77. /package/{nx.js → dist/nx.js} +0 -0
  78. /package/{react.js → dist/react.js} +0 -0
  79. /package/{src → dist/src}/configs/angular-template.js +0 -0
  80. /package/{src → dist/src}/configs/angular.js +0 -0
  81. /package/{src → dist/src}/configs/javascript.js +0 -0
  82. /package/{src → dist/src}/configs/react-base.js +0 -0
  83. /package/{src → dist/src}/configs/react-jsx.js +0 -0
  84. /package/{src → dist/src}/configs/react-tmp.js +0 -0
  85. /package/{src → dist/src}/configs/react-typescript.js +0 -0
  86. /package/{src → dist/src}/configs/typescript.js +0 -0
  87. /package/{src → dist/src}/constants.js +0 -0
  88. /package/{src → dist/src}/flat-configs/angular-template.js +0 -0
  89. /package/{src → dist/src}/flat-configs/angular.js +0 -0
  90. /package/{src → dist/src}/flat-configs/base.js +0 -0
  91. /package/{src → dist/src}/flat-configs/javascript.js +0 -0
  92. /package/{src → dist/src}/flat-configs/react-base.js +0 -0
  93. /package/{src → dist/src}/flat-configs/react-jsx.js +0 -0
  94. /package/{src → dist/src}/flat-configs/react-tmp.js +0 -0
  95. /package/{src → dist/src}/flat-configs/react-typescript.js +0 -0
  96. /package/{src → dist/src}/flat-configs/typescript.js +0 -0
  97. /package/{src → dist/src}/index.js +0 -0
  98. /package/{src → dist/src}/utils/config-utils.js +0 -0
  99. /package/{src → dist/src}/utils/graph-utils.js +0 -0
  100. /package/{src → dist/src}/utils/package-json-utils.js +0 -0
  101. /package/{typescript.js → dist/typescript.js} +0 -0
@@ -5,6 +5,7 @@ exports.checkCollectionFileNode = checkCollectionFileNode;
5
5
  exports.checkCollectionNode = checkCollectionNode;
6
6
  exports.validateEntry = validateEntry;
7
7
  exports.validateImplementationNode = validateImplementationNode;
8
+ exports.validatePromptNode = validatePromptNode;
8
9
  exports.validatePackageGroup = validatePackageGroup;
9
10
  exports.validateVersionJsonExpression = validateVersionJsonExpression;
10
11
  exports.checkIfIdentifierIsFunction = checkIfIdentifierIsFunction;
@@ -13,8 +14,8 @@ const utils_1 = require("@typescript-eslint/utils");
13
14
  const fs_1 = require("fs");
14
15
  const tsquery_1 = require("@phenomnomnominal/tsquery");
15
16
  const devkit_1 = require("@nx/devkit");
16
- const js_1 = require("@nx/js");
17
- const internal_1 = require("@nx/js/src/internal");
17
+ const internal_1 = require("@nx/js/internal");
18
+ const internal_2 = require("@nx/devkit/internal");
18
19
  const path = tslib_1.__importStar(require("path"));
19
20
  const semver_1 = require("semver");
20
21
  const project_graph_utils_1 = require("../utils/project-graph-utils");
@@ -79,6 +80,7 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => ``)({
79
80
  valueShouldBeObject: '{{ key }} should be an object',
80
81
  missingRequiredSchema: '{{ key }}: Missing required property - `schema`',
81
82
  missingImplementation: '{{ key }}: Missing required property - `implementation`',
83
+ invalidPromptPath: '{{ key }}: Prompt path should point to a valid file',
82
84
  missingVersion: '{{ key }}: Missing required property - `version`',
83
85
  },
84
86
  },
@@ -89,6 +91,10 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => ``)({
89
91
  return {};
90
92
  }
91
93
  const { projectGraph, projectRootMappings } = (0, project_graph_utils_1.readProjectGraph)(exports.RULE_NAME);
94
+ const projects = {};
95
+ for (const [projectName, node] of Object.entries(projectGraph.nodes)) {
96
+ projects[projectName] = node.data;
97
+ }
92
98
  const sourceFilePath = (0, runtime_lint_utils_1.getSourceFilePath)(context.filename ?? context.getFilename(), devkit_1.workspaceRoot);
93
99
  const sourceProject = (0, runtime_lint_utils_1.findProject)(projectGraph, projectRootMappings, sourceFilePath);
94
100
  // If source is not part of an nx workspace, return.
@@ -101,20 +107,16 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => ``)({
101
107
  if (![generatorsJson, executorsJson, migrationsJson, packageJson].includes(sourceFilePath)) {
102
108
  return {};
103
109
  }
104
- if (!global.tsProjectRegistered) {
105
- (0, internal_1.registerTsProject)((0, js_1.getRootTsConfigPath)());
106
- global.tsProjectRegistered = true;
107
- }
108
110
  return {
109
111
  ['JSONExpressionStatement > JSONObjectExpression'](node) {
110
112
  if (sourceFilePath === generatorsJson) {
111
- checkCollectionFileNode(node, 'generator', context, options);
113
+ checkCollectionFileNode(node, 'generator', context, projects);
112
114
  }
113
115
  else if (sourceFilePath === migrationsJson) {
114
- checkCollectionFileNode(node, 'migration', context, options);
116
+ checkCollectionFileNode(node, 'migration', context, projects);
115
117
  }
116
118
  else if (sourceFilePath === executorsJson) {
117
- checkCollectionFileNode(node, 'executor', context, options);
119
+ checkCollectionFileNode(node, 'executor', context, projects);
118
120
  }
119
121
  else if (sourceFilePath === packageJson) {
120
122
  validatePackageGroup(node, context);
@@ -124,29 +126,7 @@ exports.default = utils_1.ESLintUtils.RuleCreator(() => ``)({
124
126
  },
125
127
  });
126
128
  function normalizeOptions(sourceProject, options) {
127
- let rootDir;
128
- let outDir;
129
129
  const base = { ...DEFAULT_OPTIONS, ...options };
130
- let runtimeTsConfig;
131
- if (sourceProject.data.targets?.build?.executor === '@nx/js:tsc') {
132
- rootDir = sourceProject.data.targets.build.options.rootDir;
133
- outDir = sourceProject.data.targets.build.options.outputPath;
134
- }
135
- if (!rootDir && !outDir) {
136
- try {
137
- runtimeTsConfig = require.resolve(path.join(devkit_1.workspaceRoot, sourceProject.data.root, base.tsConfig));
138
- const tsConfig = (0, devkit_1.readJsonFile)(runtimeTsConfig);
139
- rootDir ??= tsConfig.compilerOptions?.rootDir
140
- ? path.join(sourceProject.data.root, tsConfig.compilerOptions.rootDir)
141
- : undefined;
142
- outDir ??= tsConfig.compilerOptions?.outDir
143
- ? path.join(sourceProject.data.root, tsConfig.compilerOptions.outDir)
144
- : undefined;
145
- }
146
- catch {
147
- // nothing
148
- }
149
- }
150
130
  const pathPrefix = sourceProject.data.root !== '.' ? `${sourceProject.data.root}/` : '';
151
131
  return {
152
132
  ...base,
@@ -162,11 +142,9 @@ function normalizeOptions(sourceProject, options) {
162
142
  packageJson: base.packageJson
163
143
  ? `${pathPrefix}${base.packageJson}`
164
144
  : undefined,
165
- rootDir,
166
- outDir,
167
145
  };
168
146
  }
169
- function checkCollectionFileNode(baseNode, mode, context, options) {
147
+ function checkCollectionFileNode(baseNode, mode, context, projects) {
170
148
  const schematicsRootNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' && x.key.value === 'schematics');
171
149
  const generatorsRootNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' && x.key.value === 'generators');
172
150
  const executorsRootNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' && x.key.value === 'executors');
@@ -200,11 +178,11 @@ function checkCollectionFileNode(baseNode, mode, context, options) {
200
178
  });
201
179
  }
202
180
  else {
203
- checkCollectionNode(collectionNode.value, mode, context, options);
181
+ checkCollectionNode(collectionNode.value, mode, context, projects);
204
182
  }
205
183
  }
206
184
  }
207
- function checkCollectionNode(baseNode, mode, context, options) {
185
+ function checkCollectionNode(baseNode, mode, context, projects) {
208
186
  const entries = baseNode.properties;
209
187
  for (const entryNode of entries) {
210
188
  if (entryNode.value.type !== 'JSONObjectExpression') {
@@ -215,11 +193,11 @@ function checkCollectionNode(baseNode, mode, context, options) {
215
193
  });
216
194
  }
217
195
  else if (entryNode.key.type === 'JSONLiteral') {
218
- validateEntry(entryNode.value, entryNode.key.value.toString(), mode, context, options);
196
+ validateEntry(entryNode.value, entryNode.key.value.toString(), mode, context, projects);
219
197
  }
220
198
  }
221
199
  }
222
- function validateEntry(baseNode, key, mode, context, options) {
200
+ function validateEntry(baseNode, key, mode, context, projects) {
223
201
  const schemaNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' && x.key.value === 'schema');
224
202
  if (mode !== 'migration' && !schemaNode) {
225
203
  context.report({
@@ -239,33 +217,26 @@ function validateEntry(baseNode, key, mode, context, options) {
239
217
  });
240
218
  }
241
219
  else {
242
- let validJsonFound = false;
243
- const schemaFilePath = path.join(path.dirname(context.filename ?? context.getFilename()), schemaNode.value.value);
244
220
  try {
245
- (0, devkit_1.readJsonFile)(schemaFilePath);
246
- validJsonFound = true;
221
+ (0, internal_2.resolveSchema)(schemaNode.value.value, path.dirname(context.filename ?? context.getFilename()), context.filename ?? context.getFilename(), projects);
247
222
  }
248
- catch {
249
- try {
250
- // Try to map back to source, which will be the case with TS solution setup.
251
- (0, devkit_1.readJsonFile)(schemaFilePath.replace(options.outDir, options.rootDir));
252
- validJsonFound = true;
223
+ catch (e) {
224
+ if (e instanceof internal_2.SchemaResolutionError) {
225
+ context.report({
226
+ messageId: 'invalidSchemaPath',
227
+ node: schemaNode.value,
228
+ });
253
229
  }
254
- catch {
255
- // nothing, will be reported below
230
+ else {
231
+ throw e;
256
232
  }
257
233
  }
258
- if (!validJsonFound) {
259
- context.report({
260
- messageId: 'invalidSchemaPath',
261
- node: schemaNode.value,
262
- });
263
- }
264
234
  }
265
235
  }
266
236
  const implementationNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' &&
267
237
  (x.key.value === 'implementation' || x.key.value === 'factory'));
268
- if (!implementationNode) {
238
+ const promptNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' && x.key.value === 'prompt');
239
+ if (!implementationNode && !(mode === 'migration' && promptNode)) {
269
240
  context.report({
270
241
  messageId: 'missingImplementation',
271
242
  data: {
@@ -274,8 +245,11 @@ function validateEntry(baseNode, key, mode, context, options) {
274
245
  node: baseNode,
275
246
  });
276
247
  }
277
- else {
278
- validateImplementationNode(implementationNode, key, context, options);
248
+ else if (implementationNode) {
249
+ validateImplementationNode(implementationNode, key, context, projects);
250
+ }
251
+ if (mode === 'migration' && promptNode) {
252
+ validatePromptNode(promptNode, key, context);
279
253
  }
280
254
  if (mode === 'migration') {
281
255
  const versionNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' && x.key.value === 'version');
@@ -312,7 +286,7 @@ function validateEntry(baseNode, key, mode, context, options) {
312
286
  }
313
287
  }
314
288
  }
315
- function validateImplementationNode(implementationNode, key, context, options) {
289
+ function validateImplementationNode(implementationNode, key, context, projects) {
316
290
  if (implementationNode.value.type !== 'JSONLiteral' ||
317
291
  typeof implementationNode.value.value !== 'string') {
318
292
  context.report({
@@ -326,28 +300,24 @@ function validateImplementationNode(implementationNode, key, context, options) {
326
300
  else {
327
301
  const [implementationPath, identifier] = implementationNode.value.value.split('#');
328
302
  let resolvedPath;
329
- const modulePath = path.join(path.dirname(context.filename ?? context.getFilename()), implementationPath);
330
303
  try {
331
- resolvedPath = require.resolve(modulePath);
304
+ resolvedPath = (0, internal_2.resolveImplementation)(implementationPath, path.dirname(context.filename ?? context.getFilename()), context.filename ?? context.getFilename(), projects);
332
305
  }
333
- catch {
334
- try {
335
- resolvedPath = require.resolve(modulePath.replace(options.outDir, options.rootDir));
306
+ catch (e) {
307
+ if (e instanceof internal_2.ImplementationResolutionError) {
308
+ context.report({
309
+ messageId: 'invalidImplementationPath',
310
+ data: {
311
+ key,
312
+ },
313
+ node: implementationNode.value,
314
+ });
336
315
  }
337
- catch {
338
- // nothing, will be reported below
316
+ else {
317
+ throw e;
339
318
  }
340
319
  }
341
- if (!resolvedPath) {
342
- context.report({
343
- messageId: 'invalidImplementationPath',
344
- data: {
345
- key,
346
- },
347
- node: implementationNode.value,
348
- });
349
- }
350
- if (identifier) {
320
+ if (resolvedPath && identifier) {
351
321
  try {
352
322
  if (!checkIfIdentifierIsFunction(resolvedPath, identifier)) {
353
323
  context.report({
@@ -373,6 +343,36 @@ function validateImplementationNode(implementationNode, key, context, options) {
373
343
  }
374
344
  }
375
345
  }
346
+ function validatePromptNode(promptNode, key, context) {
347
+ if (promptNode.value.type !== 'JSONLiteral' ||
348
+ typeof promptNode.value.value !== 'string') {
349
+ context.report({
350
+ messageId: 'invalidPromptPath',
351
+ data: {
352
+ key,
353
+ },
354
+ node: promptNode.value,
355
+ });
356
+ return;
357
+ }
358
+ try {
359
+ (0, internal_2.resolvePrompt)(promptNode.value.value, path.dirname(context.filename ?? context.getFilename()));
360
+ }
361
+ catch (e) {
362
+ if (e instanceof internal_2.PromptResolutionError) {
363
+ context.report({
364
+ messageId: 'invalidPromptPath',
365
+ data: {
366
+ key,
367
+ },
368
+ node: promptNode.value,
369
+ });
370
+ }
371
+ else {
372
+ throw e;
373
+ }
374
+ }
375
+ }
376
376
  function validatePackageGroup(baseNode, context) {
377
377
  const migrationsNode = baseNode.properties.find((x) => x.key.type === 'JSONLiteral' &&
378
378
  x.value.type === 'JSONObjectExpression' &&
@@ -452,6 +452,8 @@ function checkIfIdentifierIsFunction(filePath, identifier) {
452
452
  // ignore
453
453
  }
454
454
  // Fallback to require()
455
- const m = require(filePath);
455
+ const m = /\.[cm]?ts$/.test(filePath)
456
+ ? (0, internal_1.loadTsFile)(filePath)
457
+ : (0, internal_1.requireWithTsconfigFallback)(filePath);
456
458
  return identifier in m && typeof m[identifier] === 'function';
457
459
  }
@@ -10,4 +10,3 @@ export declare function getBarrelEntryPointProjectNode(projectNode: ProjectGraph
10
10
  importScope: string;
11
11
  }[] | null;
12
12
  export declare function getRelativeImportPath(exportedMember: any, filePath: any): any;
13
- //# sourceMappingURL=ast-utils.d.ts.map
@@ -5,7 +5,7 @@ exports.getBarrelEntryPointProjectNode = getBarrelEntryPointProjectNode;
5
5
  exports.getRelativeImportPath = getRelativeImportPath;
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const js_1 = require("@nx/js");
8
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
+ const internal_1 = require("@nx/js/internal");
9
9
  const type_utils_1 = require("@typescript-eslint/type-utils");
10
10
  const fs_1 = require("fs");
11
11
  const path_1 = require("path");
@@ -61,7 +61,7 @@ function getBarrelEntryPointProjectNode(projectNode) {
61
61
  const sourceFolderPaths = tsConfigBase.compilerOptions.paths[entry];
62
62
  return sourceFolderPaths.some((sourceFolderPath) => {
63
63
  const normalizedPath = sourceFolderPath.replace(/^\.\//, '');
64
- const sourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(projectNode.data);
64
+ const sourceRoot = (0, internal_1.getProjectSourceRoot)(projectNode.data);
65
65
  return (normalizedPath === sourceRoot ||
66
66
  normalizedPath.indexOf(`${sourceRoot}/`) === 0);
67
67
  });
@@ -91,6 +91,9 @@ function getRelativeImportPath(exportedMember, filePath) {
91
91
  if (ext) {
92
92
  filePath += ext;
93
93
  }
94
+ else {
95
+ return;
96
+ }
94
97
  }
95
98
  else if (status.isDirectory()) {
96
99
  const file = (0, fs_1.readdirSync)(filePath).find((file) => /^index\.[jt]sx?$/.exec(file));
@@ -4,4 +4,3 @@
4
4
  * @returns
5
5
  */
6
6
  export declare function packageExists(name: string): boolean;
7
- //# sourceMappingURL=config-utils.d.ts.map
@@ -6,4 +6,3 @@ export declare function circularPathHasPair(circularPath: ProjectGraphProjectNod
6
6
  export declare function findFilesInCircularPath(projectFileMap: ProjectFileMap, circularPath: ProjectGraphProjectNode[]): Array<string[]>;
7
7
  export declare function findFilesWithDynamicImports(projectFileMap: ProjectFileMap, sourceProjectName: string, targetProjectName: string): FileData[];
8
8
  export declare function expandIgnoredCircularDependencies(ignoredCircularDependencies: Array<[string, string]>, projectGraph: ProjectGraph): Map<string, Set<string>>;
9
- //# sourceMappingURL=graph-utils.d.ts.map
@@ -2,4 +2,3 @@ import type { PackageJson } from 'nx/src/utils/package-json';
2
2
  export declare function getAllDependencies(packageJson: PackageJson): Record<string, string>;
3
3
  export declare function getProductionDependencies(packageJson: PackageJson): Record<string, string>;
4
4
  export declare function getPackageJson(path: string): PackageJson;
5
- //# sourceMappingURL=package-json-utils.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ProjectFileMap, ProjectGraph } from '@nx/devkit';
2
2
  import { ProjectRootMappings } from 'nx/src/project-graph/utils/find-project-for-path';
3
- import { TargetProjectLocator } from '@nx/js/src/internal';
3
+ import { TargetProjectLocator } from '@nx/js/internal';
4
4
  export declare function ensureGlobalProjectGraph(ruleName: string): void;
5
5
  export declare function readProjectGraph(ruleName: string): {
6
6
  projectGraph: ProjectGraph;
@@ -8,4 +8,3 @@ export declare function readProjectGraph(ruleName: string): {
8
8
  projectRootMappings: ProjectRootMappings;
9
9
  targetProjectLocator: TargetProjectLocator;
10
10
  };
11
- //# sourceMappingURL=project-graph-utils.d.ts.map
@@ -7,7 +7,7 @@ const runtime_lint_utils_1 = require("./runtime-lint-utils");
7
7
  const chalk = require("chalk");
8
8
  const find_project_for_path_1 = require("nx/src/project-graph/utils/find-project-for-path");
9
9
  const configuration_1 = require("nx/src/config/configuration");
10
- const internal_1 = require("@nx/js/src/internal");
10
+ const internal_1 = require("@nx/js/internal");
11
11
  const nx_deps_cache_1 = require("nx/src/project-graph/nx-deps-cache");
12
12
  function ensureGlobalProjectGraph(ruleName) {
13
13
  /**
@@ -1,5 +1,5 @@
1
1
  import { ProjectGraph, ProjectGraphDependency, ProjectGraphExternalNode, ProjectGraphProjectNode } from '@nx/devkit';
2
- import { TargetProjectLocator } from '@nx/js/src/internal';
2
+ import { TargetProjectLocator } from '@nx/js/internal';
3
3
  import { TSESLint, TSESTree } from '@typescript-eslint/utils';
4
4
  import { ProjectRootMappings } from 'nx/src/project-graph/utils/find-project-for-path';
5
5
  export type Deps = {
@@ -99,4 +99,3 @@ export declare function appIsMFERemote(project: ProjectGraphProjectNode): boolea
99
99
  */
100
100
  export declare function getParserServices(context: Readonly<TSESLint.RuleContext<any, any>>): any;
101
101
  export {};
102
- //# sourceMappingURL=runtime-lint-utils.d.ts.map
@@ -28,7 +28,6 @@ exports.getParserServices = getParserServices;
28
28
  const tslib_1 = require("tslib");
29
29
  const devkit_1 = require("@nx/devkit");
30
30
  const js_1 = require("@nx/js");
31
- const internal_1 = require("@nx/js/src/internal");
32
31
  const utils_1 = require("@typescript-eslint/utils");
33
32
  const path = tslib_1.__importStar(require("node:path"));
34
33
  const find_project_for_path_1 = require("nx/src/project-graph/utils/find-project-for-path");
@@ -335,7 +334,7 @@ function belongsToDifferentEntryPoint(importExpr, filePath, projectRoot) {
335
334
  return importEntryPoint !== srcEntryPoint;
336
335
  }
337
336
  function getSecondaryEntryPointPath(importExpr, filePath, projectRoot) {
338
- const resolvedImportFile = (0, internal_1.resolveModuleByImport)(importExpr, filePath, // not strictly necessary, but speeds up resolution
337
+ const resolvedImportFile = (0, js_1.resolveModuleByImport)(importExpr, filePath, // not strictly necessary, but speeds up resolution
339
338
  path.join(devkit_1.workspaceRoot, (0, js_1.getRootTsConfigFileName)()));
340
339
  if (!resolvedImportFile) {
341
340
  return undefined;
@@ -4,4 +4,3 @@ declare const plugin: {
4
4
  rules: {};
5
5
  };
6
6
  export default plugin;
7
- //# sourceMappingURL=typescript.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@nx/eslint-plugin",
3
- "version": "23.0.0-beta.2",
3
+ "version": "23.0.0-beta.21",
4
4
  "private": false,
5
+ "type": "commonjs",
6
+ "files": [
7
+ "dist",
8
+ "!dist/tsconfig.tsbuildinfo",
9
+ "!dist/spec",
10
+ "migrations.json"
11
+ ],
5
12
  "description": "The eslint-plugin package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
6
13
  "repository": {
7
14
  "type": "git",
@@ -16,44 +23,91 @@
16
23
  "CLI",
17
24
  "Testing"
18
25
  ],
19
- "main": "./src/index.js",
20
- "type": "commonjs",
21
- "types": "./src/index.d.ts",
26
+ "main": "./dist/src/index.js",
27
+ "types": "./dist/src/index.d.ts",
28
+ "typesVersions": {
29
+ "*": {
30
+ "angular": [
31
+ "dist/angular.d.ts"
32
+ ],
33
+ "nx": [
34
+ "dist/nx.d.ts"
35
+ ],
36
+ "react": [
37
+ "dist/react.d.ts"
38
+ ],
39
+ "typescript": [
40
+ "dist/typescript.d.ts"
41
+ ]
42
+ }
43
+ },
22
44
  "author": "Victor Savkin",
23
45
  "license": "MIT",
24
46
  "bugs": {
25
47
  "url": "https://github.com/nrwl/nx/issues"
26
48
  },
27
49
  "homepage": "https://nx.dev",
50
+ "nx-migrations": {
51
+ "migrations": "./migrations.json"
52
+ },
53
+ "exports": {
54
+ ".": {
55
+ "@nx/nx-source": "./src/index.ts",
56
+ "types": "./dist/src/index.d.ts",
57
+ "default": "./dist/src/index.js"
58
+ },
59
+ "./package.json": "./package.json",
60
+ "./migrations.json": "./migrations.json",
61
+ "./angular": {
62
+ "@nx/nx-source": "./angular.ts",
63
+ "types": "./dist/angular.d.ts",
64
+ "default": "./dist/angular.js"
65
+ },
66
+ "./nx": {
67
+ "@nx/nx-source": "./nx.ts",
68
+ "types": "./dist/nx.d.ts",
69
+ "default": "./dist/nx.js"
70
+ },
71
+ "./react": {
72
+ "@nx/nx-source": "./react.ts",
73
+ "types": "./dist/react.d.ts",
74
+ "default": "./dist/react.js"
75
+ },
76
+ "./typescript": {
77
+ "@nx/nx-source": "./typescript.ts",
78
+ "types": "./dist/typescript.d.ts",
79
+ "default": "./dist/typescript.js"
80
+ }
81
+ },
28
82
  "peerDependencies": {
29
- "@typescript-eslint/parser": "^6.13.2 || ^7.0.0 || ^8.0.0",
83
+ "@typescript-eslint/parser": "^8.0.0",
30
84
  "eslint-config-prettier": "^10.0.0"
31
85
  },
32
86
  "peerDependenciesMeta": {
87
+ "@typescript-eslint/parser": {
88
+ "optional": true
89
+ },
33
90
  "eslint-config-prettier": {
34
91
  "optional": true
35
92
  }
36
93
  },
37
94
  "dependencies": {
38
- "@nx/devkit": "23.0.0-beta.2",
39
- "@nx/js": "23.0.0-beta.2",
40
- "@phenomnomnominal/tsquery": "~6.1.4",
95
+ "@phenomnomnominal/tsquery": "~6.2.0",
41
96
  "@typescript-eslint/type-utils": "^8.0.0",
42
97
  "@typescript-eslint/utils": "^8.0.0",
43
98
  "chalk": "^4.1.0",
44
99
  "confusing-browser-globals": "^1.0.9",
45
- "globals": "^15.9.0",
100
+ "globals": "^17.0.0",
46
101
  "jsonc-eslint-parser": "^2.1.0",
47
102
  "semver": "^7.6.3",
48
- "tslib": "^2.3.0"
103
+ "tslib": "^2.3.0",
104
+ "@nx/js": "23.0.0-beta.21",
105
+ "@nx/devkit": "23.0.0-beta.21"
49
106
  },
50
107
  "devDependencies": {
51
- "nx": "23.0.0-beta.2"
108
+ "nx": "23.0.0-beta.21"
52
109
  },
53
110
  "publishConfig": {
54
111
  "access": "public"
55
- },
56
- "nx-migrations": {
57
- "migrations": "./migrations.json"
58
112
  }
59
113
  }
package/angular.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/angular.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,MAAM;aAIL,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;CAEjC,CAAC;AAGF,eAAe,MAAM,CAAC"}
package/nx.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"nx.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/nx.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,MAAM;;;;;;;CASX,CAAC;AAGF,eAAe,MAAM,CAAC"}
package/react.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,QAAA,MAAM,MAAM;aAML,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;CAEjC,CAAC;AAGF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/angular-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;;;;;;AACH,wBAIE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/angular.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;AACH,wBAaE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/javascript.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;QAuBC;;;;WAIG;;QAGH;;;;;;;;WAQG;;;;;;;;;;QAUH;;;;;WAKG;;;;AApDP,wBAuDE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-base.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/react-base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;GAGG;;;;;;;;;;;QAWC;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0GH;;;WAGG;;;;;;AA1HP,wBA+HE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/react-jsx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;;;;;;;;;;QAMC;;;WAGG;;;;;;;;;;;;;;;;;;;;;;QAkBH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;AA7BP,wBAoDE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-tmp.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/react-tmp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;AACH,wBAME"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/react-typescript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/configs/typescript.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;;;;;;;;;;;;;;;QAqBC;;;;;;;;WAQG;;;;;;;;;;QAUH;;;;;WAKG;;;;AA3CP,wBA8CE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-plugin/src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,QAA4C,CAAC;AAE9E;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/angular-template.ts"],"names":[],"mappings":"AACA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,MAAM,EAAE,WAOL,CAAC;AAEV,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/angular.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,EAAE,WAqBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/base.ts"],"names":[],"mappings":";;;;;;AAAA,wBASE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/javascript.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM/D;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,MAAM,EAAE,WA+Db,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-base.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-base.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;GASG;AAEH;;;GAGG;AACH,QAAA,MAAM,MAAM,EAAE,WAyIZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-jsx.ts"],"names":[],"mappings":"AAGA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,EAAE,WAkFb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-tmp.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-tmp.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAK/D;;;;;;;GAOG;AACH,QAAA,MAAM,MAAM,EAAE,WAIb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-typescript.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,EAAE,WAoDZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/typescript.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM/D;;;;;;GAMG;AACH,QAAA,MAAM,MAAM,EAAE,WAwDb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-plugin/src/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/E,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAcgB,cAAc,2BAA2B,EAAE,OAAO;gCAGlD,cAAc,2BAA2B,EAAE,OAAO;2BAGvD,cAAc,0BAA0B,EAAE,OAAO;gCAG5C,cAAc,2BAA2B,EAAE,OAAO;sCAG5C,cAAc,iCAAiC,EAAE,OAAO;+BAG/D,cAAc,0BAA0B,EAAE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E,MAAM,GACpB,OAAO,CAAC,WAAW,CAAC,CA2CtB;AAED,eAAO,MAAM,cAAc,aAgCvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dependency-checks.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/rules/dependency-checks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAmBvD,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,wBAAwB,CAAC,EAAE,OAAO,CAAC;QACnC,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC/B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,qCAAqC,CAAC,EAAE,OAAO,CAAC;QAChD,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,uBAAuB,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;KACrD;CACF,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,0BAA0B,GAC1B,yBAAyB,CAAC;AAE9B,eAAO,MAAM,SAAS,sBAAsB,CAAC;;AAE7C,wBAkgBG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-module-boundaries.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/rules/enforce-module-boundaries.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAiBlC,OAAO,EAGL,aAAa,EAmBd,MAAM,6BAA6B,CAAC;AAGrC,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,cAAc,EAAE,aAAa,EAAE,CAAC;QAChC,6BAA6B,EAAE,OAAO,CAAC;QACvC,2BAA2B,EAAE,OAAO,CAAC;QACrC,2BAA2B,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACrD,kCAAkC,EAAE,MAAM,EAAE,CAAC;QAC7C,yBAAyB,EAAE,OAAO,CAAC;QACnC,0BAA0B,EAAE,OAAO,CAAC;KACrC;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAClB,4CAA4C,GAC5C,+BAA+B,GAC/B,4BAA4B,GAC5B,wBAAwB,GACxB,iBAAiB,GACjB,gBAAgB,GAChB,iCAAiC,GACjC,gCAAgC,GAChC,0CAA0C,GAC1C,gCAAgC,GAChC,sCAAsC,GACtC,0BAA0B,GAC1B,6BAA6B,GAC7B,kCAAkC,GAClC,4BAA4B,CAAC;AACjC,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBA0wBG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nx-plugin-checks.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/rules/nx-plugin-checks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAoB/C,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,qBAAqB,EAAE,MAAM,EAAE,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF,CAAC;AAEF,KAAK,iBAAiB,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM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