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

chore(linting): migration tslint to eslint #820

Merged
merged 4 commits into from
Sep 29, 2021
Merged

Conversation

roiLeo
Copy link
Contributor

@roiLeo roiLeo commented Sep 29, 2021

Big changes over here.

Usage:

To show problems on all files (.js, .ts, .vue):

yarn lint

To only show errors:

yarn lint --quiet

Automatic fix:

yarn lint --fix

Right now we've got 1236 problems (0 errors, 1236 warnings)
Next step would be to add this command on our Github Workflow.

Indentation:

To easily convert tab to space or space to tab you will need to edit .eslintrc.js file & .editorconfig
then you can use yarn lint --fix

PR type

  • Bugfix
  • Refactoring

What's new? (may be part of changelog)

@yangwao
Copy link
Member

yangwao commented Sep 29, 2021

Seems like this will be adjust, looks good to me!

@roiLeo roiLeo marked this pull request as draft September 29, 2021 08:56
Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

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

Spaces ftw

.editorconfig Outdated
@@ -13,18 +13,18 @@ charset = utf-8

# Indentation override for all JS
[**.js]
indent_style = space
indent_style = tab
Copy link
Member

Choose a reason for hiding this comment

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

I would personally use spaces

Copy link
Member

Choose a reason for hiding this comment

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

is this evergreen bikeshed discussion on every project 😅

let's go with tabs :D

Copy link
Member

Choose a reason for hiding this comment

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

Because she told you that she needs some space

I would not mind to use tabs but the code is not properly formatted
Screenshot 2021-09-29 at 13 38 23

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's agree to use "space: 2", I'm currently fighting to fix "Mixed spaces and tabs" on .vue files.

Copy link
Member

Choose a reason for hiding this comment

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

well, tabs could be space 2 tho :)
then there is another discussion about indentation... 2 or 4 😄

.eslintrc.js Outdated
'plugin:vue/recommended',
// 'prettier',
],
'env': {
Copy link
Member

Choose a reason for hiding this comment

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

format 👁️

@roiLeo roiLeo marked this pull request as ready for review September 29, 2021 13:00
@yangwao
Copy link
Member

yangwao commented Sep 29, 2021

For me is good to go!

Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

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

🚀

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.

3 participants