1 | const fs = require('fs-extra');
|
2 | const path = require('path');
|
3 |
|
4 | const pwd = process.cwd();
|
5 |
|
6 | const 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 |
|
18 | module.exports = getTSLintOptions; |
\ | No newline at end of file |