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

Use ESlint to format the Javascript and Vue files. #365

Merged
merged 2 commits into from
Apr 6, 2018

Conversation

jetfuel
Copy link
Collaborator

@jetfuel jetfuel commented Apr 5, 2018

Strongly recommended rules applied.

Hi guys. Here is the phrase 1 of ESLint PR to address #364

There are many files changed, but you really just need to check the following two.
frontend/.eslintrc.js - This is the ESLint config files
frontend/package.json - We need to install the package via npm

I haven't tried to link the eslint to pre-commit. I will create a follow up to include that. Also it will take some time to update all the code.

Meanwhile, if you wish to manually check the format. Use the following two commands

node_modules/.bin/eslint --fix src
node_modules/.bin/eslint --fix src --ext .vue

Strongly recommended rules applied.
@jetfuel jetfuel self-assigned this Apr 5, 2018
daming-lu
daming-lu previously approved these changes Apr 5, 2018
nickyfantasy
nickyfantasy previously approved these changes Apr 5, 2018
@jetfuel jetfuel dismissed stale reviews from nickyfantasy and daming-lu via 42cafa5 April 5, 2018 23:35

export default {
name: 'App',
components: {
AppMenu
AppMenu,
Copy link
Contributor

Choose a reason for hiding this comment

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

im surprised the correct standard is to add comma in everything D:

@jetfuel jetfuel merged commit db62d42 into PaddlePaddle:develop Apr 6, 2018
@jetfuel jetfuel deleted the eslint_formatter branch April 6, 2018 00:15
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.

None yet

3 participants