Skip to content

Instantly share code, notes, and snippets.

View tomitrescak's full-sized avatar
🏠
Working from home

Tomas Trescak tomitrescak

🏠
Working from home
  • University of Western Sydney
  • Sydney, Australia
View GitHub Profile
@tomitrescak
tomitrescak / tslint.json
Created May 18, 2016 23:09
Tslint config for Meteor projects
{
"rules": {
"class-name": true,
"comment-format": [true, "check-space"],
"curly": true,
"eofline": true,
"forin": false,
"indent": [true, "spaces"],
"label-position": true,
"label-undefined": true,
@tomitrescak
tomitrescak / .eslintrc
Created May 18, 2016 23:13
Eslint config, optimised for Mantra
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
@tomitrescak
tomitrescak / tsconfig.json
Created May 18, 2016 23:15
TsConfig with classic module resolution, depending on global typings
{
"compileOnSave": true,
"compilerOptions": {
"target": "es6",
"module": "es6",
"declaration": false,
"noImplicitAny": true,
"removeComments": false,
"noLib": false,
"preserveConstEnums": true,
@tomitrescak
tomitrescak / .jsbeautifyrc
Last active May 19, 2016 00:09
Js Beautify configuration for Atom
{
"typescript": {
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": true
},
@tomitrescak
tomitrescak / custom.d.ts
Last active May 19, 2016 01:14
Global ambient typings for Meteor development
///////////////////////////////////////////////////////////////
// Node.js //
///////////////////////////////////////////////////////////////
declare var module: any;
declare function require(mod: string): any;
///////////////////////////////////////////////////////////////
// react-router //
///////////////////////////////////////////////////////////////
@tomitrescak
tomitrescak / atom-style.less
Created May 19, 2016 07:58
Atom font styles
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
// file composer
interface IApolloDefinition {
schema: string;
queries?: Object;
resolvers?: Object;
mutations?: Object;
queryText?: string;
mutationText?: string;
}
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.
==== JS stack trace =========================================
Security context: 0x344b796c9e59 <JS Object>#0#
1: .node [module.js:568] [pc=0x235a7436c884] (this=0x80763bb0bf9 <an Object with map 0x371dbfd17d41>#1#,module=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsevents/build/Release/fse.node>)
2: load [module.js:458] [pc=0x235a74334332] (this=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsevents/build/Release/fse.node>)
3: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x235a74333e5d] (this=0x344b79604189 <undefined>,module=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsev
{
"compileOnSave": true,
"compilerOptions": {
"target": "es6",
"module": "es6",
"declaration": false,
"noImplicitAny": true,
"removeComments": false,
"noLib": false,
"preserveConstEnums": true,
import React from 'react';
import Helmet from 'react-helmet';
import { style } from 'typestyle';
import { i18n } from 'es2015-i18n-tag';
const content = style({ margin: '30px' });
export class Layout extends React.Component {
static contextTypes = {
Ui: React.PropTypes.object