Git Product home page Git Product logo

Comments (6)

AgentEnder avatar AgentEnder commented on June 14, 2024 1

So that's expected behavior then. By default the linter will report misformatted code, and fail. To fix it you should run once with --fix and commit the results, or format your files with dotnet format manually.

from nx-dotnet.

AgentEnder avatar AgentEnder commented on June 14, 2024

Are you passing --fix to the command? I don't see it in your screenshots

from nx-dotnet.

zagros avatar zagros commented on June 14, 2024

thanks for the response @AgentEnder - good question

so basically when following the instructions out of the box on this page, the project.json that gets made just reads as follows (this is with 2.1.2 release btw):

image

and when you run the lint task you get that error that we are discussing in these threads - so in my screenshot in my comments yesterday I had patched the Object.assign() and just remove the line you had added in that commit -- However that's not a viable fix, so what I ended up doing so that every member on the team can work on the project was made my project.json that was made out of the box to look like this for now - besides this fix false below, I didn't do anything else compared to out of the box behaviour in that tutorial above --- without this patch below, I would still get that error just like 2.1.1

image

from nx-dotnet.

zagros avatar zagros commented on June 14, 2024

i see - ok so I think we can mark it closed then - we add the "fix" : true" to options in project.json after seeding any new project

from nx-dotnet.

AgentEnder avatar AgentEnder commented on June 14, 2024

I wouldn't recommend specifying fix true in project.json, as you wouldn't catch misformatted code on CI that way

from nx-dotnet.

github-actions avatar github-actions commented on June 14, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from nx-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.