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

Add Vue support to ESLint Fixer beautifier #2033

Merged
merged 1 commit into from
Mar 2, 2018

Conversation

range3
Copy link
Contributor

@range3 range3 commented Feb 6, 2018

What does this implement/fix? Explain your changes.

just add an Eslint Fixer beautifier option to support Vue language.

...

Does this close any currently open issues?

#2026
...

Any other comments?

Eslint can not only support *.js files but also *.vue files using plugins such as eslint-plugin-vue.
The users can use Eslint Fixer beautifier for vue by setting eslint can handle vue files.

...

Checklist

Check all those that are applicable and complete.

  • Merged with latest master branch
  • Regenerate documentation with npm run docs
  • Add change details to CHANGELOG.md under "Next" section
  • Added examples for testing to examples/ directory
  • Travis CI passes (Mac support)
  • AppVeyor passes (Windows support)

@Glavin001 Glavin001 requested review from Glavin001 and stevenzeck and removed request for Glavin001 February 6, 2018 17:59
Copy link
Owner

@Glavin001 Glavin001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add examples for testing to examples/ directory.

@range3
Copy link
Contributor Author

range3 commented Feb 7, 2018

I guess the beautify-languages-spec tests to 'examples/' directory only use default atom-beautify.#{language}.default_beautifier.

Currently, atom-beautify has two beautifier for Vue: "Vue Beautifier" and "ESLint Fixer".
Default atom-beautify.vue.default_beautifier is "Vue Beautifier".

I tried to set default_beautifier to "ESLint Fixer" by .jsbeautifyrc, but it's not respected ( #1570 )

Do you have any other way to run the test using non default "ESLint Fixer" beautifier ?
or I should wait for Unibeautify ( #1174 ) ?

@@ -1,6 +1,7 @@
# Next
- Fix [#1862](https://github.com/Glavin001/atom-beautify/issues/1862) Add support for ocp-indent as an executable
- See [#601](https://github.com/Glavin001/atom-beautify/issues/1862) Add support for tsx files
- See [#2026](https://github.com/Glavin001/atom-beautify/issues/2026) Add Vue support to ESLint Fixer beautifier
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's important to add a note here about requiring https://github.com/vuejs/eslint-plugin-vue for using ESLint Fixer on Vue files.

@Glavin001 Glavin001 merged commit 0fc6031 into Glavin001:master Mar 2, 2018
@Glavin001 Glavin001 added this to the v0.32.0 milestone Mar 2, 2018
@Glavin001
Copy link
Owner

Published to v0.32.0

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

Successfully merging this pull request may close these issues.

2 participants