Skip to content

Commit

Permalink
fix(nx-plugin): fix eslint and root tsconfig.base.json
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Feb 12, 2024
1 parent 5e6b39a commit 6cd5dd8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {}
},
"exclude": ["node_modules", "tmp"]
}
2 changes: 1 addition & 1 deletion packages/nx-plugin/src/generators/app/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export async function appGenerator(

addHomePage(tree, normalizedOptions);

await addEslint(tree, majorNxVersion, normalizedOptions);
// await addEslint(tree, majorNxVersion, normalizedOptions);

if (!normalizedOptions.skipFormat) {
await formatFiles(tree);
Expand Down
9 changes: 9 additions & 0 deletions packages/nx-plugin/src/generators/app/lib/add-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@ export function addFiles(
options.projectRoot,
templateOptions
);

if (!tree.read('/tsconfig.base.json')) {
generateFiles(
tree,
path.join(__dirname, '..', 'files', 'root'),
'.',
templateOptions
);
}
}

0 comments on commit 6cd5dd8

Please sign in to comment.