UNPKG

401 BJavaScriptView Raw
1const fs = require('fs-extra');
2const path = require('path');
3
4const pwd = process.cwd();
5
6const getTSLintOptions = function () {
7
8 const option = {};
9
10 const hasOwnConfigFile = fs.existsSync(path.join(pwd, '.tslintrc'));
11 if (!hasOwnConfigFile) {
12 option.configFile = path.join(__dirname, '../space/tslint-config.json');
13 }
14
15 return option;
16}
17
18module.exports = getTSLintOptions;
\No newline at end of file