[space-infix-ops] Ignored around field initializers #1699
Labels
enhancement: new base rule extension
New base rule extension required to handle a TS specific case
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
I've setup my project with the recommended settings. ESLint rules defined in .eslintrc.cjs are triggered correctly, e.g
'space-infix-ops': 'error'
triggers onconst first='John'
. What I don't see happen is that rule triggering on field initializers, but if I understand correctly the marriage between TypeScript and ESLint, this rule should be implemented separately; however, I haven't found a relevant rule under the supported rules, so maybe one should be made and hence the title of my bug is incorrect? Apologies for the confusion.Repro
Expected Result
ESLint: Operator '=' must be spaced.(space-infix-ops)
Actual Result
Only the obvious warning,
1:7 warning 'Person' is defined but never used @typescript-eslint/no-unused-vars
.Additional Info
Versions
@typescript-eslint/eslint-plugin
2.22.0
@typescript-eslint/parser
2.22.0
TypeScript
3.8.3
ESLint
6.8.0
node
13.9.0
npm
6.3.17
The text was updated successfully, but these errors were encountered: