Comments (3)
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.
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.
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)
- Fail Maven goal when Prettier commands exit with nonzero code
- Error downloading node: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException HOT 4
- Format files in /src/integration-test/java HOT 1
- Update prettier-java to support java 15 HOT 3
- Upgrade prettierJavaVersion default to 1.0.2 HOT 4
- Goal failed when attempting to lint .js files HOT 13
- Outputs violating files when running `check`
- Code formatting issues found, please run prettier-java HOT 3
- Add prettier-java 1.5.0 support HOT 2
- Support zipped Node executables HOT 2
- Add prettier-java 1.6.0 support HOT 3
- Running on ARM HOT 4
- record keyword breaks build HOT 4
- Downloading from nodejs.org is blocked by firewall HOT 4
- Illegal char <:> at index 4: node:internal/modules/cjs/loader:936 HOT 11
- Version 18 does not reformat code but version 16 does HOT 20
- Plugin hangs forever (0.18, javaPrettierVersion 0.8.3 and above) HOT 7
- Update documentation to have latest prettierJavaVersion present in mvn repository
- Cannot find Module 'bin-prettier.js' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-maven-plugin.