From 90724f4a85d450e9a001e8feed6d8d9261ecb1ae Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Tue, 10 Oct 2023 21:23:11 +0200 Subject: [PATCH] feat(linter): apply changes to nuxt --- packages/nuxt/package.json | 2 +- .../application/__snapshots__/application.spec.ts.snap | 2 +- packages/nuxt/src/generators/application/application.ts | 2 +- packages/nuxt/src/generators/application/lib/add-e2e.ts | 2 +- packages/nuxt/src/generators/application/schema.d.ts | 2 +- packages/nuxt/src/utils/add-linting.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 7d4fb2b170167d..e53639262b7e28 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -33,7 +33,7 @@ "tslib": "^2.3.0", "@nx/devkit": "file:../devkit", "@nx/js": "file:../js", - "@nx/linter": "file:../linter", + "@nx/eslint": "file:../eslint", "@nx/vue": "file:../vue", "@nx/cypress": "file:../cypress", "@nx/playwright": "file:../playwright", diff --git a/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap b/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap index 39ed8c070a82bc..95a0a6c7dc23ee 100644 --- a/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap +++ b/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap @@ -67,7 +67,7 @@ exports[`app generated files content - as-provided should configure tsconfig and } }, "lint": { - "executor": "@nx/linter:eslint", + "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": ["my-app/**/*.{ts,tsx,js,jsx,vue}"] diff --git a/packages/nuxt/src/generators/application/application.ts b/packages/nuxt/src/generators/application/application.ts index 383386ddb3cf53..909ec9b7ab9e20 100644 --- a/packages/nuxt/src/generators/application/application.ts +++ b/packages/nuxt/src/generators/application/application.ts @@ -17,7 +17,7 @@ import { createTsConfig } from '../../utils/create-ts-config'; import { getRelativePathToRootTsConfig } from '@nx/js'; import { updateGitIgnore } from '../../utils/update-gitignore'; import { addBuildTarget, addServeTarget } from './lib/add-targets'; -import { Linter } from '@nx/linter'; +import { Linter } from '@nx/eslint'; import { addJest } from '@nx/vue'; import { addE2e } from './lib/add-e2e'; import { nxVersion } from '../../utils/versions'; diff --git a/packages/nuxt/src/generators/application/lib/add-e2e.ts b/packages/nuxt/src/generators/application/lib/add-e2e.ts index ca95def54d0106..54bd212c35da8f 100644 --- a/packages/nuxt/src/generators/application/lib/add-e2e.ts +++ b/packages/nuxt/src/generators/application/lib/add-e2e.ts @@ -5,7 +5,7 @@ import { joinPathFragments, Tree, } from '@nx/devkit'; -import { Linter } from '@nx/linter'; +import { Linter } from '@nx/eslint'; import { nxVersion } from '../../../utils/versions'; import { NormalizedSchema } from '../schema'; diff --git a/packages/nuxt/src/generators/application/schema.d.ts b/packages/nuxt/src/generators/application/schema.d.ts index 208da79b35ee74..f5525a2ed06515 100644 --- a/packages/nuxt/src/generators/application/schema.d.ts +++ b/packages/nuxt/src/generators/application/schema.d.ts @@ -1,5 +1,5 @@ import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils'; -import type { Linter } from '@nx/linter'; +import type { Linter } from '@nx/eslint'; export interface Schema { name: string; diff --git a/packages/nuxt/src/utils/add-linting.ts b/packages/nuxt/src/utils/add-linting.ts index 416c365f780687..a9d4cc1e77bace 100644 --- a/packages/nuxt/src/utils/add-linting.ts +++ b/packages/nuxt/src/utils/add-linting.ts @@ -1,5 +1,5 @@ import { Tree } from 'nx/src/generators/tree'; -import { lintProjectGenerator, Linter } from '@nx/linter'; +import { lintProjectGenerator, Linter } from '@nx/eslint'; import { joinPathFragments } from 'nx/src/utils/path'; import { GeneratorCallback,