fimba-code / babel-logger-plugin Goto Github PK
View Code? Open in Web Editor NEWThis babel plugin creates a log statement on your functions
License: MIT License
This babel plugin creates a log statement on your functions
License: MIT License
The docs are currently based on our first attempt. There's a need to write more comprehensive documentation for future users and maintainers.
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;
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;
}
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.