UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

20 lines (17 loc) 646 B
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; function getESLintImportSettings(options) { return { 'import/resolver': { node: { extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.json', '.vue'] }, alias: { map: [['src', './src']].concat(_toConsumableArray((options === null || options === void 0 ? void 0 : options.aliasMap) || [])), // 告诉 resolver-alias 有哪些后缀的文件要解析 extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.json', '.vue'] } }, 'import/ignore': ['node_modules'] }; } export { getESLintImportSettings };