Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(linter): fix linter standalone patterns in Js and Next #19508

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

meeroslav
Copy link
Contributor

Some of our packages are missing the logic to properly handle standalone apps linter config.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@meeroslav meeroslav self-assigned this Oct 9, 2023
@meeroslav meeroslav requested review from a team as code owners October 9, 2023 14:19
@vercel
Copy link

vercel bot commented Oct 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 6:29pm

@@ -52,8 +52,11 @@ export function mapLintPattern(
extension: string,
rootProject?: boolean
) {
const infix = rootProject ? 'src/' : '';
return `${projectRoot}/${infix}**/*.${extension}`;
if (rootProject && (projectRoot === '.' || projectRoot === '')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of E2E projects generated alongside the standalone project, the rootProject would be still true, but project root would point to some e2e-ish folder

@meeroslav meeroslav force-pushed the fix-linter-standalone-logic branch from a834978 to 52029a2 Compare October 9, 2023 20:36
@meeroslav meeroslav force-pushed the fix-linter-standalone-logic branch from 52029a2 to 890ebc1 Compare October 10, 2023 18:28
@meeroslav meeroslav merged commit 8bf6a97 into nrwl:master Oct 10, 2023
2 checks passed
@meeroslav meeroslav deleted the fix-linter-standalone-logic branch October 10, 2023 19:24
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants