Skip to content

Commit

Permalink
ci(types): work around typescript-eslint empty .js files
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 16, 2023
1 parent d3e888f commit 365be75
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,20 @@ module.exports = {
'@jessie.js/safe-await-separator': 'off',
},
},
{
// Disable typescript-eslint parsing for empty .js files.
// Not all types.js files presently are empty but we intend to convert their
// contents to types.d.ts so we use the general matcher here.
files: ['types.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 365be75

Please sign in to comment.