t-comm
Version:
专业、稳定、纯粹的工具库
20 lines (17 loc) • 628 B
JavaScript
import { a as __spreadArray } from '../tslib.es6-096fffdd.js';
function getESLintImportSettings(options) {
return {
'import/resolver': {
node: {
extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.json', '.vue']
},
alias: {
map: __spreadArray([['src', './src']], (options === null || options === void 0 ? void 0 : options.aliasMap) || [], true),
// 告诉 resolver-alias 有哪些后缀的文件要解析
extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.json', '.vue']
}
},
'import/ignore': ['node_modules']
};
}
export { getESLintImportSettings };