Bug: [comma-spacing] conflicts with array-bracket-spacing #6874
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=5.0.2&sourceType=module&code=NocgbghgNgrgpiANAAnNeAmJyC6Q&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQIbWlwE8BaAI0IGMBrRAFxOQAddKBLAOwHN0pECA9tEgAacNkgABOkSYpK0NkwYp4nOgHpKAgLY7cjFu269I-aEMjiAviGtA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
tsconfig
No response
Expected Result
[comma-spacing] should not throw an error, as there should not be a space between a trailing comma in an array and the closing "]" bracket.
Actual Result
[comma-spacing] throws an error, "A space is required after ','".
Additional Info
This issue was fixed in ESLint's [comma-spacing] rule here: eslint/eslint#16113.
The text was updated successfully, but these errors were encountered: