Bug: [no-misused-promises] should not report static
accessor
properties with a function initiali
8000
zer
#10812
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.5.2&fileType=.tsx&code=MYGwhgzhAEBCkFMCM0DeBYAUNaAHArgEYgCWw0EA9gLYICyCALgBaUAm0AvNABQCUALmgA3SiQ6cAfGmgBfLPMxZQkGAFEAHowQA7NgjYoEW3WxjwIyNFhwB6W9GCUATs4TBGIAJ7Q2lBBA6AOSM0G64Low2eESk5BCMYIxkFDT0TKwS0JBeOuT8QgAKzjQklgA8ouLSUjKKisrgUHCIAEzW2DHEKVS0DCzsXLyCImIS0qhyCliNqtCa2noG7caLZi2W7Rid9mEIEc6MMIT4oRCs%2BCBswVGdBN3xicnkYMDAAVTOqX0Zg9w5eWGRRK1DKCEqYxqEymmEUQA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1oFtLlZkiACa1i0Dr0GoMkRNHHRI4MAF8QKoA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expected the rule not to report this, similar to how it treats standard
static
properties.Actual Result
The rule reported the
static
accessor
property, which I think is a false-positive.Additional Info
Related: #10763 (comment).
The text was updated successfully, but these errors were encountered: