Open googol7 opened 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}
],
It was a problem when
"react-scripts": "^4.0.3"
(in package.json
)DISABLE_ESLINT_PLUGIN=false
in .env
npm run build
See: