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

support formatByStandard by standard fix option #7

Merged
merged 2 commits into from
Jan 22, 2018

Conversation

t9md
Copy link
Owner

@t9md t9md commented Jan 22, 2018

prettier doesn't seem to support space-before-function-paren.

prettier/prettier#1139 (comment)

I want this feature, but I don't want to use forked prettier.

This PR adds a capability to format by standard with following configuration.

  • formatByStandardForJavascript: globally enable format by standard( default false )
  • formatByStandardForJavascriptIfStandardIsProjectDependencies: Auto enable format-by-standard if standard is in project dependencies( default true )

standard is processed after prettier format.

Refs:

@t9md t9md changed the title support 'space-before-function-paren' by standard fix option support formatByStandard by standard fix option Jan 22, 2018
@t9md t9md merged commit 23996f3 into master Jan 22, 2018
t9md added a commit that referenced this pull request Jan 22, 2018
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

Successfully merging this pull request may close these issues.

1 participant