Skip to content

Instantly share code, notes, and snippets.

@dim
Created May 17, 2019 15:22
Show Gist options
  • Save dim/4415b82946149f8823c8a1b77108b7d4 to your computer and use it in GitHub Desktop.
Save dim/4415b82946149f8823c8a1b77108b7d4 to your computer and use it in GitHub Desktop.
export function sum(
forSomeReasonThisIsAVeryLongVariableName1: number,
forSomeReasonThisIsAVeryLongVariableName2: number,
): number {
return (
forSomeReasonThisIsAVeryLongVariableName1 +
forSomeReasonThisIsAVeryLongVariableName2
);
}
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"gts": "^1.0.0",
"typescript": "~3.4.0"
}
}
module.exports = {
singleQuote: true,
trailingComma: 'all',
};
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": ["**/*.ts"]
}
{
"extends": "gts/tslint.json",
"linterOptions": {
"exclude": ["**/*.json"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment