Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Add eslint. (Closes #44) #61

Merged
merged 3 commits into from
Oct 4, 2019
Merged

Add eslint. (Closes #44) #61

merged 3 commits into from
Oct 4, 2019

Conversation

mput
Copy link
Contributor

@mput mput commented Oct 3, 2019

Болезненый PR конечно, но это один раз.

Copy link
Contributor

@jougene jougene left a comment

Choose a reason for hiding this comment

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

Болезненый PR конечно, но это один раз.

Переживем

Makefile.local Outdated
@@ -0,0 +1,36 @@
test:
Copy link
Contributor

Choose a reason for hiding this comment

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

А почему новый файл?
Что не так было со старым?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

По ошибке попал. Сейчас уберу.

@mput
Copy link
Contributor Author

mput commented Oct 4, 2019

По поводу линтера. У меня было два варианта:

  1. Использовать вместе airbnb stylegide и prettier. Последний переписывает многие правила airbnb которые касаются форматирования.
  2. Использовать исключительно airbnb, от prettier отказаться, для форматирования использовать eslint --fix.

В итоге я остановился на первом варианте, форматирование prettier мне нравится, и оно уже использовалось у нас. Так же ошибки в форматирование по правилам prettier теперь проверяются при линте.

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.

2 participants