Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier conflicts with */object-curly-spacing rules #226

Closed
andreavaccari opened this issue Apr 7, 2021 · 1 comment · Fixed by #227
Closed

Prettier conflicts with */object-curly-spacing rules #226

andreavaccari opened this issue Apr 7, 2021 · 1 comment · Fixed by #227
Labels

Comments

@andreavaccari
Copy link
Contributor

Overview

The following @shopify/eslint-plugin config results in a rule config:

{
  "extends": [
    "plugin:@shopify/typescript",
    "plugin:@shopify/typescript-type-checking",
    "plugin:@shopify/prettier",
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  }
}

Prettier wants white spaces around object literals, e.g. { foo: "bar" }.

This conflicts with rules @typescript-eslint/object-curly-spacing and babel/object-curly-spacing.

Scope

"@shopify/eslint-plugin": "^40.1.0"

@andreavaccari
Copy link
Contributor Author

Unfortunately I cannot add labels to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants