UNPKG

@nx/next

Version:

The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides: - Scaffolding for creating, building, serving, linting, and testing Next.js applications. - Integration wit

16 lines (15 loc) 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = update; const devkit_1 = require("@nx/devkit"); const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file"); async function update(tree) { const projects = (0, devkit_1.getProjects)(tree); projects.forEach((project) => { if (!(0, eslint_file_1.isEslintConfigSupported)(tree, project.root)) return; (0, eslint_file_1.updateOverrideInLintConfig)(tree, project.root, (o) => o.rules?.['@next/next/no-html-link-for-pages'] && o.files?.includes('**/*.*'), (o) => undefined); }); await (0, devkit_1.formatFiles)(tree); }