Skip to content

Commit

Permalink
Instead of ignoring the _registerPaths file, ignoring only a specific…
Browse files Browse the repository at this point in the history
… line for linting
  • Loading branch information
AlexPshul committed Mar 27, 2024
1 parent 8828a8f commit 9edb1bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/func/src/generators/init/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const createRegisterPathsFile = (tree: Tree, { appRoot }: NormalizedOptions) =>
path.posix.join(appRoot, `${registrationFileName}.ts`),
`
import { register } from 'tsconfig-paths';
import * as tsConfig from '../../${TS_CONFIG_BASE_FILE}';
import * as tsConfig from '../../${TS_CONFIG_BASE_FILE}'; // eslint-disable-line @nx/enforce-module-boundaries
import { CompilerOptions } from 'typescript';
const compilerOptions = tsConfig.compilerOptions as unknown as CompilerOptions; // This is to avoid any problems with the typing system
Expand Down Expand Up @@ -210,7 +210,7 @@ const configureEslint = (tree: Tree, { appRoot, appNames: { name } }: Normalized

const projectEslintConfig = {
extends: `${relativePathToRoot}.eslintrc.json`,
ignorePatterns: ['!**/*', 'dist', 'node_modules', '_registerPaths.ts'],
ignorePatterns: ['!**/*', 'dist', 'node_modules'],
rules: {},
overrides: [
{
Expand Down

0 comments on commit 9edb1bf

Please sign in to comment.