Skip to content

Commit

Permalink
ci(types): skip TS for types-ambient
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 16, 2023
1 parent 846ff5e commit 6aea57b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,18 @@ module.exports = {
'@jessie.js/safe-await-separator': 'off',
},
},
{
// Ambient typedefs have no exports so they're not valid JS modules.
files: ['types-ambient.js'],
rules: {
// Disabled to avoid 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',
},
},
],
};

0 comments on commit 6aea57b

Please sign in to comment.