Giter Site home page Giter Site logo

Comments (3)

jhaber avatar jhaber commented on August 20, 2024 1

In general, we configure our IDEs to reformat with prettier on file save, but if Netbeans doesn't have any sort of prettier plugin then telling it to run prettier:write on build seems like the next best thing. And then you'd generally run prettier:check inside your CI environment to ensure that the build fails if someone accidentally checks in mis-formatted code

from prettier-maven-plugin.

ZaLiTHkA avatar ZaLiTHkA commented on August 20, 2024

now I'm starting to question my own reasoning here... so perhaps I'm actually missing the point of this exercise. 🤔

in my local environment, I have VSCode to automatically format my code with Prettier on save.. so the optimal solution is simply to use a Prettier plugin for Netbeans, but I don't think there are any (at the moment).

on the Netbeans-specific side, I do know that I can customise the goals that are run through the project's "Actions" config.. so should I adjust the typical "run" and "build" actions in Netbeans to call prettier:check and prettier:write as we need and be done with it?

if someone else comes along later and decides they want to use IDEA (which does have Prettier support), then all our children should play nicely in the same sandpit, yes?

from prettier-maven-plugin.

ZaLiTHkA avatar ZaLiTHkA commented on August 20, 2024

I guess I'm just tired of having to think of code formatting for everyone in our "team", so maybe I'm subconsciously hoping for some magic solution that will make me not have to do that. just today I saw yet another commit that adds "fixes" that literally revert the code formatting I did about 2 or 3 weeks back, even with a comment of "this is from before the auto format". 🤦🏼‍♂️ I'm tired of it..

anyways, it is what it is.. let me leave it there and close off this issue before I digress into a rant about "the dangers of line based source control with people who don't give a shit about code quality"....

from prettier-maven-plugin.

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.