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 };
