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

jsx-curly-spacing accepted formats #249

Closed
OoDeLally opened this issue Jan 10, 2020 · 1 comment
Closed

jsx-curly-spacing accepted formats #249

OoDeLally opened this issue Jan 10, 2020 · 1 comment

Comments

@OoDeLally
Copy link

OoDeLally commented Jan 10, 2020

Bug Report

  • tslint-react version: 4.1.0
  • tslint version: 5.20.1
  • typescript version: 3.7.4
  • Running TSLint via: VSCode

TypeScript code being linted

<IonToast
        isOpen={ Boolean(toastMessage)}
        onDidDismiss={handleDismiss }
        buttons={[{
            text: 'Ok',
            role: 'cancel',
            handler: handleDismiss,
          }]}
/>

with tslint.json configuration:

{
    "jsx-curly-spacing": [
      2,
      {
        "when": "always",
        "allowMultiline": true
      }
    ],
}

Actual behavior

The rule is ignored.

However

{
    "jsx-curly-spacing": [
      true,
      "always"
    ],
}

works.

Expected behavior

Should behave the same way as https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md

@adidahiya
Copy link
Contributor

This package is being deprecated, see #210.

Also, I recommend using prettier for code formatting.

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

No branches or pull requests

2 participants