From c6c5acb553fc2d723ca2b227f75d844c42737d66 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Sat, 16 Sep 2023 07:03:51 -0700 Subject: [PATCH] ci(types): skip TS for types-ambient --- .eslintrc.cjs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 1e611f4563d9..31e9645b8ebc 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -164,5 +164,19 @@ module.exports = { '@jessie.js/safe-await-separator': 'off', }, }, + { + // Types files have no promises to lint and that linter chokes on the .d.ts twin. + // Maybe due to https://github.com/typescript-eslint/typescript-eslint/issues/7435 + files: ['types*.js'], + rules: { + // Disabled to prevent: + // Error: Error while loading rule '@typescript-eslint/no-floating-promises': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser. + // Occurred while linting ~agoric-sdk/packages/vats/src/core/types.js + // at Object.getParserServices (~agoric-sdk/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js:24:15) + // at create (~agoric-sdk/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js:77:31) + // at Object.create (~agoric-sdk/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:38:20) + '@typescript-eslint/no-floating-promises': 'off', + }, + }, ], };