Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Add style linter #13

Merged
merged 4 commits into from
Oct 12, 2019
Merged

Add style linter #13

merged 4 commits into from
Oct 12, 2019

Conversation

maal26
Copy link
Contributor

@maal26 maal26 commented Oct 11, 2019

related #9

This PR will add some config files to guarantee that all developers follow the same code style guide :shipit:

The config files are:

  • .editorconfig
  • .eslintrc.json

@migo315
Copy link
Owner

migo315 commented Oct 12, 2019

Thanks for your pull request. This PR has merge conflicts - can you resolve them? I will merge it after that. ;-)

@maal26
Copy link
Contributor Author

maal26 commented Oct 12, 2019

Ok, it's done. Let me know if you need anything changed.

Copy link
Owner

@migo315 migo315 left a comment

Choose a reason for hiding this comment

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

Great! Thanks ;-)

@migo315 migo315 merged commit 2985267 into migo315:master Oct 12, 2019
Copy link
Contributor

@philipmckenna philipmckenna left a comment

Choose a reason for hiding this comment

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

Hey 👋 just hoping to get a few discussions going on this as its quite a heavily opinionated topic.

[*]
charset = utf-8
indent_style = space
indent_size = 4
Copy link
Contributor

Choose a reason for hiding this comment

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

NAB: Just a opinion that should be open to discussion with the owner, airbnb-base uses indent_size = 2.

Copy link
Owner

Choose a reason for hiding this comment

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

My current IDE settings using 4 by default for javascript. So, that's ok for me.

"env": {
"es6": true
},
"extends": ["eslint:recommended"],
Copy link
Contributor

Choose a reason for hiding this comment

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

NAB: should consider and discuss other extensions, personally I use airbnb-base and prettier which are very opinionated.

Copy link
Owner

Choose a reason for hiding this comment

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

I work more with PHP than with Javascript. Therefore, I do not know the most extensions and standards. You are free to create a pull request if you can optimize something. ;-)

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.

3 participants