Skip to content

Instantly share code, notes, and snippets.

View cosemansp's full-sized avatar

Peter Cosemans cosemansp

  • Euricom
  • Belgium
View GitHub Profile

install babel-eslint

npm i babel-eslint --save-dev

.eslintrc

{
  "parser": "babel-eslint",
  "ecmaFeatures": {

"modules": true,

@lrvick
lrvick / angular-logging.js
Last active February 3, 2021 04:26
AngularJS - Global logging override module. Enables you to write custom hooks to intercept, display, manipulate or re-transfer $log logs as you see fit. Also allows one to easily globally disable logs application wide, useful for production.
/**
* # Global logging module
*
* This is a global set of hooks that catch all $log messages sent out by the
* application. Currently they are simply passed off directly to console.log
* but this could be updated later to allow them to be stored locally, sent to
* a server etc.
*/
angular.module('ngLogging', [])