Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Use jsRules for JSX files #1714

Merged
merged 1 commit into from
Nov 13, 2016
Merged

Use jsRules for JSX files #1714

merged 1 commit into from
Nov 13, 2016

Conversation

IllusionMH
Copy link
Contributor

@IllusionMH IllusionMH commented Nov 13, 2016

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

What changes did you make?

This PR ensures that jsRules will be used for both .js and .jsx files. See #1634 (review)

Is there anything you'd like reviewers to focus on?

Current dedent implementation isn't suitable for strings like JS_ERROR_MESSAGE since it calculates minimal indent for all lines and .join("\n") makes it 0.

@nchen63 nchen63 merged commit 97a2e29 into palantir:master Nov 13, 2016
@nchen63
Copy link
Contributor

nchen63 commented Nov 13, 2016

Thanks. The error that told the user how to fix it was a nice touch

@IllusionMH
Copy link
Contributor Author

@nchen63 thanks! I'll look for better alternative for dedent function to handle mentioned cases.

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

Successfully merging this pull request may close these issues.

2 participants