// https://twitter.com/karlhorky/status/1720368118193651903

/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */
const config = {
  'no-restricted-syntax': [
    'warn',
    {
      selector:
        'CallExpression[callee .object.name=Promise][callee .property.name=all] > ArrayExpression > AwaitExpression',
      message: 'Avoid await within array passed to Promise.all() to avoid waterfalls',
    },
  ],
};

module.exports = config;