Skip to content

Commit

Permalink
fix(nx-plugin): support root tsconfig.json in nx-plugin-checks eslint…
Browse files Browse the repository at this point in the history
… rule
  • Loading branch information
leosvelperez authored and meeroslav committed Mar 11, 2024
1 parent e19f33b commit 4850bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/nx-plugin-checks.ts
Expand Up @@ -11,9 +11,9 @@ import { findProject, getSourceFilePath } from '../utils/runtime-lint-utils';
import { existsSync } from 'fs';
import { registerTsProject } from '@nx/js/src/internal';
import * as path from 'path';
import { join } from 'path';
import { readProjectGraph } from '../utils/project-graph-utils';
import { valid } from 'semver';
import { getRootTsConfigPath } from '@nx/js';

type Options = [
{
Expand Down Expand Up @@ -147,7 +147,7 @@ export default ESLintUtils.RuleCreator(() => ``)<Options, MessageIds>({
}

if (!(global as any).tsProjectRegistered) {
registerTsProject(join(workspaceRoot, 'tsconfig.base.json'));
registerTsProject(getRootTsConfigPath());
(global as any).tsProjectRegistered = true;
}

Expand Down

0 comments on commit 4850bdb

Please sign in to comment.