Giter Club home page Giter Club logo

Comments (3)

anuragshukla06 avatar anuragshukla06 commented on May 14, 2024
  1. Look at doc prettier rc
  2. Use git hooks to ensure that the files are in the format before someone pushes the code.

from rural-crowdsourcing-toolkit.

thedroiddiv avatar thedroiddiv commented on May 14, 2024

see commit 7697039

The main changes are in package.json and .husky/pre-commit, everything else is just formatting from prettier.
https://typicode.github.io/husky/#/

from rural-crowdsourcing-toolkit.

thedroiddiv avatar thedroiddiv commented on May 14, 2024

@Irischrome Since you’re working on it thought 7697039 might help.



Sorry, I didn't mention it earlier, I was curious about it and I recollect, had used it somewhere in my older projects.
 The same is implemented here as well.



It uses a node package called ‘husky’. 
I wanted it to be done without husky, even wrote a script and added it preInstall to copy the git hook but realized that would only work on Mac and Linux. Maybe if you want, could find another way to do it without an external package.

from rural-crowdsourcing-toolkit.

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.