11 lines
373 B
TypeScript
11 lines
373 B
TypeScript
import { Tree } from '@nrwl/devkit';
|
|
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
|
|
export function getEslintTargets(tree: Tree) {
|
|
const eslintTargetNames = new Set<string>();
|
|
forEachExecutorOptions(tree, '@nrwl/linter:eslint', (_, __, target) => {
|
|
eslintTargetNames.add(target);
|
|
});
|
|
return eslintTargetNames;
|
|
}
|