Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Update lint configs / code style #2

Open
sambegin opened this issue May 11, 2018 · 1 comment
Open

Update lint configs / code style #2

sambegin opened this issue May 11, 2018 · 1 comment

Comments

@sambegin
Copy link
Owner

Just pick a eslint configuration we will be confortable with...

What would be nice is to have a common code style for any IDE.

@wilau2
Copy link
Collaborator

wilau2 commented May 11, 2018

I suggest we use prettier with linted-stage and husky.
Option 1. listed here
.lint.staged.json

{
  "*.{js,json,css,md}": [
    "prettier --arrow-parens always --trailing-comma all --single-quote --print-width 100 --write",
    "git add"
  ]
}

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

No branches or pull requests

2 participants