Skip to content

Commit

Permalink
fix(linter): adjust terminal run check for crystal
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Feb 6, 2024
1 parent 3005566 commit 04c4575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions e2e/eslint/src/linter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ describe('Linter', () => {
eslint.overrides[0].rules[
'@nx/enforce-module-boundaries'
][1].depConstraints = [
{ sourceTag: 'validtag', onlyDependOnLibsWithTags: ['validtag'] },
...eslint.overrides[0].rules['@nx/enforce-module-boundaries'][1]
.depConstraints,
];
{ sourceTag: 'validtag', onlyDependOnLibsWithTags: ['validtag'] },
...eslint.overrides[0].rules['@nx/enforce-module-boundaries'][1]
.depConstraints,
];
updateFile('.eslintrc.json', JSON.stringify(eslint, null, 2));

const tsConfig = readJson('tsconfig.base.json');
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/utils/runtime-lint-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export function hasBuildExecutor(
);
}

const ESLINT_REGEX = /node_modules.*[\/\\]eslint$/;
const ESLINT_REGEX = /node_modules.*[\/\\]eslint(?:\.js)?$/;
const JEST_REGEX = /node_modules\/.bin\/jest$/; // when we run unit tests in jest
const NRWL_CLI_REGEX = /nx[\/\\]bin[\/\\]run-executor\.js$/;

Expand Down

0 comments on commit 04c4575

Please sign in to comment.