UNPKG

t-comm

Version:

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

24 lines (19 loc) 730 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var tslib_es6 = require('../tslib.es6-01322ba9.js'); function getESLintImportSettings(options) { return { 'import/resolver': { node: { extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.json', '.vue'] }, alias: { map: tslib_es6.__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'] }; } exports.getESLintImportSettings = getESLintImportSettings;