mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 21:50:07 +08:00
26 lines
595 B
JavaScript
26 lines
595 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const fs = require('fs');
|
||
|
const assign = require('object-assign');
|
||
|
const { getProjectPath } = require('./utils/projectHelper');
|
||
|
|
||
|
module.exports = function() {
|
||
|
let my = {};
|
||
|
if (fs.existsSync(getProjectPath('tsconfig.json'))) {
|
||
|
my = require(getProjectPath('tsconfig.json'));
|
||
|
}
|
||
|
return assign(
|
||
|
{
|
||
|
noUnusedParameters: true,
|
||
|
noUnusedLocals: true,
|
||
|
strictNullChecks: true,
|
||
|
target: 'es6',
|
||
|
jsx: 'preserve',
|
||
|
moduleResolution: 'node',
|
||
|
declaration: true,
|
||
|
allowSyntheticDefaultImports: true,
|
||
|
},
|
||
|
my.compilerOptions,
|
||
|
);
|
||
|
};
|