Skip to content

Instantly share code, notes, and snippets.

@jkrems
Last active November 17, 2018 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkrems/49482d5b811b066ac402f42ca1f4bff4 to your computer and use it in GitHub Desktop.
Save jkrems/49482d5b811b066ac402f42ca1f4bff4 to your computer and use it in GitHub Desktop.
TypeScript as a Linter
'use strict';
function calculate(expression) {
// [...]
}
{
"compilerOptions": {
"target": "ES2018",
"module": "commonjs",
"allowJs": true,
"checkJs": true,
"noEmit": true,
"strict": true,
"moduleResolution": "node",
"types": ["node", "mocha"],
"esModuleInterop": true
},
"include": [
"typings/**/*.d.ts",
"*.js",
"lib/**/*.js"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment