molindo / eslint-config-molindo

ESLint config that implements the Molindo styleguide and helps to catch errors
MIT License
1 stars 2 forks source link

Configuration for rule "@typescript-eslint/no-misused-promises" is invalid #103

Open googol7 opened 1 month ago

googol7 commented 1 month ago
.eslintrc.js » eslint-config-molindo/typescript#overrides[0]:
    Configuration for rule "@typescript-eslint/no-misused-promises" is invalid:
    Value {"attributes":false} should be boolean.

See:

googol7 commented 1 month ago

See https://github.com/molindo/eslint-config-molindo/blob/master/typescript.js#L50-L53

Both should work according to https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.mdx

'@typescript-eslint/no-misused-promises': [
  ERROR,
  {checksVoidReturn: {attributes: false}}
],
'@typescript-eslint/no-misused-promises': [
  ERROR,
  {checksVoidReturn: false}
],
googol7 commented 1 month ago

It was a problem when