Skip to content

Commit

Permalink
fix(linter): fix outdated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Oct 16, 2023
1 parent 2917a6d commit 65c7a03
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getProjects, Tree } from '@nx/devkit';
import { getProjects } from '@nx/devkit';
import { Schema } from './schema';
import { Schema as remoteSchma } from '../remote/schema';
import { federateModuleGenerator } from './federate-module';
import { createTreeWithEmptyWorkspace } from 'nx/src/devkit-testing-exports';
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';
import remoteGenerator from '../remote/remote';
import { E2eTestRunner, UnitTestRunner } from '../../utils/test-runners';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as targetVariations from '@nx/storybook/src/utils/test-configs/differen
import libraryGenerator from '../library/library';
import componentGenerator from '../component/component';
import storybookConfigurationGenerator from '../storybook-configuration/storybook-configuration';
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';

// nested code imports graph from the repo, which might have innacurate graph version
jest.mock('nx/src/project-graph/project-graph', () => ({
Expand Down Expand Up @@ -75,13 +75,13 @@ describe('testing utilities', () => {
`
import type { Meta } from '@storybook/react';
import { Button } from './button';
const Story: Meta<typeof Button> = {
component: Button,
title: 'Layout/Texts/Button',
};
export default Story;
export const Primary = {
args: {},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { logger, Tree } from '@nx/devkit';
import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';
import applicationGenerator from '../application/application';
import componentGenerator from '../component/component';
import storybookConfigurationGenerator from './configuration';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';

export interface Schema {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/executor/executor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { executorGenerator } from './executor';
import { pluginGenerator } from '../plugin/plugin';
import { libraryGenerator as jsLibraryGenerator } from '@nx/js';
import { setCwd } from '@nx/devkit/internal-testing-utils';
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';

describe('NxPlugin Executor Generator', () => {
let tree: Tree;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/generator/generator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
import { libraryGenerator as jsLibraryGenerator } from '@nx/js';
import { pluginGenerator } from '../plugin/plugin';
import { generatorGenerator } from './generator';
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';
import { setCwd } from '@nx/devkit/internal-testing-utils';

describe('NxPlugin Generator Generator', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/migration/migration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
import { migrationGenerator } from './migration';
import { pluginGenerator } from '../plugin/plugin';
import { setCwd } from '@nx/devkit/internal-testing-utils';
import { Linter } from '@nx/linter';
import { Linter } from '@nx/eslint';

describe('NxPlugin migration generator', () => {
let tree: Tree;
Expand Down

0 comments on commit 65c7a03

Please sign in to comment.