Skip to content

Instantly share code, notes, and snippets.

@vvakame
Last active April 14, 2017 07:05
Show Gist options
  • Save vvakame/3ae719362d4de86b966ae6f79deb0d58 to your computer and use it in GitHub Desktop.
Save vvakame/3ae719362d4de86b966ae6f79deb0d58 to your computer and use it in GitHub Desktop.
node_modules/
*.js
- repo: git@github.com:vvakame/typescript-formatter.git
sha: 20c40ac40c4726f90b65f8e4be85b7bafb163694
hooks:
- id: tsfmt
console . log("test");
{
"name": "tsfmt95",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"description": "",
"devDependencies": {
"typescript": "^2.2.2",
"typescript-formatter": "^5.1.3"
}
}
#!/bin/sh -eux
pre-commit install
pre-commit run --all-files
tsc
{
"compilerOptions": {
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
"strict": true /* Enable all strict type-checking options. */
},
"include": [
"*.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment