Skip to content

Commit

Permalink
feat(linter): add .nx to ignored folders (#20720)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Dec 13, 2023
1 parent b32f530 commit 39e6851
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/eslint/src/generators/init/global-eslint-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
addImportToFlatConfig,
addPluginsToExportsBlock,
createNodeList,
generateAst,
generateFlatOverride,
stringifyNodeList,
} from '../utils/flat-config/ast-utils';
Expand Down Expand Up @@ -121,6 +122,13 @@ export const getGlobalFlatEslintConfiguration = (
generateFlatOverride(jestOverride)
);
}
// add ignore for .nx folder
content = addBlockToFlatConfigExport(
content,
generateAst({
ignores: ['.nx'],
})
);

return content;
};

0 comments on commit 39e6851

Please sign in to comment.