GithubHelp home page GithubHelp logo

fimba-code / babel-logger-plugin Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 123 KB

This babel plugin creates a log statement on your functions

License: MIT License

JavaScript 100.00%
babel-plugins coding-challenge transpiler

babel-logger-plugin's People

Contributors

brunokiafuka avatar fausto95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

babel-logger-plugin's Issues

improve docs

The docs are currently based on our first attempt. There's a need to write more comprehensive documentation for future users and maintainers.

Use it on top of any expression

Right now we're depending on function with a return statement in order to make this work, we should not!
We instead want it to work with every expression

  // $log
  let res = 2 + 3;

Use it as a comment line instead

It'd be nice if use // $log instead of $log so linters won't complain about an unknown keyword

function add() {
  // $log
  let res = 2 + 3;
  return res;
 }

Add liniting

Is your feature request related to a problem? Please describe.
This request is not attached to a functional problem, yet it is related to an environmental problem. I've noticed that we don't have any standard coding style enforcement in place thus this makes the devs working on this project to push relying on their code editors' default configuration which causes inconsistency on the final code.

Describe the solution you'd like
The possible solution would be to configure eslint on the project and select one of the available styles for code and style enforcement. (Preferably use Airbnb or standard configurations).

Describe alternatives you've considered
Alternatively, we could configure Prettier to enforce that we all have the same code style, yet it does have its limitations.

Additional context
N/A.

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.