Problem
Nx 23 warns that the @nx/eslint:lint executor is deprecated and will be removed in Nx 24. The workspace still declares explicit lint executor targets for nx-forge and docs-tools.
The application generator also defaults to explicit-target generation through addPlugin: false. Generator tests repeatedly exercise that path, producing many copies of the same deprecation warning. This leaves both the workspace and generated Forge applications on a target model that Nx is removing.
Scope
- Configure
@nx/eslint/plugin inference for the workspace.
- Convert the
nx-forge and docs-tools lint targets.
- Update the application generator so its normal output uses inferred ESLint targets.
- Decide and test the compatibility behavior for callers that explicitly request
addPlugin: false.
- Adapt generator tests so they verify the intended inferred output without hiding unexpected warnings.
- Preserve the existing flat ESLint configuration and lint semantics.
Acceptance criteria
Reference
Problem
Nx 23 warns that the
@nx/eslint:lintexecutor is deprecated and will be removed in Nx 24. The workspace still declares explicit lint executor targets fornx-forgeanddocs-tools.The application generator also defaults to explicit-target generation through
addPlugin: false. Generator tests repeatedly exercise that path, producing many copies of the same deprecation warning. This leaves both the workspace and generated Forge applications on a target model that Nx is removing.Scope
@nx/eslint/plugininference for the workspace.nx-forgeanddocs-toolslint targets.addPlugin: false.Acceptance criteria
@nx/eslint:lint.@nx/eslint/plugininference by default.linttarget remains available with equivalent behavior.Reference