Coder Social home page Coder Social logo

mrm-lab's Introduction

mrm-lab

experimental playground of mrm

How to play

Try to commit a broken file and see let us observe how Prettier, set up by mrm, prevent the commit!

> git clone https://github.com/shuuji3/mrm-lab && cd mrm-lab/
> npm i
> echo 'bad change' >> hello.js
> git add .
> git commit -m 'Commit a bad change'
✔ Preparing...
⚠ Running tasks...
  ❯ Running tasks for *.{js,jsx,scss,css,html,md}
    ✖ prettier --write --loglevel warn [FAILED]
↓ Skipped because of errors from tasks. [SKIPPED]
✔ Reverting to original state because of errors...
✔ Cleaning up...

✖ prettier --write --loglevel warn:
[error] hello.js: SyntaxError: Unexpected token, expected "," (4:21)
[error]   2 |
[error]   3 |   1 + 2;
[error] > 4 |   console.log("hello";
[error]     |                      ^
[error]   5 |   const x = 1;
[error]   6 |
[error]   7 |

References

mrm-lab's People

Contributors

shuuji3 avatar

Watchers

James Cloos avatar  avatar  avatar

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.