Bug: [space-infix-ops] code that contains extends triggers error #5134
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
formatting
Related to whitespace/bracket formatting. We strongly recommend you use a formatter instead.
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=4.7.2&sourceType=module&code=C4TwDgpgBAYg9nAPAFQHxQLxWVCAPYCAOwBMBnKAbygCMBDAJwC4ozgGBLIgcygF8oAflbsuvFkQCuAWxoQGAWABQy0JCgAhOgC8U6LDnyFSFABT1mIzjwCUmdADc4HEkKtioEmXIZA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6ZYgQzMVuYDNKAD1oB7YqgyRE0aKOiRwYAL4hlQA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
tsconfig
Expected Result
there should not be errors reported
Actual Result
Additional Info
most likely can be fixed by improving token selection of
typescript-eslint/packages/eslint-plugin/src/rules/space-infix-ops.ts
Lines 185 to 198 in f0fb2e5
#5113 (comment)
cc @CyanSalt
Versions
@typescript-eslint/eslint-plugin
5.27.0
@typescript-eslint/parser
5.27.0
TypeScript
4.7.2
ESLint
8.15.0
node
web
The text was updated successfully, but these errors were encountered: